diff options
author | wiz <wiz> | 2013-02-08 12:23:24 +0000 |
---|---|---|
committer | wiz <wiz> | 2013-02-08 12:23:24 +0000 |
commit | 798a042d09e653873e1fb669d22e314f1a8c10c3 (patch) | |
tree | 7c3d7d15719f354c1dbd77612fbe921696a72d11 | |
parent | bea0fc82cd367f340105c9e88bc1c06e20df6ba4 (diff) | |
download | pkgsrc-798a042d09e653873e1fb669d22e314f1a8c10c3.tar.gz |
When using destdir, the clean stage isn't privileged.
-rw-r--r-- | lang/python27/Makefile | 4 | ||||
-rw-r--r-- | lang/python31/Makefile | 4 |
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 |