Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 641488

Summary: app-arch/xz-utils: please provide a flag to disable unnecessary filters
Product: Gentoo Linux Reporter: Michał Górny <mgorny>
Component: Current packagesAssignee: Gentoo's Team for Core System packages <base-system>
Status: RESOLVED FIXED    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
See Also: https://github.com/gentoo/gentoo/pull/6547
https://bugs.gentoo.org/show_bug.cgi?id=937989
Whiteboard:
Package list:
Runtime testing required: ---

Description Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2017-12-17 18:18:00 UTC
Upstream provides a few options to control features being built. I'd like to disable the filters that are not used in any default configuration. What I'm thinking of are the following options:

  --enable-encoders=lzma1,lzma2
  --enable-decoders=lzma1,lzma2
  --enable-match-finders=hc3,hc4,bt4
  --enable-checks=crc32,crc64

This has two goals: to reduce size of xz-utils, and to prevent people from using custom profiles to create non-portable .xz files.
Comment 1 Larry the Git Cow gentoo-dev 2017-12-17 21:08:25 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e082cbd69d9b535ab62e89360efd3aac1f5f3115

commit e082cbd69d9b535ab62e89360efd3aac1f5f3115
Author:     Michał Górny <mgorny@gentoo.org>
AuthorDate: 2017-12-13 09:13:23 +0000
Commit:     Thomas Deutschmann <whissi@gentoo.org>
CommitDate: 2017-12-17 21:08:11 +0000

    app-arch/xz-utils: Support disabling unnecessary filters
    
    Closes: https://bugs.gentoo.org/641488
    Closes: https://github.com/gentoo/gentoo/pull/6547
    Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>

 app-arch/xz-utils/metadata.xml          |  5 +++++
 app-arch/xz-utils/xz-utils-5.2.3.ebuild | 16 +++++++++++++++-
 app-arch/xz-utils/xz-utils-9999.ebuild  | 16 +++++++++++++++-
 3 files changed, 35 insertions(+), 2 deletions(-)