From 9bdd99afee76630ee6de7bdf61f63bd0b487a2eb Mon Sep 17 00:00:00 2001 From: Thierry Vignaud Date: Sun, 26 Apr 2020 16:38:01 +0200 Subject: %find_lang sometimes fails on FreeBSD + /usr/local/lib/rpm/find-lang.sh /usr/home/cpansand/.cpan/build/2020042613/urpmi-v8.121.20-6/t/tmp/BUILDROOT/various-1-1.x86_64 test-various error: Bad exit status from /usr/home/cpansand/.cpan/build/2020042613/urpmi-v8.121.20-6/t/tmp/rpm-tmp.kKrrdT (%install) --- NEWS | 1 + t/data/SPECS/various.spec | 6 ++++++ t/data/SPECS/various2.spec | 6 ++++++ t/data/SPECS/various3.spec | 6 ++++++ 4 files changed, 19 insertions(+) diff --git a/NEWS b/NEWS index 0007bed0..c9748f54 100644 --- a/NEWS +++ b/NEWS @@ -12,6 +12,7 @@ o perform some file conflict tests only on Mageia o try harder to find genhdlist2 in uninstalled CPAN modules o work without glibc-static-devel + o workaround %find_lang sometimes failing on FreeBSD - testsuite: o add more extensive tests o describe it more diff --git a/t/data/SPECS/various.spec b/t/data/SPECS/various.spec index 4429fada..250f737c 100644 --- a/t/data/SPECS/various.spec +++ b/t/data/SPECS/various.spec @@ -13,13 +13,19 @@ echo foo > foo rm -rf $RPM_BUILD_ROOT for i in /etc/test-%{name} \ /var/lib/test-%{name}/foo1 /var/lib/test-%{name}/foo2 /var/lib/test-%{name}/foo3 \ +%ifos linux /usr/share/locale/fr/LC_MESSAGES/test-%{name}.mo \ +%endif /usr/test-%{name}/foo; do mkdir -p `dirname $RPM_BUILD_ROOT$i` echo foo > $RPM_BUILD_ROOT$i done +%ifos linux %find_lang test-%{name} +%else +echo > test-%{name}.lang +%endif %clean rm -rf $RPM_BUILD_ROOT diff --git a/t/data/SPECS/various2.spec b/t/data/SPECS/various2.spec index d7c55421..6a10084c 100644 --- a/t/data/SPECS/various2.spec +++ b/t/data/SPECS/various2.spec @@ -13,13 +13,19 @@ echo foo > foo rm -rf $RPM_BUILD_ROOT for i in /etc/test-%{name} \ /var/lib/test-%{name}/foo1 /var/lib/test-%{name}/foo2 /var/lib/test-%{name}/foo3 \ +%ifos linux /usr/share/locale/fr/LC_MESSAGES/test-%{name}.mo \ +%endif /usr/test-%{name}/foo; do mkdir -p `dirname $RPM_BUILD_ROOT$i` echo foo > $RPM_BUILD_ROOT$i done +%ifos linux %find_lang test-%{name} +%else +echo > test-%{name}.lang +%endif %clean rm -rf $RPM_BUILD_ROOT diff --git a/t/data/SPECS/various3.spec b/t/data/SPECS/various3.spec index f018ab25..74e08459 100644 --- a/t/data/SPECS/various3.spec +++ b/t/data/SPECS/various3.spec @@ -13,13 +13,19 @@ echo foo > foo rm -rf $RPM_BUILD_ROOT for i in /etc/test-%{name} \ /var/lib/test-%{name}/foo1 /var/lib/test-%{name}/foo2 /var/lib/test-%{name}/foo3 \ +%ifos linux /usr/share/locale/fr/LC_MESSAGES/test-%{name}.mo \ +%endif /usr/test-%{name}/foo; do mkdir -p `dirname $RPM_BUILD_ROOT$i` echo foo > $RPM_BUILD_ROOT$i done +%ifos linux %find_lang test-%{name} +%else +echo > test-%{name}.lang +%endif %clean rm -rf $RPM_BUILD_ROOT -- cgit v1.2.1