Opened 11 years ago

Closed 11 years ago

Last modified 11 years ago

#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 11 years ago by neverpanic (Clemens Lang)

What version of MacPorts do you run? From what I see, these ports need MacPorts >= 2.1.0.

Can you run

cd $(port dir mplayer2)/../../lang/gcc48 && port info

and paste the output?

comment:2 Changed 11 years ago by raimue (Rainer Müller)

Cc: raimue@… added
Component: portsserver/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 11 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 11 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 11 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:6 Changed 11 years ago by ryandesign (Ryan Carsten Schmidt)

Has duplicate #37824.

comment:7 Changed 11 years ago by ryandesign (Ryan Carsten Schmidt)

Cc: jeremyhu@… removed
Component: server/hostingports
Owner: changed from wsiegrist@… to jeremyhu@…
Summary: gcc 4.x have gone missingPorts using compiler_name_map are missing from the portindex

comment:8 Changed 11 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 11 years ago by jeremyhu (Jeremy Huddleston Sequoia)

Cc: jmr@… added

Ok, so then what is the alternative? Can we just get a fix for #32542, so we can avoid having to hack around this? What's a safe thing to do in the interim until #32542 is actually fixed?

comment:10 Changed 11 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 11 years ago by jeremyhu (Jeremy Huddleston Sequoia)

Resolution: fixed
Status: newclosed

comment:12 Changed 11 years ago by ryandesign (Ryan Carsten Schmidt)

Has duplicate #37850.

Note: See TracTickets for help on using tickets.