summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Seifert <soap@gentoo.org>2016-10-06 20:15:16 +0200
committerDavid Seifert <soap@gentoo.org>2016-10-06 20:15:40 +0200
commit44540d2c38618b766626b88798bcd5c4bb506836 (patch)
treebf1a2c0f51ee1eaff7af9898be0ba8183d681cc6
parentkde-frameworks/kcoreaddons: backport patch from upstream for CVE-2016-7966 (diff)
downloadgentoo-44540d2c38618b766626b88798bcd5c4bb506836.tar.gz
gentoo-44540d2c38618b766626b88798bcd5c4bb506836.tar.bz2
gentoo-44540d2c38618b766626b88798bcd5c4bb506836.zip
dev-libs/boost: Correct find command to delete non-empty dirs, #2
Gentoo-bug: 596216 Package-Manager: portage-2.3.1
-rw-r--r--dev-libs/boost/boost-1.62.0-r1.ebuild18
1 files changed, 10 insertions, 8 deletions
diff --git a/dev-libs/boost/boost-1.62.0-r1.ebuild b/dev-libs/boost/boost-1.62.0-r1.ebuild
index 03a15bcb42c5..690b792cdf31 100644
--- a/dev-libs/boost/boost-1.62.0-r1.ebuild
+++ b/dev-libs/boost/boost-1.62.0-r1.ebuild
@@ -107,12 +107,12 @@ __EOF__
pkg_setup() {
# Bail out on unsupported build configuration, bug #456792
- if [[ -f "${EROOT}etc/site-config.jam" ]]; then
- grep -q gentoorelease "${EROOT}etc/site-config.jam" && grep -q gentoodebug "${EROOT}etc/site-config.jam" ||
+ if [[ -f "${EROOT%/}/etc/site-config.jam" ]]; then
+ grep -q gentoorelease "${EROOT%/}/etc/site-config.jam" && grep -q gentoodebug "${EROOT%/}/etc/site-config.jam" ||
(
- eerror "You are using custom ${EROOT}etc/site-config.jam without defined gentoorelease/gentoodebug targets."
+ eerror "You are using custom ${EROOT%/}/etc/site-config.jam without defined gentoorelease/gentoodebug targets."
eerror "Boost can not be built in such configuration."
- eerror "Please, either remove this file or add targets from ${EROOT}usr/share/boost-build/site-config.jam to it."
+ eerror "Please, either remove this file or add targets from ${EROOT%/}/usr/share/boost-build/site-config.jam to it."
die
)
fi
@@ -139,7 +139,7 @@ ejam() {
src_configure() {
# Workaround for too many parallel processes requested, bug #506064
- [ "$(makeopts_jobs)" -gt 64 ] && MAKEOPTS="${MAKEOPTS} -j64"
+ [[ "$(makeopts_jobs)" -gt 64 ]] && MAKEOPTS="${MAKEOPTS} -j64"
OPTIONS=(
$(usex debug gentoodebug gentoorelease)
@@ -294,9 +294,11 @@ multilib_src_install_all() {
fi
if use doc; then
- find libs/*/* -depth \( -iname 'test' -o -iname 'src' \) -delete || die
- find doc -depth \( -name 'Jamfile.v2' -o -name 'build' -o -name '*.manifest' \) -delete || die
- find tools -depth \( -name 'Jamfile.v2' -o -name 'src' -o -name '*.cpp' -o -name '*.hpp' \) -delete || die
+ # find extraneous files that shouldn't be installed
+ # as part of the documentation and remove them.
+ find libs/*/* \( -iname 'test' -o -iname 'src' \) -exec rm -rf '{}' + || die
+ find doc \( -name 'Jamfile.v2' -o -name 'build' -o -name '*.manifest' \) -exec rm -rf '{}' + || die
+ find tools \( -name 'Jamfile.v2' -o -name 'src' -o -name '*.cpp' -o -name '*.hpp' \) -exec rm -rf '{}' + || die
docinto html
dodoc *.{htm,html,png,css}