Ana Guerrero 2024-05-23 13:34:45 +00:00 committed by Git OBS Bridge
commit e364c77694
3 changed files with 29 additions and 0 deletions

19
fix-bsdunzip-test.patch Normal file
View File

@ -0,0 +1,19 @@
commit 64e2e88ec326dd37fcb85c9a9d21fa43444a0a59
Author: Bernhard M. Wiedemann <bwiedemann@suse.de>
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");

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Wed May 22 08:32:02 UTC 2024 - Danilo Spinella <danilo.spinella@suse.com>
- Fix bsdunzip test failing due to a locale issue
* fix-bsdunzip-test.patch
-------------------------------------------------------------------
Tue Apr 30 08:05:28 UTC 2024 - Danilo Spinella <danilo.spinella@suse.com>

View File

@ -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