[131237] trunk/dports/perl/p5-mac-carbon

larryv at macports.org larryv at macports.org
Tue Jan 6 21:28:43 PST 2015


Revision: 131237
          https://trac.macports.org/changeset/131237
Author:   larryv at macports.org
Date:     2015-01-06 21:28:43 -0800 (Tue, 06 Jan 2015)
Log Message:
-----------
p5-mac-carbon: Prevent incorrect arch detection (#46411)

The build tries to determine the machine architecture using the running
Perl, adding an arch flag to LDDLFLAGS, LDFLAGS, and CCFLAGS. If the
running Perl is not i386 or PPC, the build gets it wrong, causing
compile and link errors.

And perl-1.0 wants to handle this anyway, so just let it.

Modified Paths:
--------------
    trunk/dports/perl/p5-mac-carbon/Portfile

Added Paths:
-----------
    trunk/dports/perl/p5-mac-carbon/files/no-arch-flag.patch

Modified: trunk/dports/perl/p5-mac-carbon/Portfile
===================================================================
--- trunk/dports/perl/p5-mac-carbon/Portfile	2015-01-07 05:28:41 UTC (rev 131236)
+++ trunk/dports/perl/p5-mac-carbon/Portfile	2015-01-07 05:28:43 UTC (rev 131237)
@@ -23,6 +23,7 @@
 
 if {${perl5.major} != ""} {
     supported_archs     i386 ppc
-    patchfiles          avoid-FlatCarbon-headers.patch
+    patchfiles          avoid-FlatCarbon-headers.patch \
+                        no-arch-flag.patch
     configure.post_args TRY_ANYWAY=1
 }

Added: trunk/dports/perl/p5-mac-carbon/files/no-arch-flag.patch
===================================================================
--- trunk/dports/perl/p5-mac-carbon/files/no-arch-flag.patch	                        (rev 0)
+++ trunk/dports/perl/p5-mac-carbon/files/no-arch-flag.patch	2015-01-07 05:28:43 UTC (rev 131237)
@@ -0,0 +1,14 @@
+Index: fixargs.pl
+===================================================================
+--- fixargs.pl.orig
++++ fixargs.pl
+@@ -18,9 +18,6 @@ sub fixargs {
+ 		$ARGS->{$_} =~ s/\s?-arch x86_64\s?/ /g;
+ #		$ARGS->{$_} =~ s/\s?-arch ppc(?:\d+)?\s?/ /g;
+ 		$ARGS->{$_} =~ s|-[LI]/\w+/local/\S+| |g unless $usrlocal > 1;
+-		if ($noarch) {
+-			$ARGS->{$_} .= " -arch $defarch";
+-		}
+ 	}
+ }
+ 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20150106/19ab56dc/attachment.html>


More information about the macports-changes mailing list