Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 5 Sep 2014 15:31:31 +0000 (UTC)
From:      Tijl Coosemans <tijl@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r367345 - head/Mk/Uses
Message-ID:  <201409051531.s85FVVhV072943@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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}				\



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201409051531.s85FVVhV072943>