Skip to content

database: drop implementaiton architecture name prefix from database file names

This change alters state database creation procedure, and then uses that to implement opening state database files with backwards-compatible names.

This allows using binaries produced by Meson build with state database created with autotools:

I: [pulseaudio] main.c: This is PulseAudio 14.0-20-g83be
D: [pulseaudio] main.c: Compilation host: x86_64
D: [pulseaudio] main.c: Compilation CFLAGS: Not yet supported on meson
...
D: [pulseaudio] database.c: Found compatible database file '/home/XXX/.config/pulse/YYY-device-volumes.x86_64-pc-linux-gnu.gdbm', using it
D: [pulseaudio] database-gdbm.c: Opened GDBM database '/home/XXX/.config/pulse/YYY-device-volumes.x86_64-pc-linux-gnu.gdbm'

While at it, change autotools CANONICAL_HOST from autotools $host to autotools $host_cpu to make CANONICAL_HOST same value in both autotools and Meson.

This change should solve issue #1062 (closed)

[Update 20201221] it was discussed to drop support for multiarch database instead; implementation will still reuse existing database file to allow easy upgrade to version including this change. CANONICAL_HOST variable is dropped completely.

Edited by Igor Kovalenko

Merge request reports