Gentoo Archives: gentoo-portage-dev

From: Zac Medico <zmedico@g.o>
To: gentoo-portage-dev@l.g.o, "Michał Górny" <mgorny@g.o>
Subject: Re: [gentoo-portage-dev] [PATCH v2] Support disabling docompress for binary package builds
Date: Mon, 05 Nov 2018 07:17:05
Message-Id: df129c8e-ee83-7d63-b6d4-1713fbcd1a69@gentoo.org
In Reply to: [gentoo-portage-dev] [PATCH v2] Support disabling docompress for binary package builds by "Michał Górny"
1 On 11/04/2018 01:20 AM, Michał Górny wrote:
2 > Add FEATURES=binpkg-docompress that can be used whether docompress
3 > compression is performed before or after creating binary packages. With
4 > the feature enabled (the default), the current behavior of storing
5 > compressed files in binpkg is preserved. With it disabled, uncompressed
6 > files are stored inside binary package and are compressed when
7 > installing.
8 >
9 > Storing uncompressed files in binary packages has two advantages:
10 >
11 > 1. Avoids the double-compression penalty, effectively improving binary
12 > package compression speed and compression ratio.
13 >
14 > 2. Allows the same packages to be reused on systems with different
15 > docompress configurations.
16 >
17 > The option is roughly backwards compatible. Old Portage versions will
18 > install packages created with FEATURES=-binpkg-docompress correctly,
19 > albeit without compression. Portage with FEATURES=binpkg-docompress
20 > should install old binpackages semi-correctly, potentially recompressing
21 > them (and throwing already-compressed warnings on format mismatch).
22 > The new behavior is left off by default to avoid those problems.
23 >
24 > Signed-off-by: Michał Górny <mgorny@g.o>
25 > ---
26 > bin/misc-functions.sh | 43 +++++++++++++++++++++++---
27 > bin/phase-functions.sh | 2 +-
28 > cnf/make.globals | 2 +-
29 > lib/portage/const.py | 1 +
30 > lib/portage/dbapi/vartree.py | 12 +++++++
31 > lib/portage/package/ebuild/doebuild.py | 4 ++-
32 > man/ebuild.1 | 5 +++
33 > man/make.conf.5 | 6 ++++
34 > 8 files changed, 68 insertions(+), 7 deletions(-)
35 >
36 > Changes in v2:
37 > * added .instprepped file logic,
38 > * added instprep -> install dependency,
39 > * documented in ebuild.1.
40 >
41 > I've tested this thoroughly via ebuild(1) and emerge(1).
42
43 Looks good, thanks, please merge.
44 --
45 Thanks,
46 Zac

Attachments

File name MIME type
signature.asc application/pgp-signature