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
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
runtest.sh
test-basic-unified.sh
test-basic.sh
test-boot-location-modules.sh
test-excludes.sh
test-install-langs.sh
test-installroot.sh
test-lockfile.sh
test-machineid-compat.sh
test-misc-tweaks.sh
test-mutate-os-release.sh
test-rojig-e2e.sh
test-rojig-pure.sh
test-write-commitid.sh