[opensuse-packaging] rpmbuild %lang() handling for new locales
![](https://seccdn.libravatar.org/avatar/a961d54b41a44a48c5241aab3571178f.jpg?s=120&d=mm&r=g)
How does rpmbuild decide if LANG in such line generated by /usr/lib/rpm/find-lang.sh is valid? %lang($LANG) /usr/share/locale/$LANG/LC_MESSAGES/$PKG.mo I suggest to enhance /usr/lib/rpm/find-lang.sh to wipe all files in $LANG if its unknown by rpmbuild because at least the SLE11 version just ignores the line. As a result the build fails due to unpackaged files. Olaf -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org
![](https://seccdn.libravatar.org/avatar/e85bb1c491d4dd3ebd96110df58f8739.jpg?s=120&d=mm&r=g)
Am Mittwoch, 15. Juli 2015, 12:16:23 schrieb Olaf Hering:
How does rpmbuild decide if LANG in such line generated by /usr/lib/rpm/find-lang.sh is valid?
I think it matches against the entry in /usr/share/locale
%lang($LANG) /usr/share/locale/$LANG/LC_MESSAGES/$PKG.mo
I suggest to enhance /usr/lib/rpm/find-lang.sh to wipe all files in $LANG if its unknown by rpmbuild because at least the SLE11 version just ignores the line. As a result the build fails due to unpackaged files.
Thats what it does in openSUSE 13.x as I just learned, of course without telling you why. IMO it would make more sense to let find-lang.sh try to find the base language (nl_NL -> nl) and put the language files in there, instead of deleting them Best regards Axel -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org
participants (2)
-
Axel Braun
-
Olaf Hering