diff options
author | jlam <jlam@pkgsrc.org> | 2005-12-30 23:16:33 +0000 |
---|---|---|
committer | jlam <jlam@pkgsrc.org> | 2005-12-30 23:16:33 +0000 |
commit | d12148e1c9911d2c31c444f8ccd081da6a5ff594 (patch) | |
tree | 54639ace6b87b2e339b295d11917f87825816e64 /lang/perl5 | |
parent | 2094b347be54adb6b0bc8e8ef0c8e1c0fd7b3f1c (diff) | |
download | pkgsrc-d12148e1c9911d2c31c444f8ccd081da6a5ff594.tar.gz |
Ensure that the hints files are always writable before modifying them.
Fixes build problems on platforms without threads.
Diffstat (limited to 'lang/perl5')
-rw-r--r-- | lang/perl5/Makefile | 5 |
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 |