svn commit: r367345 - head/Mk/Uses
Tijl Coosemans
tijl at FreeBSD.org
Fri Sep 5 15:31:32 UTC 2014
Author: tijl
Date: Fri Sep 5 15:31:31 2014
New Revision: 367345
URL: http://svnweb.freebsd.org/changeset/ports/367345
QAT: https://qat.redports.org/buildarchive/r367345/
Log:
After patching configure restore the original modification time. This
avoids running makefile targets that depend on configure such as the PDF
documentation in textproc/flex.
Reported by: hrs
Approved by: portmgr (bapt)
Modified:
head/Mk/Uses/libtool.mk
Modified: head/Mk/Uses/libtool.mk
==============================================================================
--- head/Mk/Uses/libtool.mk Fri Sep 5 14:45:47 2014 (r367344)
+++ head/Mk/Uses/libtool.mk Fri Sep 5 15:31:31 2014 (r367345)
@@ -31,14 +31,15 @@ _INCLUDE_USES_LIBTOOL_POST_MK= yes
patch-libtool:
@${FIND} ${WRKDIR} \( -name configure -or -name ltconfig \) \
- -type f | ${XARGS} ${REINPLACE_CMD} \
+ -type f | while read i; do ${SED} -i.bak \
-e '/dragonfly\*/!s/^ *freebsd\*[ )]/dragonfly* | &/' \
-e '/gcc_dir=\\`/s/gcc /$$CC /' \
-e '/gcc_ver=\\`/s/gcc /$$CC /' \
-e '/link_all_deplibs[0-9A-Z_]*=/s/=unknown/=no/' \
-e '/objformat=/s/echo aout/echo elf/' \
-e "/freebsd-elf\\*)/,/;;/ { \
- /deplibs_check_method=/s/=.*/=pass_all/; }"
+ /deplibs_check_method=/s/=.*/=pass_all/; }" \
+ $${i} && ${TOUCH} -mr $${i}.bak $${i}; done
@${FIND} ${WRKDIR} -type f -name ltmain.sh | \
${XARGS} ${REINPLACE_CMD} \
@@ -48,7 +49,7 @@ patch-libtool:
.if ! ${libtool_ARGS:Moldver}
@${FIND} ${WRKDIR} \( -name configure -or -name ltconfig \) \
- -type f | ${XARGS} ${REINPLACE_CMD} \
+ -type f | while read i; do ${SED} -i.bak \
-e "/freebsd-elf\\*)/,/;;/ { \
/library_names_spec=.*\\.so/ \
s/=.*/='\$$libname\$$release.so\$$versuffix \
@@ -58,7 +59,8 @@ patch-libtool:
s/=.*/='\$$libname\$$release\$$shared_ext\$$versuffix \
\$$libname\$$release\$$shared_ext\$$major \
\$$libname\$$shared_ext' \
- soname_spec='\$$libname\$$release\$$shared_ext\$$major'/; }"
+ soname_spec='\$$libname\$$release\$$shared_ext\$$major'/; \
+ }" $${i} && ${TOUCH} -mr $${i}.bak $${i}; done
@${FIND} ${WRKDIR} -type f -name ltmain.sh | \
${XARGS} ${REINPLACE_CMD} \
More information about the svn-ports-all
mailing list