[MacPorts] #59753: gildas @201911b: does not build for the right C++ stdlib (undefined symbols)
MacPorts
noreply at macports.org
Fri Feb 7 13:27:27 UTC 2020
#59753: gildas @201911b: does not build for the right C++ stdlib (undefined
symbols)
-------------------------+----------------------
Reporter: ryandesign | Owner: bardeau
Type: defect | Status: assigned
Priority: Normal | Milestone:
Component: ports | Version: 2.6.2
Resolution: | Keywords:
Port: gildas |
-------------------------+----------------------
Comment (by bardeau):
Regarding the reinplaces: in our project there are 5 files patched
specifically for MacPorts. Among those 5, 4 contain keys to be reinplaced
by proper MacPorts translation:
{{{
reinplace -W ${worksrcpath}/admin "s|@CC@|${configure.cc}|g"
Makefile.def Makefile.python gildas-env.sh define-system.sh
reinplace -W ${worksrcpath}/admin "s|@CCFLAGS@|${configure.cflags}|g"
Makefile.def Makefile.python gildas-env.sh define-system.sh
reinplace -W ${worksrcpath}/admin "s|@FC@|${configure.fc}|g"
Makefile.def Makefile.python gildas-env.sh define-system.sh
reinplace -W ${worksrcpath}/admin "s|@FCFLAGS@|${configure.fcflags}|g"
Makefile.def Makefile.python gildas-env.sh define-system.sh
reinplace -W ${worksrcpath}/admin "s|@CXX@|${configure.cxx}|g"
Makefile.def Makefile.python gildas-env.sh define-system.sh
reinplace -W ${worksrcpath}/admin "s|@CPP@|${configure.cpp}|g"
Makefile.def Makefile.python gildas-env.sh define-system.sh
reinplace -W ${worksrcpath}/admin
"s|@CPPFLAGS@|${configure.cppflags}|g" Makefile.def Makefile.python
gildas-env.sh define-system.sh
reinplace -W ${worksrcpath}/admin "s|@LDFLAGS@|${configure.ldflags}|g"
Makefile.def Makefile.python gildas-env.sh define-system.sh
reinplace -W ${worksrcpath}/admin "s|@PYTHON@|${configure.python}|g"
Makefile.def Makefile.python gildas-env.sh define-system.sh
reinplace -W ${worksrcpath}/admin "s|@STDCXXLIB@|${cxxstdlib}|g"
Makefile.def Makefile.python gildas-env.sh define-system.sh
}}}
There are 10 keys to be reinplaced, which means possibly up to 40
combinations of key+file. It has been chosen to apply all the
reinplacements to all files for the sake of completeness, at the time the
Portfile was first created, and for later changes. Yes, I could put the
proper list of files to each reinplace invocation, but this means keeping
an up-to-date list with the risk it becomes inconsistent with what the
patched files actually contains.
--
Ticket URL: <https://trac.macports.org/ticket/59753#comment:5>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list