1 |
commit: 0275734583c28a5a9e9e5c07a2724269efe5d1a5 |
2 |
Author: Philipp Rösner <philipp.roesner <AT> student <DOT> uni-halle <DOT> de> |
3 |
AuthorDate: Fri Aug 19 15:46:03 2022 +0000 |
4 |
Commit: Mike Gilbert <floppym <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Aug 19 17:31:17 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/proj/portage.git/commit/?id=02757345 |
7 |
|
8 |
bin/ecompress: add lz4 command line options |
9 |
|
10 |
Calling lz4 with mutliple files results in warnings of the form: |
11 |
|
12 |
`Warning : <path>/<file> won't be used ! |
13 |
Do you want multiple input files (-m) ?` |
14 |
|
15 |
Adding the `-m` option to the lz4 call resolves this issue. |
16 |
Additionally, the `--rm` option will remove the source files after a |
17 |
successful compression. |
18 |
|
19 |
Bug: https://bugs.gentoo.org/672916 |
20 |
Closes: https://github.com/gentoo/portage/pull/892 |
21 |
Signed-off-by: Philipp Rösner <rndxelement <AT> protonmail.com> |
22 |
Signed-off-by: Mike Gilbert <floppym <AT> gentoo.org> |
23 |
|
24 |
NEWS | 3 +++ |
25 |
bin/ecompress | 4 ++++ |
26 |
2 files changed, 7 insertions(+) |
27 |
|
28 |
diff --git a/NEWS b/NEWS |
29 |
index 6245c9e09..87799bc4f 100644 |
30 |
--- a/NEWS |
31 |
+++ b/NEWS |
32 |
@@ -75,6 +75,9 @@ Bug fixes: |
33 |
* emerge(1): mention --with-bdeps=n behavior for both --usepkg (-k) and |
34 |
--usepkgonly (-K) (bug #863422). |
35 |
|
36 |
+* ecompress: add option to lz4 in order to be able to compress multiple |
37 |
+ files at once (bug #672916). |
38 |
+ |
39 |
portage-3.0.34 (2022-07-20) |
40 |
-------------- |
41 |
|
42 |
|
43 |
diff --git a/bin/ecompress b/bin/ecompress |
44 |
index 0aa5091dd..c69e8d6dd 100755 |
45 |
--- a/bin/ecompress |
46 |
+++ b/bin/ecompress |
47 |
@@ -124,6 +124,10 @@ fi |
48 |
if [[ ${PORTAGE_COMPRESS_FLAGS+set} != "set" ]] ; then |
49 |
case ${PORTAGE_COMPRESS} in |
50 |
bzip2|gzip) PORTAGE_COMPRESS_FLAGS="-9";; |
51 |
+ # Without setting '-m' lz4 will not compress multiple files at once. |
52 |
+ # See: https://bugs.gentoo.org/672916 |
53 |
+ # Setting '--rm' will remove the source files after a successful compression. |
54 |
+ lz4) PORTAGE_COMPRESS_FLAGS="-m --rm";; |
55 |
esac |
56 |
fi |