Accepting request 1176922 from home:AndreasStieger:branches:Archiving

7zip 24.05

OBS-URL: https://build.opensuse.org/request/show/1176922
OBS-URL: https://build.opensuse.org/package/show/Archiving/7zip?expand=0&rev=30
This commit is contained in:
Danilo Spinella 2024-05-31 08:19:26 +00:00 committed by Git OBS Bridge
parent 8cfdd18c06
commit b9c520e405
5 changed files with 42 additions and 36 deletions

BIN
7z2301-src.tar.xz (Stored with Git LFS)

Binary file not shown.

3
7z2405-src.tar.xz Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:63f341cf80b8d287c6e945519b3da0fa75553c85572a471b7fa6e68f9a90b790
size 1486772

View File

@ -1,3 +1,34 @@
-------------------------------------------------------------------
Sun May 26 08:50:16 UTC 2024 - Andreas Stieger <andreas.stieger@gmx.de>
- update to 24.05:
* New switch -myv=.. to set decoder compatibility version for
7z archive creating
* New switches -myfa and -myfd to allow or disallow the specified
filter method for 7z archive creating
* can use new RISCV filter for compression to 7z and xz archives
* can ask user permission to unpack RAR archives that require
large amount of memory
* new switch -smemx{size}g : to set allowed memory usage limit
for RAR archive unpacking.
* -y switch disables user requests and messages.
* -slmu switch : to show timestamps as UTC instead of LOCAL TIME
* support .sha256 files that use backslash path separator '\'
* can unpack ZSTD archives (.zst filename extension).
* can unpack ZIP, SquashFS and RPM archives that use ZSTD
compression method.
* support fast hash algorithm XXH64 that is used in ZSTD.
* can unpack RAR archives (that use larger than 4 GB dictionary)
created by new WinRAR 7.00.
* can unpack DMG archives that use XZ (ULMO/LZMA) compression method
* can unpack NTFS images with cluster size larger than 64 KB.
* can unpack MBR and GDP images with 4 KB sectors.
* Speed optimizations for archive unpacking: rar, cab, wim, zip, gz.
* Speed optimizations for hash caclulation: CRC-32, CRC-64, BLAKE2sp.
* Fix multivolume creation in some cases
* bug fixs
- drop fix-avx-sle.patch
-------------------------------------------------------------------
Wed Mar 6 12:46:58 UTC 2024 - Dominique Leuenberger <dimstar@opensuse.org>

View File

@ -2,6 +2,7 @@
# spec file for package 7zip
#
# Copyright (c) 2024 SUSE LLC
# Copyright (c) 2024 Andreas Stieger <Andreas.Stieger@gmx.de>
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@ -16,9 +17,9 @@
#
%define stripped_version 2301
%define stripped_version 2405
Name: 7zip
Version: 23.01
Version: 24.05
Release: 0
Summary: Command-line file archiver with high compression ratio
# CPP/7zip/Compress/LzfseDecoder.cpp is under the BSD-3-Clause
@ -31,22 +32,18 @@ Source1: p7zip
Source2: p7zip.1
Source3: 7zz.1
Patch0: fix-compatib-with-p7zip.patch
# PATCH-FIX-SUSE danilo.spinella@suse.com
# Fix build on SLE-15-SP6
# https://sourceforge.net/p/sevenzip/patches/420/
Patch1: fix-avx-sle.patch
BuildRequires: dos2unix
BuildRequires: gcc
BuildRequires: gcc-c++
%ifarch x86_64 %ix86 %x86_64
BuildRequires: uasm
%endif
Conflicts: p7zip
Conflicts: p7zip-full
Provides: p7zip = %{version}
Provides: p7zip-full = %{version}
Obsoletes: p7zip < %{version}
Obsoletes: p7zip-full < %{version}
%ifarch x86_64 %ix86 %x86_64
BuildRequires: uasm
%endif
%description
This package contains the 7z command line utility for archiving and
@ -121,6 +118,8 @@ ln -s %{_mandir}/man1/7zz.1 %{buildroot}%{_mandir}/man1/7z.1
ln -s %{_mandir}/man1/7z.1 %{buildroot}%{_mandir}/man1/7za.1
ln -s %{_mandir}/man1/7z.1 %{buildroot}%{_mandir}/man1/7zr.1
%check
%files
%license DOC/copying.txt DOC/License.txt
%doc DOC/readme.txt DOC/7zC.txt DOC/Methods.txt DOC/src-history.txt

View File

@ -1,24 +0,0 @@
Index: 7zip/C/SwapBytes.c
===================================================================
--- 7zip.orig/C/SwapBytes.c
+++ 7zip/C/SwapBytes.c
@@ -305,11 +305,14 @@ ShufBytes_256(void *items8, const void *
msvc 19.30+ (VS2022): replaces _mm256_set_m128i(m,m) to vbroadcastf128(m) as we want
*/
// _mm256_broadcastsi128_si256(*mask128_ptr);
- /*
- #define MY_mm256_set_m128i(hi, lo) _mm256_insertf128_si256(_mm256_castsi128_si256(lo), (hi), 1)
- MY_mm256_set_m128i
- */
- _mm256_set_m128i(
+ #if defined(Z7_GCC_VERSION) && (Z7_GCC_VERSION < 80000)
+ #warning "gcc < 8: using _mm256_set_m128i substitute"
+ #define MY_mm256_set_m128i(hi, lo) _mm256_insertf128_si256(_mm256_castsi128_si256(lo), (hi), 1)
+ #else
+ #define MY_mm256_set_m128i _mm256_set_m128i
+ #endif
+ //_mm256_set_m128i(
+ MY_mm256_set_m128i(
*(const __m128i *)mask128_ptr,
*(const __m128i *)mask128_ptr);
#endif