Opened 5 years ago

Closed 5 years ago

#59318 closed defect (duplicate)

portindex likely uses the wrong stdlib on < 10.9

Reported by: mojca (Mojca Miklavec) Owned by:
Priority: Normal Milestone:
Component: base Version:
Keywords: Cc:
Port:

Description

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.

Change History (2)

comment:1 Changed 5 years ago by mojca (Mojca Miklavec)

I'm sorry, this seems to be a duplicate of #59069.

comment:2 Changed 5 years ago by mojca (Mojca Miklavec)

Cc: ken-cunningham-webuse removed
Resolution: duplicate
Status: newclosed
Note: See TracTickets for help on using tickets.