Re: [MacPorts] #64486: bison-runtime fails at destroot on 10.5.8 ppc64 and 10.6.8 Rosetta – solution found
MacPorts
noreply at macports.org
Sat Mar 26 17:46:00 UTC 2022
#64486: bison-runtime fails at destroot on 10.5.8 ppc64 and 10.6.8 Rosetta –
solution found
---------------------------+----------------------
Reporter: barracuda156 | Owner: mascguy
Type: defect | Status: assigned
Priority: Normal | Milestone:
Component: ports | Version: 2.7.1
Resolution: | Keywords: powerpc
Port: bison |
---------------------------+----------------------
Comment (by mascguy):
Replying to [comment:9 barracuda156]:
> Can this be added to port file with condition specified, like:
>
> [...]
I'm fine with that, albeit generalized for the target architecture:
{{{
if {${os.major} == 10 && ${configure.build_arch} in [list ppc ppc64]}} {
configure.args-append CC="gcc-4.2 -arch ${configure.build_arch}" \
CXX="g++-4.2 -arch ${configure.build_arch}" \
CFLAGS="-arch ${configure.build_arch}" \
CXXLAGS="-arch ${configure.build_arch}" \
LDFLAGS="-L/opt/local/lib" \
--build=powerpc-apple-darwin${os.major} \
--host=powerpc-apple-darwin${os.major} \
--with-libiconv-prefix=/opt/local \
--with-libintl-prefix=/opt/local
}
}}}
Ryan/Ken, how does this look to you folks? And are there any other gotchas
I need to be aware of...?
--
Ticket URL: <https://trac.macports.org/ticket/64486#comment:12>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list