From fb12922800e5fc00df917f52db3f7cd2755768bd0a44797ee5debe9ec004dd5f Mon Sep 17 00:00:00 2001 From: Danilo Spinella Date: Mon, 19 Dec 2022 14:42:33 +0000 Subject: [PATCH] Accepting request 1043472 from home:dirkmueller:Factory - update to 5.2.10: * xz: Don't modify argv[] when parsing the --memlimit* and --block-list command line options. This fixes confusing arguments in process listing (like "ps auxf"). * GNU/Linux only: Use __has_attribute(__symver__) to detect if that attribute is supported. This fixes build on Mandriva where Clang is patched to define __GNUC__ to 11 by default (instead of 4 as used by Clang upstream). * liblzma: - Fixed an infinite loop in LZMA encoder initialization if dict_size >= 2 GiB. - Fixed two cases of invalid free() that can happen if a tiny allocation fails in encoder re-initialization or in lzma_filters_update(). These bugs had some similarities with the bug fixed in 5.2.7. - Fixed lzma_block_encoder() not allowing the use of LZMA_SYNC_FLUSH with lzma_code() even though it was documented to be supported. The sync-flush code in the Block encoder was already used internally via lzma_stream_encoder(), so this was just a missing flag in the lzma_block_encoder() API function. - GNU/Linux only: Don't put symbol versions into static liblzma as it breaks things in some cases (and even if it didn't break anything, symbol versions in static libraries are useless anyway). The downside of the fix is that if the configure options --with-pic or --without-pic are used then it's not possible to build both shared and static liblzma at the same time on GNU/Linux anymore; with those options --disable-static or --disable-shared must be used too. OBS-URL: https://build.opensuse.org/request/show/1043472 OBS-URL: https://build.opensuse.org/package/show/Base:System/xz?expand=0&rev=121 --- xz-5.2.10.tar.gz | 3 +++ xz-5.2.10.tar.gz.sig | Bin 0 -> 566 bytes xz-5.2.8.tar.gz | 3 --- xz-5.2.8.tar.gz.sig | Bin 566 -> 0 bytes xz.changes | 36 ++++++++++++++++++++++++++++++++++++ xz.spec | 20 +++----------------- 6 files changed, 42 insertions(+), 20 deletions(-) create mode 100644 xz-5.2.10.tar.gz create mode 100644 xz-5.2.10.tar.gz.sig delete mode 100644 xz-5.2.8.tar.gz delete mode 100644 xz-5.2.8.tar.gz.sig diff --git a/xz-5.2.10.tar.gz b/xz-5.2.10.tar.gz new file mode 100644 index 0000000..2035c52 --- /dev/null +++ b/xz-5.2.10.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:eb7a3b2623c9d0135da70ca12808a214be9c019132baaa61c9e1d198d1d9ded3 +size 2123206 diff --git a/xz-5.2.10.tar.gz.sig b/xz-5.2.10.tar.gz.sig new file mode 100644 index 0000000000000000000000000000000000000000000000000000000000000000..64649159fce97bd748bffcab22ba4cfa0bafe121b881ed566d68ea62b7524040 GIT binary patch literal 566 zcmV-60?GY}0y6{v0SW*e79j*SkitODQM6|bFs&Ro?sa`>7)Brk0%Mrhxc~|Y5IF92 zeQ6j*APj^L{y7kL!odO9DhZop3Rbt14DZSD;B+8xAjeANxcbHX<}beNU}sxVg*4Y+ zg{2>9#Y?em51yMTxkj|Yk6iN14+Qo{rF>=e;kZ8o7~j@jdd8Cd!aIx*T?Rv=4FcOv zx0DkEA|+Dg19(>V1w*=2D4bD@qu_P%NOLSuVsE%{QH1>lYN|W$6yfCiov2>*bh!3q=LD2(@V!S zJ7gv}KGkcv!6A7rnyj-zq;cu;Nf$xJ4mK1d_HqSWa1b*f(4L)Fy&1ikTPA zkp#graD6g&>vkZYjkcIvHRV8Gfrahy3MSDLwHz)#yFrFbApIk>Vj(RRYOV8Iu-Ts9E1YE^ zL@WnKBq&#;yLtX0FpNgrIZc?Jas`kmZj7+^bQU4^b9@`X5srqk&_Q7)Brk0%LJJFaQb(5IF92 zeQ6j*Ao1T1|4z|8B}{!8OOj}fKL#o;mIWo!pT@Z45{2e!7Qf^W<0j)=6W|elD=Bd2 zIh|<3-W4P-JV>7!0a(~QbrH8ZZy}xegX$QZShcGOl|lb^>nd}f8<%zBan#k`o<@}5 z5=bA~iOGjIvm4ZWRAuVYs{OlAh&2M>NeKcf7i~m{JYF_Mv_JoXGX|NEzg=+tG{03i z6Mq-oXUmeOJe#Ap7j@YVu_UOgfU>bM{&)Ot-4z3NfgO0m!+^8@@W9?PozMH8qGRLi zA9^BH6|sI64)NC!2#B;_0B7Q_td)$D@~z;~hgA8-ls81aqr@T5)F@eOVDvh#7*_%Jir_vE0i0XN!KXWLkJV4rx5?qr+j7S<>mwBh1qt z8EIloUt?ePat=Rk&vkdm*y#p-`Ii5%gsTL7pX=%3sA9)|!G>+OmQElQ0OKDPut26J zm|n@Kk(`Nc6uA(CTN!OPoFAGIz&s~?21!5GTou*~Pc|$<_Cwj(p9qdGV@+_KJ~*NG z1vZ1n8nqxOj#}r#xo$7C^RNxy^r- EC03^g7XSbN diff --git a/xz.changes b/xz.changes index a3d8cdc..d08eba1 100644 --- a/xz.changes +++ b/xz.changes @@ -1,3 +1,39 @@ +------------------------------------------------------------------- +Sat Dec 17 17:23:35 UTC 2022 - Dirk Müller + +- update to 5.2.10: + * xz: Don't modify argv[] when parsing the --memlimit* and + --block-list command line options. This fixes confusing + arguments in process listing (like "ps auxf"). + * GNU/Linux only: Use __has_attribute(__symver__) to detect if + that attribute is supported. This fixes build on Mandriva where + Clang is patched to define __GNUC__ to 11 by default (instead + of 4 as used by Clang upstream). + * liblzma: + - Fixed an infinite loop in LZMA encoder initialization + if dict_size >= 2 GiB. + - Fixed two cases of invalid free() that can happen if + a tiny allocation fails in encoder re-initialization + or in lzma_filters_update(). These bugs had some + similarities with the bug fixed in 5.2.7. + - Fixed lzma_block_encoder() not allowing the use of + LZMA_SYNC_FLUSH with lzma_code() even though it was + documented to be supported. The sync-flush code in + the Block encoder was already used internally via + lzma_stream_encoder(), so this was just a missing flag + in the lzma_block_encoder() API function. + - GNU/Linux only: Don't put symbol versions into static + liblzma as it breaks things in some cases (and even if + it didn't break anything, symbol versions in static + libraries are useless anyway). The downside of the fix + is that if the configure options --with-pic or --without-pic + are used then it's not possible to build both shared and + static liblzma at the same time on GNU/Linux anymore; + with those options --disable-static or --disable-shared + must be used too. +- drop unused xz-devel-static which is no longer supported when using + --with-pic (which is needed for shared libs) + ------------------------------------------------------------------- Thu Dec 1 09:33:47 UTC 2022 - Jan Engelhardt diff --git a/xz.spec b/xz.spec index cea0de5..013ab77 100644 --- a/xz.spec +++ b/xz.spec @@ -19,7 +19,7 @@ # avoid bootstrapping problem %define _binary_payload w9.bzdio Name: xz -Version: 5.2.8 +Version: 5.2.10 Release: 0 Summary: A Program for Compressing Files with the Lempel–Ziv–Markov algorithm License: GPL-2.0-or-later AND LGPL-2.1-or-later AND SUSE-Public-Domain @@ -35,7 +35,6 @@ Source5: xznew.1 BuildRequires: pkgconfig Provides: lzma = %{version} Obsoletes: lzma < %{version} -BuildRoot: %{_tmppath}/%{name}-%{version}-build %description The xz command is a program for compressing files. @@ -74,17 +73,6 @@ Obsoletes: lzma-alpha-devel < %{version} This package contains the header files and libraries needed for compiling programs using the LZMA library. -%package devel-static -Summary: Static version of LZMA library -License: SUSE-Public-Domain -Group: Development/Libraries/C and C++ -Requires: lzma-devel = %{version} -Obsoletes: xz-static-devel < %{version}-%{release} -Provides: xz-static-devel = %{version}-%{release} - -%description devel-static -Static library for the LZMA library - %prep %autosetup @@ -94,7 +82,8 @@ export CFLAGS="%{optflags} -D_REENTRANT -pipe -fPIE" export LDFLAGS="-Wl,-z,relro,-z,now -pie" %configure \ --with-pic \ - --docdir=%{_docdir}/%{name} + --docdir=%{_docdir}/%{name} \ + --disable-static %if 0%{?do_profiling} %make_build CFLAGS="${CFLAGS} %{cflags_profile_generate}" %make_build @@ -184,7 +173,4 @@ rm -vf %{buildroot}%{_docdir}/%{name}/{COPYING,COPYING.GPLv2} %{_libdir}/liblzma.so %{_libdir}/pkgconfig/liblzma.pc -%files devel-static -%{_libdir}/liblzma.a - %changelog