pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/lang/perl5 Ensure that the hints files are always writ...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/3a0955f43956
branches:  trunk
changeset: 505132:3a0955f43956
user:      jlam <jlam%pkgsrc.org@localhost>
date:      Fri Dec 30 23:16:33 2005 +0000

description:
Ensure that the hints files are always writable before modifying them.
Fixes build problems on platforms without threads.

diffstat:

 lang/perl5/Makefile |  5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diffs (33 lines):

diff -r bdc9cdcb9491 -r 3a0955f43956 lang/perl5/Makefile
--- a/lang/perl5/Makefile       Fri Dec 30 23:13:41 2005 +0000
+++ b/lang/perl5/Makefile       Fri Dec 30 23:16:33 2005 +0000
@@ -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 @@
 .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 @@
        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 @@
 .if !empty(SYSLIBPATH)
        hintdir="${WRKSRC}/hints";                                      \
        for hints in $${hintdir}/*.sh; do                               \
+               ${CHMOD} +w $${hints};                                  \
                ${ECHO} 'glibpth="'${SYSLIBPATH:Q}'"' >> $${hints};     \
        done
 .endif



Home | Main Index | Thread Index | Old Index