forked from pool/lzma-sdk
- Add lzma-simd.patch to fix compiler error on old gcc
OBS-URL: https://build.opensuse.org/package/show/Archiving/lzma-sdk?expand=0&rev=32
This commit is contained in:
parent
8d848aa023
commit
cfac7b69b6
@ -4,6 +4,7 @@ Tue Apr 30 10:42:48 UTC 2024 - Jan Engelhardt <jengelh@inai.de>
|
|||||||
- Update to release 23.01
|
- Update to release 23.01
|
||||||
* New filter for ARM64 executables. BCJ2 filter was improved
|
* New filter for ARM64 executables. BCJ2 filter was improved
|
||||||
for better compression ratio. Some bugs were fixed.
|
for better compression ratio. Some bugs were fixed.
|
||||||
|
- Add lzma-simd.patch to fix compiler error on old gcc
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Wed Mar 15 14:40:12 UTC 2023 - Martin Pluskal <mpluskal@suse.com>
|
Wed Mar 15 14:40:12 UTC 2023 - Martin Pluskal <mpluskal@suse.com>
|
||||||
|
@ -31,6 +31,7 @@ Source0: https://www.7-zip.org/a/lzma%_sver.7z
|
|||||||
Source1: lzma-sdk-LICENSE.fedora
|
Source1: lzma-sdk-LICENSE.fedora
|
||||||
Source2: baselibs.conf
|
Source2: baselibs.conf
|
||||||
Patch1: lzma-sdk-shlib.patch
|
Patch1: lzma-sdk-shlib.patch
|
||||||
|
Patch2: lzma-simd.patch
|
||||||
BuildRequires: automake
|
BuildRequires: automake
|
||||||
BuildRequires: dos2unix
|
BuildRequires: dos2unix
|
||||||
BuildRequires: fdupes
|
BuildRequires: fdupes
|
||||||
@ -68,7 +69,7 @@ Library for encoding/decoding LZMA streams, using the 7-Zip library
|
|||||||
implementation.
|
implementation.
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%autosetup -c -n lzma%_sver
|
%autosetup -c -n lzma%_sver -p1
|
||||||
perl -i -pe 's{AC_INIT.*}{AC_INIT([lzma-sdk], [%version])}' configure.ac
|
perl -i -pe 's{AC_INIT.*}{AC_INIT([lzma-sdk], [%version])}' configure.ac
|
||||||
dos2unix DOC/*.txt
|
dos2unix DOC/*.txt
|
||||||
install -p -m 0644 %SOURCE1 .
|
install -p -m 0644 %SOURCE1 .
|
||||||
|
25
lzma-simd.patch
Normal file
25
lzma-simd.patch
Normal file
@ -0,0 +1,25 @@
|
|||||||
|
From: Jan Engelhardt <jengelh@inai.de>
|
||||||
|
Date: 2024-05-01 00:14:04.625759204 +0200
|
||||||
|
Fix build failures involving SIMD code
|
||||||
|
|
||||||
|
Fix build failure on Leap 15.6/gcc-7 amd64:
|
||||||
|
[ 31s] C/SwapBytes.c:312:7: error: incompatible types when initializing type
|
||||||
|
'__m256i {aka const __vector(4) long long int}' using type 'int'
|
||||||
|
|
||||||
|
---
|
||||||
|
C/SwapBytes.c | 2 +-
|
||||||
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||||
|
|
||||||
|
Index: 23/C/SwapBytes.c
|
||||||
|
===================================================================
|
||||||
|
--- a/C/SwapBytes.c
|
||||||
|
+++ b/C/SwapBytes.c
|
||||||
|
@@ -22,7 +22,7 @@ typedef UInt32 CSwapUInt32;
|
||||||
|
// #if defined(__INTEL_COMPILER) && (__INTEL_COMPILER >= 1900)
|
||||||
|
#if defined(__clang__) && (__clang_major__ >= 4) \
|
||||||
|
|| defined(Z7_GCC_VERSION) && (Z7_GCC_VERSION >= 40701)
|
||||||
|
- #define k_SwapBytes_Mode_MAX k_SwapBytes_Mode_AVX2
|
||||||
|
+ #define k_SwapBytes_Mode_MAX k_SwapBytes_Mode_SSE2
|
||||||
|
#define SWAP_ATTRIB_SSE2 __attribute__((__target__("sse2")))
|
||||||
|
#define SWAP_ATTRIB_SSSE3 __attribute__((__target__("ssse3")))
|
||||||
|
#define SWAP_ATTRIB_AVX2 __attribute__((__target__("avx2")))
|
Loading…
Reference in New Issue
Block a user