[Rpm-maint] [rpm-software-management/rpm] Host specific %_install_langs affects --root <customdir> installation (Issue #2623)
Pavel Raiskup
notifications at github.com
Mon Aug 21 12:49:23 UTC 2023
E.g. Red Hat UBI images contain:
```
[root at c5436d2dbebf /]# cat /etc/rpm/macros.image-language-conf
%_install_langs C.utf8
```
This though affects `dnf --installroot` using `rpm --root`:
```
$ podman run --privileged -it --rm registry.access.redhat.com/ubi9/ubi
[root at 85d37140e490 /]# cat /etc/rpm/macros.image-language-conf
%_install_langs C.utf
[root at 85d37140e490 /]# dnf --installroot /tmp/customroot install tar -y
...
Complete!
[root at 85d37140e490 /]# find /tmp/customroot/usr/share/locale/
/tmp/customroot/usr/share/locale/
/tmp/customroot/usr/share/locale/locale.alias
```
With removed macros file:
```
[root at 85d37140e490 /]# rm /etc/rpm/macros.image-language-conf
rm: remove regular file '/etc/rpm/macros.image-language-conf'? yes
[root at 85d37140e490 /]# dnf --installroot /tmp/customroot2 reinstall tar -y
...
Complete!
[root at 85d37140e490 /]# find /tmp/customroot2/usr/share/locale/
/tmp/customroot2/usr/share/locale/
/tmp/customroot2/usr/share/locale/doi
/tmp/customroot2/usr/share/locale/doi/LC_MESSAGES
/tmp/customroot2/usr/share/locale/ig
/tmp/customroot2/usr/share/locale/ig/LC_MESSAGES
/tmp/customroot2/usr/share/locale/hus
/tmp/customroot2/usr/share/locale/hus/LC_MESSAGES
/tmp/customroot2/usr/share/locale/fro
/tmp/customroot2/usr/share/locale/fro/LC_MESSAGES
...
```
This is causing [trouble with EPEL8/EPEL9 mock builds after switching to "bootstrap image" by default](https://github.com/rpm-software-management/mock/issues/1181).
I'm curious whether this is an isolation bug in RPM or not. And if there's known guidance on what to do in such a case (should Mock try hard to work-around this, or should packages rather not require all langpacks at build-time?).
Is this a proper place to discuss this?
--
Reply to this email directly or view it on GitHub:
https://github.com/rpm-software-management/rpm/issues/2623
You are receiving this because you are subscribed to this thread.
Message ID: <rpm-software-management/rpm/issues/2623 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20230821/ec34bfa2/attachment.html>
More information about the Rpm-maint
mailing list