[MacPorts] #25057: hdf5-18 +universal: h5cc, h5c++ and libhdf5.settings contain -arch flags
MacPorts
noreply at macports.org
Thu May 27 12:10:21 PDT 2010
#25057: hdf5-18 +universal: h5cc, h5c++ and libhdf5.settings contain -arch flags
-------------------------------------+--------------------------------------
Reporter: ryandesign@… | Owner: mmoll@…
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version: 1.8.2
Keywords: | Port: hdf5-18
-------------------------------------+--------------------------------------
hdf5-18 +universal installs h5cc and h5c++ programs that don't work. They
don't work because their executable bit isn't set, and their executable
bit isn't set because they have been merged by the muniversal portgroup.
h5cc for example contains this:
{{{
SHOW="eval"
CCBASE="/usr/bin/gcc-4.2"
CLINKERBASE="/usr/bin/gcc-4.2"
#ifndef __LP64__
CFLAGS=" -O2 -arch i386"
#else /* __LP64__ */
CFLAGS=" -O2 -arch x86_64"
#endif /* __LP64__ */
CPPFLAGS=" -I/opt/local/include"
#ifndef __LP64__
LDFLAGS=" -L/opt/local/lib -arch i386"
#else /* __LP64__ */
LDFLAGS=" -L/opt/local/lib -arch x86_64"
#endif /* __LP64__ */
LIBS=" -lsz -lz -lm "
}}}
These are obviously C preprocessor directives and have no business being
in a shell script, but muniversal didn't know this wasn't a C file and put
them there anyway.
The solution will likely be to remove the -arch flags from this and any
other file where they occur (before the end of the destroot phase when the
merging happens) since [wiki:PortfileRecipes#archflags it's not
appropriate to install files with -arch flags] anyway. The affected files
are h5cc, h5c++ and libhdf5.settings.
--
Ticket URL: <http://trac.macports.org/ticket/25057>
MacPorts <http://www.macports.org/>
Ports system for Mac OS
More information about the macports-tickets
mailing list