Gentoo Archives: gentoo-portage-dev

From: Fabian Groffen <grobian@g.o>
To: gentoo-portage-dev@l.g.o
Subject: [gentoo-portage-dev] [PATCH] misc-functions: Prefix fixes
Date: Mon, 25 Jul 2022 16:47:09
Message-Id: Yt7JBsaCpcmD/U6L@gentoo.org
1 bin/misc-functions.sh: some Prefix fixes
2
3 - ED needs not to exist, whereas D does, so ensure we check for that,
4 and create ED if absent, necessary for further checks to succeed
5 - use EPREFIX in INSTALL_MASK
6
7 Signed-off-by: Fabian Groffen <grobian@g.o>
8
9 diff --git a/bin/misc-functions.sh b/bin/misc-functions.sh
10 index c8bac08e7..8fcc23588 100755
11 --- a/bin/misc-functions.sh
12 +++ b/bin/misc-functions.sh
13 @@ -19,6 +19,8 @@ source "${PORTAGE_BIN_PATH}/ebuild.sh" || exit 1
14 install_symlink_html_docs() {
15 if ! ___eapi_has_prefix_variables; then
16 local ED=${D}
17 + else
18 + [[ ! -d ${ED} && -d ${D} ]] && dodir /
19 fi
20 cd "${ED}" || die "cd failed"
21 # Symlink the html documentation (if DOC_SYMLINKS_DIR is set in make.conf)
22 @@ -83,7 +87,7 @@ install_qa_check() {
23 local EPREFIX= ED=${D}
24 fi
25
26 - cd "${ED}" || die "cd failed"
27 + cd "${D}" || die "cd failed"
28
29 # Collect the paths for QA checks, highest prio first.
30 paths=(
31 @@ -367,7 +718,7 @@ preinst_mask() {
32 local f x
33 for f in man info doc; do
34 if has no${f} ${FEATURES}; then
35 - INSTALL_MASK+=" /usr/share/${f}"
36 + INSTALL_MASK+=" ${EPREFIX}/usr/share/${f}"
37 fi
38 done
39
40
41 --
42 Fabian Groffen
43 Gentoo on a different level

Attachments

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

Replies

Subject Author
Re: [gentoo-portage-dev] [PATCH] misc-functions: Prefix fixes Mike Gilbert <floppym@g.o>