[MacPorts] #32507: net-snmp-config should not include -arch flags
MacPorts
noreply at macports.org
Sun Dec 11 15:46:20 PST 2011
#32507: net-snmp-config should not include -arch flags
-----------------------------------+----------------------------------------
Reporter: jeremyhu@… | Owner: ryandesign@…
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version: 2.0.3
Keywords: | Port: net-snmp
-----------------------------------+----------------------------------------
Comment(by jeremyhu@…):
Interestingly, net-snmp is a fat binary:
{{{
$ file /opt/local/lib/libnetsnmp.dylib
/opt/local/lib/libnetsnmp.dylib: Mach-O universal binary with 2
architectures
/opt/local/lib/libnetsnmp.dylib (for architecture x86_64): Mach-O
64-bit dynamically linked shared library x86_64
/opt/local/lib/libnetsnmp.dylib (for architecture i386): Mach-O
dynamically linked shared library i386
}}}
but it was not installed fat:
net-snmp-5.7.1_0.darwin_11.x86_64.tbz2
This explains why just the -arch x86_64 was stripped from net-snmp-config
with this hunk in the Portfile:
{{{
reinplace "s|${my_archflags}||g" ${worksrcpath}/${name}-config
}}}
So the problem is that net-snmp is actually building fat even though it's
not requested to. I believe this is because perl5.12 is actually fat, and
net-snmp is using perl5's CFLAGS
--
Ticket URL: <https://trac.macports.org/ticket/32507#comment:2>
MacPorts <http://www.macports.org/>
Ports system for Mac OS
More information about the macports-tickets
mailing list