rpm-ostree/tests/compose
Jonathan Lebon 99486a75e8 Add /usr/lib/rpm/macros.d/macros.rpm-ostree to set %_dbpath to /usr/share/rpm
We trigger a librpm macro file load in many of our paths. Since the
default value shipped by rpm's macro file sets `_dbpath` to
`/var/lib/rpm`, we have to explicitly set that back to `/usr/share/rpm`
in those paths.

This became more problematic recently with libsolv v0.7.17 which fully
keys off of `_dbpath` to find the rpmdb path to load:

04d4d036b2

And it's not technically wrong; we really should make that macro not
lie. This is what this patch does by injecting an RPM macro file in our
composes which sets it to /usr/share/rpm. So then e.g. the `rpm` CLI
doesn't actually need the `/var/lib/rpm` backcompat link anymore, though
there's no harm in leaving it.

In the future, we should be able to drop this once we move all of Fedora
to `/usr/lib/sysimage/rpm` (see
https://github.com/coreos/fedora-coreos-tracker/issues/639).

Closes: #2548
2021-02-09 18:36:35 -05:00
..
disabled-test-boot-location-new.sh Disable boot-location: new test 2020-10-30 11:55:38 +01:00
libbasic-test.sh Add /usr/lib/rpm/macros.d/macros.rpm-ostree to set %_dbpath to /usr/share/rpm 2021-02-09 18:36:35 -05:00
libcomposetest.sh compose: Add --ex-lockfile-strict 2020-04-17 15:48:40 -04:00
runtest.sh tests/compose: Target FCOS 31, move off of PAPR 2020-01-08 16:42:54 +01:00
test-basic-unified.sh extensions: Add support for development extensions 2021-02-03 12:22:38 -05:00
test-basic.sh compose: Use static enablement for ostree systemd services 2020-12-02 22:40:31 +01:00
test-boot-location-modules.sh tests/compose: Target FCOS 31, move off of PAPR 2020-01-08 16:42:54 +01:00
test-excludes.sh treefile: Add exclude-packages 2020-02-05 21:02:06 +01:00
test-install-langs.sh tests: Loosen regexp for French date 2020-10-14 03:44:19 +02:00
test-installroot.sh tests/compose: Target FCOS 31, move off of PAPR 2020-01-08 16:42:54 +01:00
test-lockfile.sh manifest: Add lockfile-repos field 2020-04-19 09:17:17 -04:00
test-machineid-compat.sh tests/compose: Target FCOS 31, move off of PAPR 2020-01-08 16:42:54 +01:00
test-misc-tweaks.sh Make /run a directory in scripts 2020-10-22 16:43:00 -04:00
test-mutate-os-release.sh tests: Make more resistant to releasever changes 2020-06-02 19:37:43 +02:00
test-rojig-e2e.sh Add --enable-rojig, disable by default 2020-10-22 15:38:50 -04:00
test-rojig-pure.sh Add --enable-rojig, disable by default 2020-10-22 15:38:50 -04:00
test-write-commitid.sh tests/compose: Target FCOS 31, move off of PAPR 2020-01-08 16:42:54 +01:00