Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 641488 - app-arch/xz-utils: please provide a flag to disable unnecessary filters
Summary: app-arch/xz-utils: please provide a flag to disable unnecessary filters
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-12-17 18:18 UTC by Michał Górny
Modified: 2024-08-15 19:59 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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(-)