summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNed Ludd <solar@gentoo.org>2005-12-25 21:31:29 +0000
committerNed Ludd <solar@gentoo.org>2005-12-25 21:31:29 +0000
commit82725294809a7100f87dad05f623b4ea00cfd44b (patch)
treefe6e38800d832dca15f31acb229a17631bca77df
parent3bda2a3500678074ec0e036d4e1e8bcb711f3c9c (diff)
downloadportage-82725294809a7100f87dad05f623b4ea00cfd44b.tar.gz
portage-82725294809a7100f87dad05f623b4ea00cfd44b.tar.bz2
portage-82725294809a7100f87dad05f623b4ea00cfd44b.zip
- consolidate noman noinfo nodoc into a simple loop and use INSTALL_MASK. Add debug to default list of MULTILIB_STRICT_EXEMPT=
svn path=/main/trunk/; revision=2473
-rwxr-xr-xbin/ebuild.sh25
1 files changed, 8 insertions, 17 deletions
diff --git a/bin/ebuild.sh b/bin/ebuild.sh
index 55d456b0a..bf785ae7a 100755
--- a/bin/ebuild.sh
+++ b/bin/ebuild.sh
@@ -1177,7 +1177,7 @@ dyn_install() {
if hasq multilib-strict ${FEATURES} && [ -x /usr/bin/file -a -x /usr/bin/find -a \
-n "${MULTILIB_STRICT_DIRS}" -a -n "${MULTILIB_STRICT_DENY}" ]; then
- MULTILIB_STRICT_EXEMPT=${MULTILIB_STRICT_EXEMPT:-"(perl5|gcc|gcc-lib)"}
+ MULTILIB_STRICT_EXEMPT=${MULTILIB_STRICT_EXEMPT:-"(perl5|gcc|gcc-lib|debug)"}
for dir in ${MULTILIB_STRICT_DIRS}; do
[ -d "${D}/${dir}" ] || continue
for file in $(find ${D}/${dir} -type f | egrep -v "^${D}/${dir}/${MULTILIB_STRICT_EXEMPT}"); do
@@ -1204,7 +1204,13 @@ dyn_preinst() {
declare -r D=${IMAGE}
pkg_preinst
- # hopefully this will someday allow us to get rid of the no* feature flags
+ # remove man pages, info pages, docs if requested
+ for f in man info doc; do
+ if hasq no${f} $FEATURES; then
+ INSTALL_MASK="${INSTALL_MASK} /usr/share/${f}"
+ fi
+ done
+
# we don't want globbing for initial expansion, but afterwards, we do
local shopts=$-
set -o noglob
@@ -1221,21 +1227,6 @@ dyn_preinst() {
set +o noglob
set -${shopts}
- # remove man pages
- if hasq noman $FEATURES; then
- rm -fR "${IMAGE}/usr/share/man"
- fi
-
- # remove info pages
- if hasq noinfo $FEATURES; then
- rm -fR "${IMAGE}/usr/share/info"
- fi
-
- # remove docs
- if hasq nodoc $FEATURES; then
- rm -fR "${IMAGE}/usr/share/doc"
- fi
-
# remove share dir if unnessesary
if hasq nodoc $FEATURES -o hasq noman $FEATURES -o hasq noinfo $FEATURES; then
rmdir "${IMAGE}/usr/share" &> /dev/null