[MacPorts] #59318: portindex likely uses the wrong stdlib on < 10.9
MacPorts
noreply at macports.org
Mon Oct 14 18:59:53 UTC 2019
#59318: portindex likely uses the wrong stdlib on < 10.9
--------------------+--------------------
Reporter: mojca | Owner: (none)
Type: defect | Status: new
Priority: Normal | Milestone:
Component: base | Version:
Keywords: | Port:
--------------------+--------------------
Considering the following `Portfile`:
{{{
PortSystem 1.0
name test
version 1
platforms darwin
# this one seems to be missing from portindex
platform darwin12 {
subport t1 {}
}
# correctly detected
if {${os.platform} eq "darwin" && ${os.major} == 12} {
subport t_darwin12 {}
}
# when called with portindex -p macosx_12_i386, this will only add a
subport y_stdlibcxx
if {${configure.cxx_stdlib} eq "libc++"} {
subport t_libcxx {}
} else {
subport t_stdlibcxx {}
}
}}}
{{{
$ portindex -p macosx_13_i386 -o darwin13
Creating port index in /path/to/darwin13
Adding port test/test
Adding subport t_libcxx
Total number of ports parsed: 2
Ports successfully parsed: 2
Ports failed: 0
Up-to-date ports skipped: 0
}}}
{{{
$ portindex -p macosx_12_i386 -o darwin12
Creating port index in /path/to/darwin12
Adding port test/test
Adding subport t_darwin12
Adding subport t_stdlibcxx
Total number of ports parsed: 3
Ports successfully parsed: 3
Ports failed: 0
Up-to-date ports skipped: 0
}}}
We should probably fix the defaults for `portindex`, and likely remove the
recently introduced parser that allows generating portindex for
`macosx_12_i386_libcxx`.
--
Ticket URL: <https://trac.macports.org/ticket/59318>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list