1 |
commit: efee1fa6e50aab511c42d995d2fd2f89d9cdecd6 |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Mar 22 20:36:59 2018 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Sep 17 06:45:09 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/proj/portage.git/commit/?id=efee1fa6 |
7 |
|
8 |
Ban prepallman in ebuild scope |
9 |
|
10 |
Reviewed-by: Zac Medico <zmedico <AT> gentoo.org> |
11 |
|
12 |
bin/ebuild-helpers/prepall | 7 ++++++- |
13 |
bin/ebuild-helpers/prepallman | 20 +++----------------- |
14 |
2 files changed, 9 insertions(+), 18 deletions(-) |
15 |
|
16 |
diff --git a/bin/ebuild-helpers/prepall b/bin/ebuild-helpers/prepall |
17 |
index c2d879f37..87e1ca20c 100755 |
18 |
--- a/bin/ebuild-helpers/prepall |
19 |
+++ b/bin/ebuild-helpers/prepall |
20 |
@@ -16,7 +16,12 @@ if has chflags $FEATURES ; then |
21 |
chflags -R nosunlnk,nouunlnk "${ED}" 2>/dev/null |
22 |
fi |
23 |
|
24 |
-prepallman |
25 |
+if ! ___eapi_has_docompress; then |
26 |
+ while IFS= read -r -d '' mandir ; do |
27 |
+ mandir=${mandir#${ED}} |
28 |
+ prepman "${mandir%/man}" |
29 |
+ done < <(find "${ED}" -type d -name man -print0) |
30 |
+fi |
31 |
[[ -d ${ED%/}/usr/share/info ]] && prepinfo |
32 |
|
33 |
___eapi_has_dostrip || prepallstrip |
34 |
|
35 |
diff --git a/bin/ebuild-helpers/prepallman b/bin/ebuild-helpers/prepallman |
36 |
index 03b10a8da..e23a6d410 100755 |
37 |
--- a/bin/ebuild-helpers/prepallman |
38 |
+++ b/bin/ebuild-helpers/prepallman |
39 |
@@ -1,22 +1,8 @@ |
40 |
#!/bin/bash |
41 |
-# Copyright 1999-2012 Gentoo Foundation |
42 |
+# Copyright 1999-2018 Gentoo Foundation |
43 |
# Distributed under the terms of the GNU General Public License v2 |
44 |
|
45 |
source "${PORTAGE_BIN_PATH}"/isolated-functions.sh || exit 1 |
46 |
|
47 |
-# replaced by controllable compression in EAPI 4 |
48 |
-___eapi_has_docompress && exit 0 |
49 |
- |
50 |
-if ! ___eapi_has_prefix_variables; then |
51 |
- ED=${D} |
52 |
-fi |
53 |
- |
54 |
-ret=0 |
55 |
- |
56 |
-while IFS= read -r -d '' mandir ; do |
57 |
- mandir=${mandir#${ED}} |
58 |
- prepman "${mandir%/man}" |
59 |
- ((ret|=$?)) |
60 |
-done < <(find "${ED}" -type d -name man -print0) |
61 |
- |
62 |
-exit ${ret} |
63 |
+die "'${0##*/}' is not allowed in ebuild scope" |
64 |
+exit 1 |