[Rpm-maint] [rpm-software-management/rpm] Host specific %_install_langs affects --root <customdir> installation (Issue #2623)
Pavel Raiskup
notifications at github.com
Thu Oct 19 11:07:17 UTC 2023
When we talk about configuration, what's meant by that? All macro definitions? Because there seems to be an issue with `/etc/rpm/macros.image-language-conf` like things.
As you asked for ideas; I think there's a space for a low-level, distro-specific, rpm-sub-package that would install the distro-specific configuration. If there was such an RPM, Mock could just simply tell DNF to ignore the host's configuration at the beginning (split the preparation into two steps):
$ rootdir=$(mktemp -d)
dnf5 --installroot "$rootdir" install rpm-config --use-host-config
dnf5 --installroot "$rootdir" install @buildsys-build
The first transaction needs to be as small as possible. Small enough to
let distro-maintainers cure the target distribution so the transaction
**isn't affected** by the **host** configuration at all. The second
transaction, since the config is already **in chroot**, can ignore the
host configuration entirely.
Seems like the set of packages in the first transaction in Fedora
is currently pretty small:
```
$ sudo dnf5 --installroot "$rootdir" install setup --use-host-config
Updating and loading repositories:
Repositories loaded.
Package Arch Version Repository Size
Installing:
setup noarch 2.14.4-1.fc39 fedora 720.3 KiB
Installing dependencies:
fedora-gpg-keys noarch 39-1 fedora 123.2 KiB
fedora-release noarch 39-30 fedora 0.0 B
fedora-release-common noarch 39-30 fedora 17.7 KiB
fedora-release-identity-basic noarch 39-30 fedora 666.0 B
fedora-repos noarch 39-1 fedora 4.5 KiB
filesystem x86_64 3.18-6.fc39 fedora 106.0 B
Transaction Summary:
Installing: 7 packages
Total size of inbound packages is 1 MiB. Need to download 1 MiB.
After this operation 867 KiB will be used (install 867 KiB, remove 0 B).
Is this ok [y/N]:
```
Not sure if one of those could be recycled for this purpose, instead of
creating a new `rpm-config` package?
--
Reply to this email directly or view it on GitHub:
https://github.com/rpm-software-management/rpm/issues/2623#issuecomment-1770591345
You are receiving this because you are subscribed to this thread.
Message ID: <rpm-software-management/rpm/issues/2623/1770591345 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20231019/9a5656c9/attachment-0001.html>
More information about the Rpm-maint
mailing list