#37817 closed defect (fixed)
Ports using compiler_name_map are missing from the portindex
Reported by: | yves.dubief@… | Owned by: | jeremyhu (Jeremy Huddleston Sequoia) |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 2.1.2 |
Keywords: | Cc: | jmroot (Joshua Root), raimue (Rainer Müller) | |
Port: | MPlayer, VLC, VLC-devel, cgal, dragonegg-3.0, dragonegg-3.1, dragonegg-3.2, dragonegg-3.3, ffmpeg, ffmpeg-devel, gcc43, gcc44, gcc45, gcc46, gcc47, gcc48, ld64, llvm-2.9, llvm-3.0, llvm-3.1, llvm-3.2, llvm-3.3, mplayer-devel, mythtv-core.25, opencv, ppl, ruby, xorg-xcb-util |
Description
Hi I am trying to install gcc45 and gcc47 without success. sudo port install gcc45 (or 47 or 48) returns Port gcc45 not found. The ports are also absent from the Available ports on http://www.macports.org/ports.php Is this a database problem? It seems to be linked with a recent update as I was able to compile gcc47 on a different mac a couple of weeks ago.
Change History (12)
comment:1 Changed 12 years ago by neverpanic (Clemens Lang)
comment:2 Changed 12 years ago by raimue (Rainer Müller)
Cc: | raimue@… added |
---|---|
Component: | ports → server/hosting |
Owner: | changed from macports-tickets@… to wsiegrist@… |
The PortIndex on the rsync server is currently incomplete and missing for example the gcc45 port.
rsync -rv rsync://rsync.macports.org/release/tarballs/PortIndex* /tmp/ grep gcc45 /tmp/PortIndex_darwin_*/PortIndex.quick
This does not return any hits, although I would have expected an entry in each PortIndex.quick.
comment:3 Changed 12 years ago by mf2k (Frank Schima)
I see this problem on regular non-trunk installs of Macports 2.1.2. If I manually run a portindex, it adds 36 ports including the missing gcc ports.
comment:4 Changed 12 years ago by jmroot (Joshua Root)
The problem seems to have come up only in the last day, as a machine I synced with the pregenerated PortIndex yesterday has no problem looking up the gcc ports.
comment:5 Changed 12 years ago by jmroot (Joshua Root)
Cc: | jeremyhu@… added |
---|
Looks like the culprit is r102108 and the other similar commits. The compiler_name_map isn't exactly meant to be a public API in the first place, which is why it's semi-hidden inside the portconfigure namespace, but the issue here is that there's no check for whether it actually contains a mapping for the current configure.compiler value. The server generating the indices runs Linux, so the Xcode compilers are not available. (This also means you can't rely on having configure.compiler set "correctly" at index time.)
comment:7 Changed 12 years ago by ryandesign (Ryan Carsten Schmidt)
Cc: | jeremyhu@… removed |
---|---|
Component: | server/hosting → ports |
Owner: | changed from wsiegrist@… to jeremyhu@… |
Summary: | gcc 4.x have gone missing → Ports using compiler_name_map are missing from the portindex |
comment:8 Changed 12 years ago by ryandesign (Ryan Carsten Schmidt)
Port: | MPlayer VLC VLC-devel cgal dragonegg-3.0 dragonegg-3.1 dragonegg-3.2 dragonegg-3.3 ffmpeg ffmpeg-devel gcc43 gcc44 gcc45 gcc46 gcc47 gcc48 ld64 llvm-2.9 llvm-3.0 llvm-3.1 llvm-3.2 llvm-3.3 mplayer-devel mythtv-core.25 opencv ppl ruby xorg-xcb-util added |
---|
comment:9 Changed 12 years ago by jeremyhu (Jeremy Huddleston Sequoia)
Cc: | jmr@… added |
---|
comment:10 Changed 12 years ago by jmroot (Joshua Root)
I guess you'd a check like
if {[info exists portconfigure::compiler_name_map(${configure.compiler})]} {
instead of calling compiler_is_port, as the immediate workaround. That may be what compiler_is_port should just do anyway, come to think of it. If we decide to make this stuff public, it just needs to be a little more robust.
comment:11 Changed 12 years ago by jeremyhu (Jeremy Huddleston Sequoia)
Resolution: | → fixed |
---|---|
Status: | new → closed |
What version of MacPorts do you run? From what I see, these ports need MacPorts >= 2.1.0.
Can you run
and paste the output?