Re: [PATCH] rpm.eclass: force lzma support for app-arch/rpm

Eli Schwartz <[email protected]>
Newsgroups gmane.linux.gentoo.devel
Message-ID <[email protected]>
On 4/22/26 4:48 AM, Nicolas PARLANT wrote:
> Le 2026-04-22 10:28, Nicolas PARLANT a écrit :
>> lzma support is optional for app-arch/rpm since 4.20.0 and not enabled
>> by default. Given xz-utils is already widely adopted, force lzma
>> support.
>>
>> Bug: https://bugs.gentoo.org/971578
>> Bug: https://bugs.gentoo.org/973073
>> Signed-off-by: Nicolas PARLANT <[email protected]>
>> ---
>>  eclass/rpm.eclass | 2 +-
>>  1 file changed, 1 insertion(+), 1 deletion(-)
>>
>> diff --git a/eclass/rpm.eclass b/eclass/rpm.eclass
>> index 3b7f9e64355b..4fad092033e5 100644
>> --- a/eclass/rpm.eclass
>> +++ b/eclass/rpm.eclass
>> @@ -20,7 +20,7 @@ inherit estack
>>  BDEPEND="
>>      || (
>>          app-arch/rpm2targz
>> -        >=app-arch/rpm-4.19.0
>> +        >=app-arch/rpm-4.19.0[lzma(+)]
>>      )
>>  "
> 
> For consistency, I guess that adding zstd would be necessary too. Unless
> enabling lzma by default for rpm is sufficient? As the src_unpack output
> isn't useful with an unsupported format, I suggest enabling it here.


I submitted my own in-progress rework, which handles much more.


-- 
Eli Schwartz
OpenPGP_signature.asc (application/pgp-signature, 236 B)
-----BEGIN PGP SIGNATURE-----

wnsEABYIACMWIQTnFNnmK0TPZHnXm3qEp9ErcA0vVwUCaejaOwUDAAAAAAAKCRCEp9ErcA0vV3wW
APsFjnroGAcw4tOjbCTKdbcAFJihyjjswGNkdPxMDgLp1QEAjn5K01p/0Q3Go+2T/p/Sjx5XSKng
nGqDFS29WvlpGwI=
=1rhR
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.