[94001] trunk/dports/_resources/port1.0/group/perl5-1.0.tcl

ryandesign at macports.org ryandesign at macports.org
Wed Jun 6 11:18:50 PDT 2012


Revision: 94001
          https://trac.macports.org/changeset/94001
Author:   ryandesign at macports.org
Date:     2012-06-06 11:18:50 -0700 (Wed, 06 Jun 2012)
Log Message:
-----------
perl5-1.0.tcl: when finding Makefiles to reinplace in, properly handle paths containing spaces

Modified Paths:
--------------
    trunk/dports/_resources/port1.0/group/perl5-1.0.tcl

Modified: trunk/dports/_resources/port1.0/group/perl5-1.0.tcl
===================================================================
--- trunk/dports/_resources/port1.0/group/perl5-1.0.tcl	2012-06-06 18:15:40 UTC (rev 94000)
+++ trunk/dports/_resources/port1.0/group/perl5-1.0.tcl	2012-06-06 18:18:50 UTC (rev 94001)
@@ -148,8 +148,8 @@
         # CCFLAGS can be passed in to "configure" but it's not necessarilary inherited
         # LDFLAGS can't be passed in (or if it can, it's not easy to figure out how)
         post-configure {
-            system "find ${worksrcpath} -name Makefile -type f | xargs /usr/bin/sed -i \"\" '/^CCFLAGS *=/s/$/ [get_canonical_archflags cc]/' \;"
-            system "find ${worksrcpath} -name Makefile -type f | xargs /usr/bin/sed -i \"\" '/^OTHERLDFLAGS *=/s/$/ [get_canonical_archflags ld]/'"
+            system "find ${worksrcpath} -name Makefile -type f -print0 | xargs -0 /usr/bin/sed -i \"\" '/^CCFLAGS *=/s/$/ [get_canonical_archflags cc]/' \;"
+            system "find ${worksrcpath} -name Makefile -type f -print0 | xargs -0 /usr/bin/sed -i \"\" '/^OTHERLDFLAGS *=/s/$/ [get_canonical_archflags ld]/'"
         }
 
         test.run            yes
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20120606/083fd65e/attachment-0001.html>


More information about the macports-changes mailing list