summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorwiz <wiz>2013-02-08 12:23:24 +0000
committerwiz <wiz>2013-02-08 12:23:24 +0000
commit798a042d09e653873e1fb669d22e314f1a8c10c3 (patch)
tree7c3d7d15719f354c1dbd77612fbe921696a72d11
parentbea0fc82cd367f340105c9e88bc1c06e20df6ba4 (diff)
downloadpkgsrc-798a042d09e653873e1fb669d22e314f1a8c10c3.tar.gz
When using destdir, the clean stage isn't privileged.
-rw-r--r--lang/python27/Makefile4
-rw-r--r--lang/python31/Makefile4
2 files changed, 5 insertions, 3 deletions
diff --git a/lang/python27/Makefile b/lang/python27/Makefile
index 25c2366804a..0d8ee1f878e 100644
--- a/lang/python27/Makefile
+++ b/lang/python27/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.21 2013/02/06 23:22:38 jperkin Exp $
+# $NetBSD: Makefile,v 1.22 2013/02/08 12:23:24 wiz Exp $
.include "dist.mk"
@@ -54,7 +54,9 @@ PLIST_SRC+= ${.CURDIR}/../../lang/python27/PLIST.${OPSYS}
PLIST_SRC+= ${.CURDIR}/../../lang/python27/PLIST.common_end
.if ${OPSYS} == "NetBSD"
+.if !defined(USE_DESTDIR) || empty(USE_DESTDIR:M[Yy][Ee][Ss])
PRIVILEGED_STAGES+= clean
+.endif
# XXX work around a botched autoconf check which ignores libintl
CONFIGURE_ENV+= ac_cv_func_bind_textdomain_codeset=yes
.endif
diff --git a/lang/python31/Makefile b/lang/python31/Makefile
index 72eee84c269..38b88dd9a06 100644
--- a/lang/python31/Makefile
+++ b/lang/python31/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.14 2013/02/06 23:22:38 jperkin Exp $
+# $NetBSD: Makefile,v 1.15 2013/02/08 12:23:24 wiz Exp $
.include "dist.mk"
@@ -48,7 +48,7 @@ PLIST_SRC+= ${.CURDIR}/../../lang/python31/PLIST.${OPSYS}
.endif
PLIST_SRC+= ${.CURDIR}/../../lang/python31/PLIST.common_end
-.if ${OPSYS} == "NetBSD"
+.if ${OPSYS} == "NetBSD" && !defined(USE_DESTDIR) || empty(USE_DESTDIR:M[Yy][Ee][Ss])
PRIVILEGED_STAGES+= clean
.endif