summaryrefslogtreecommitdiff
path: root/lang
diff options
context:
space:
mode:
authorjlam <jlam>2005-12-30 23:16:33 +0000
committerjlam <jlam>2005-12-30 23:16:33 +0000
commitf1f9b9ad6231c670386bbf371d802f2f013a0569 (patch)
tree54639ace6b87b2e339b295d11917f87825816e64 /lang
parenta2909b9e3792d6768b0d60931ec9215a580abe4d (diff)
downloadpkgsrc-f1f9b9ad6231c670386bbf371d802f2f013a0569.tar.gz
Ensure that the hints files are always writable before modifying them.
Fixes build problems on platforms without threads.
Diffstat (limited to 'lang')
-rw-r--r--lang/perl5/Makefile5
1 files changed, 4 insertions, 1 deletions
diff --git a/lang/perl5/Makefile b/lang/perl5/Makefile
index c983836a1c0..4114f0e0ac0 100644
--- a/lang/perl5/Makefile
+++ b/lang/perl5/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.110 2005/12/29 17:54:45 jlam Exp $
+# $NetBSD: Makefile,v 1.111 2005/12/30 23:16:33 jlam Exp $
# The following two variables should have empty values unless we're
# building a perl snapshot or release candidate.
@@ -290,6 +290,7 @@ pre-configure:
.endif
hintdir="${WRKSRC}/hints"; \
for hints in $${hintdir}/*.sh; do \
+ ${CHMOD} +w $${hints}; \
{ ${ECHO} ""; \
${ECHO} "cat > UU/pkgsrc.cbu <<'EOCBU'"; \
${ECHO} "# This script UU/pkgsrc.cbu will get 'called-back' by Configure to set"; \
@@ -301,6 +302,7 @@ pre-configure:
done
hintdir="${WRKSRC}/hints"; \
for hints in $${hintdir}/*.sh; do \
+ ${CHMOD} +w $${hints}; \
{ ${ECHO} ""; \
${ECHO} "# Set pkgsrc defaults for library and header search paths."; \
${ECHO} 'locincpth="'${LOCINCPATH:Q}'"'; \
@@ -310,6 +312,7 @@ pre-configure:
.if !empty(SYSLIBPATH)
hintdir="${WRKSRC}/hints"; \
for hints in $${hintdir}/*.sh; do \
+ ${CHMOD} +w $${hints}; \
${ECHO} 'glibpth="'${SYSLIBPATH:Q}'"' >> $${hints}; \
done
.endif