E.g. Red Hat UBI images contain:
```
[root@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@85d37140e490 /]# cat /etc/rpm/macros.image-language-conf
%_install_langs C.utf
[root@85d37140e490 /]# dnf --installroot /tmp/customroot install tar -y
...
Complete!
[root@85d37140e490 /]# find /tmp/customroot/usr/share/locale/
/tmp/customroot/usr/share/locale/
/tmp/customroot/usr/share/locale/locale.alias
```
With removed macros file:
```
[root@85d37140e490 /]# rm /etc/rpm/macros.image-language-conf
rm: remove regular file '/etc/rpm/macros.image-language-conf'? yes
[root@85d37140e490 /]# dnf --installroot /tmp/customroot2 reinstall tar -y
...
Complete!
[root@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/[email protected]>
_______________________________________________
Rpm-maint mailing list
[email protected]
http://lists.rpm.org/mailman/listinfo/rpm-maint