aboutsummaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2018-03-24 14:31:39 -0700
committerZac Medico <zmedico@gentoo.org>2018-03-27 22:58:35 -0700
commit9618f5501e3db3f29a16bfb92d4b104453258eae (patch)
tree0700b6240ae0c7e225295a293332a0d063a1a764 /bin
parentemerge: add --changed-slot [ y | n ] option (bug 631358) (diff)
downloadportage-9618f5501e3db3f29a16bfb92d4b104453258eae.tar.gz
portage-9618f5501e3db3f29a16bfb92d4b104453258eae.tar.bz2
portage-9618f5501e3db3f29a16bfb92d4b104453258eae.zip
{,PKG_}INSTALL_MASK: record value in vardb
Also, skip preinst_mask phase when INSTALL_MASK is empty.
Diffstat (limited to 'bin')
-rwxr-xr-xbin/misc-functions.sh8
-rw-r--r--bin/phase-functions.sh12
2 files changed, 11 insertions, 9 deletions
diff --git a/bin/misc-functions.sh b/bin/misc-functions.sh
index df8361036..ee65450f2 100755
--- a/bin/misc-functions.sh
+++ b/bin/misc-functions.sh
@@ -381,14 +381,6 @@ preinst_mask() {
# in there in case any tools were built with -pg in CFLAGS.
cd "${T}"
- # remove man pages, info pages, docs if requested
- local f
- for f in man info doc; do
- if has no${f} $FEATURES; then
- INSTALL_MASK="${INSTALL_MASK} /usr/share/${f}"
- fi
- done
-
install_mask "${ED}" "${INSTALL_MASK}"
# remove share dir if unnessesary
diff --git a/bin/phase-functions.sh b/bin/phase-functions.sh
index 3aae3ef56..bdae68f79 100644
--- a/bin/phase-functions.sh
+++ b/bin/phase-functions.sh
@@ -660,13 +660,23 @@ __dyn_install() {
cd "${PORTAGE_BUILDDIR}"/build-info
set -f
local f x
+
+ # remove man pages, info pages, docs if requested
+ for f in man info doc; do
+ if has no${f} ${FEATURES} && \
+ ! has "/usr/share/${f}" ${INSTALL_MASK}; then
+ INSTALL_MASK+=" /usr/share/${f}"
+ fi
+ done
+
IFS=$' \t\n\r'
for f in CATEGORY DEFINED_PHASES FEATURES INHERITED IUSE \
PF PKGUSE SLOT KEYWORDS HOMEPAGE DESCRIPTION \
ASFLAGS CBUILD CC CFLAGS CHOST CTARGET CXX \
CXXFLAGS EXTRA_ECONF EXTRA_EINSTALL EXTRA_MAKE \
LDFLAGS LIBCFLAGS LIBCXXFLAGS QA_CONFIGURE_OPTIONS \
- QA_DESKTOP_FILE QA_PREBUILT PROVIDES_EXCLUDE REQUIRES_EXCLUDE ; do
+ QA_DESKTOP_FILE QA_PREBUILT PROVIDES_EXCLUDE REQUIRES_EXCLUDE \
+ INSTALL_MASK PKG_INSTALL_MASK; do
x=$(echo -n ${!f})
[[ -n $x ]] && echo "$x" > $f