aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar Ingmar Vanhassel <ingmar@exherbo.org> 2009-04-29 16:08:29 +0200
committerAvatar Ingmar Vanhassel <ingmar@exherbo.org> 2009-04-29 16:08:29 +0200
commitf466e01232bad12556f14d4a3fe7c52f8f46e7a8 (patch)
treed6b380fd2cb2cf65b49ea71ab844aacd8523c7ea
parent4bfc5e2f99c6d7d5b179f14a26694cc62717ed74 (diff)
downloadpaludis-f466e01232bad12556f14d4a3fe7c52f8f46e7a8.tar.gz
paludis-f466e01232bad12556f14d4a3fe7c52f8f46e7a8.tar.xz
exheres-0: Avoid possible sandbox violation from 'make --dry-run'
Make --dry-run is no real dry-run, and still runs some commands. In some particular stupid cases (dev-libs/ppl-0.10.2), 'make --dry-run install' will cause a sandbox violation, unless you pass DESTDIR=${IMAGE} to the dry-run command. See https://bugs.exherbo.org/show_bug.cgi?id=178
-rw-r--r--paludis/repositories/e/ebuild/exheres-0/src_install.bash2
1 files changed, 1 insertions, 1 deletions
diff --git a/paludis/repositories/e/ebuild/exheres-0/src_install.bash b/paludis/repositories/e/ebuild/exheres-0/src_install.bash
index dd26803..439a124 100644
--- a/paludis/repositories/e/ebuild/exheres-0/src_install.bash
+++ b/paludis/repositories/e/ebuild/exheres-0/src_install.bash
@@ -26,7 +26,7 @@ default_src_install()
local done_docs old_set f d p doc e
if [[ -f Makefile ]] || [[ -f makefile ]] || [[ -f GNUmakefile ]] ; then
- if make -j1 -n "${DEFAULT_SRC_INSTALL_PARAMS[@]}" install ; then
+ if make -j1 -n DESTDIR="${IMAGE}" "${DEFAULT_SRC_INSTALL_PARAMS[@]}" install ; then
echo "Found a makefile, using the install target"
emake -j1 DESTDIR="${IMAGE}" "${DEFAULT_SRC_INSTALL_PARAMS[@]}" install
else