[MacPorts] #51980: perl5: build fails on Sierra (library not found for -lgcc_s.10.4)
MacPorts
noreply at macports.org
Thu Oct 20 02:29:04 CEST 2016
#51980: perl5: build fails on Sierra (library not found for -lgcc_s.10.4)
-------------------------------------------------+-------------------------
Reporter: cdhanks@… | Owner: mojca@…
Type: defect | Status: reopened
Priority: Normal | Milestone:
Component: ports | Version:
Resolution: | Keywords: sierra
Port: perl5 perl5.16 perl5.18 perl5.20 |
perl5.22 |
-------------------------------------------------+-------------------------
Changes (by mojca@…):
* cc: mcalhoun@…, ridethecliche@… (added)
Comment:
Slightly off-topic, but related to the pending patches posted here. Marcus
requested the following three patches:
{{{
#!patch
--- Portfile.orig
+++ Portfile
@@ -114,8 +114,16 @@
post-patch {
reinplace -W ${worksrcpath} "s|__PREFIX__|${prefix}|g" \
Configure Makefile.SH
+
+ if { ${os.major} <= 9 } {
+ reinplace -W ${worksrcpath}
"s|MACOSX_DEPLOYMENT_TARGET=10.3|MACOSX_DEPLOYMENT_TARGET=${macosx_deployment_target}|g"
\
+ hints/darwin.sh
+ }
}
+ # make sure get_canonical_archflags works properly
+ variant universal {}
+
configure.ccache no
configure.distcc no
configure.env LC_ALL=C
@@ -152,6 +160,7 @@
{-Acppflags="$CPPFLAGS"} \
{-Accflags="$CFLAGS"} \
{-Aldflags="$LDFLAGS"} \
+ "-Alddlflags=\"[get_canonical_archflags
ld]\"" \
{-Dinstallstyle="lib/perl5"}
} else {
configure.post_args-append \
}}}
Reasons as described by Marcus:
* When building `.bundle files`, `build_arch` is not respected, and they
are not universal
* On older systems, `macosx_deployment_target` is not respected (10.3 is
always used).
My response:
* I would be grateful for explanation how to test the first point.
* If we are patching `MACOSX_DEPLOYMENT_TARGET`, shouldn't we at least do
that consistently for all OS version?
* I don't understand why `variant universal {}` is needed. Is this a bug
in MacPorts base or where exactly lies the difference?
* Do any of those patches address #52290?
--
Ticket URL: <https://trac.macports.org/ticket/51980#comment:51>
MacPorts <https://www.macports.org/>
Ports system for the Mac operating system
More information about the macports-tickets
mailing list