database: use existing database matching same architecture prefix

System Internals / PulseAudio - Igor V. Kovalenko [gmail.com] - 7 January 2021 23:27 UTC

State database binary file format may depend on system architecture, for instance gdbm binary format depends on architecture word size, making x86 and x64 gdbm files incompatible.

If this is the case, it is handled by adding system architecture name to database file name using automatically configured CANONICAL_HOST string. Meson build define CANONICAL_HOST to be system architecture name, while autotools build extends this with vendor and and operating system components.

Switch autotools build to use host_cpu for CANONICAL_HOST to match Meson configuration. For backwards compatibility always use existing database file matching CANONICAL_HOST prefix if it exists.

Part-of:

ae9d0cf30 database: use existing database matching same architecture prefix
configure.ac | 2 +-
src/pulsecore/database.c | 38 ++++++++++++++++++++++++++++++++++++++
src/pulsecore/database.h | 3 ++-
3 files changed, 41 insertions(+), 2 deletions(-)

Upstream: cgit.freedesktop.org


  • Share