[MacPorts] #25057: hdf5-18 +universal: h5cc, h5c++ and libhdf5.settings contain -arch flags
#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
#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 -------------------------------------+-------------------------------------- Comment(by ryandesign@…): Has duplicate #25033. -- Ticket URL: <http://trac.macports.org/ticket/25057#comment:1> MacPorts <http://www.macports.org/> Ports system for Mac OS
#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 -------------------------------------+-------------------------------------- Comment(by mmoll@…): I think I understand the problem, but I don't fully understand the instructions on how to fix this. If anyone else wants to take a stab at this, feel free to do so. -- Ticket URL: <http://trac.macports.org/ticket/25057#comment:2> MacPorts <http://www.macports.org/> Ports system for Mac OS
#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 -------------------------------------+-------------------------------------- Comment(by ryandesign@…): I can fix this in just a moment. -- Ticket URL: <http://trac.macports.org/ticket/25057#comment:3> MacPorts <http://www.macports.org/> Ports system for Mac OS
#25057: hdf5-18 +universal: h5cc, h5c++ and libhdf5.settings contain -arch flags --------------------------------------+------------------------------------- Reporter: ryandesign@… | Owner: mmoll@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 1.8.2 Resolution: fixed | Keywords: Port: hdf5-18 | --------------------------------------+------------------------------------- Changes (by ryandesign@…): * status: new => closed * resolution: => fixed Comment: Fixed in r68277. -- Ticket URL: <http://trac.macports.org/ticket/25057#comment:4> MacPorts <http://www.macports.org/> Ports system for Mac OS
participants (1)
-
MacPorts