diff --git a/fix-bsdunzip-test.patch b/fix-bsdunzip-test.patch new file mode 100644 index 0000000..e93c084 --- /dev/null +++ b/fix-bsdunzip-test.patch @@ -0,0 +1,19 @@ +commit 64e2e88ec326dd37fcb85c9a9d21fa43444a0a59 +Author: Bernhard M. Wiedemann +Date: Wed May 22 10:13:47 2024 +0200 + + Fix test failure on openSUSE:Leap:15.5 + +diff --git a/unzip/test/test_I.c b/unzip/test/test_I.c +index 5d31ce8d..92e5ce59 100644 +--- a/unzip/test/test_I.c ++++ b/unzip/test/test_I.c +@@ -45,7 +45,7 @@ DEFINE_TEST(test_I) + #endif + + extract_reference_file(reffile); +- r = systemf("%s -I UTF-8 %s >test.out 2>test.err", testprog, reffile); ++ r = systemf("env -uLC_ALL LC_CTYPE=en_US.UTF-8 %s -I UTF-8 %s >test.out 2>test.err", testprog, reffile); + assertEqualInt(0, r); + assertNonEmptyFile("test.out"); + assertEmptyFile("test.err"); diff --git a/libarchive.changes b/libarchive.changes index 69093ab..08de6b8 100644 --- a/libarchive.changes +++ b/libarchive.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Wed May 22 08:32:02 UTC 2024 - Danilo Spinella + +- Fix bsdunzip test failing due to a locale issue + * fix-bsdunzip-test.patch + ------------------------------------------------------------------- Tue Apr 30 08:05:28 UTC 2024 - Danilo Spinella diff --git a/libarchive.spec b/libarchive.spec index e022d67..01c1b10 100644 --- a/libarchive.spec +++ b/libarchive.spec @@ -42,6 +42,10 @@ Source2: libarchive.keyring Source1000: baselibs.conf Patch1: lib-suffix.patch Patch2: fix-soversion.patch +# PATCH-FIX-SUSE danilo.spinella@suse.com +# bsdunzip test fails because of a locale issue, set locale properly to fix it +# It will be fixed in the next release +Patch3: fix-bsdunzip-test.patch BuildRequires: cmake BuildRequires: libacl-devel BuildRequires: libbz2-devel