Opened 11 years ago

Closed 11 years ago

Last modified 11 years ago

#37235 closed defect (fixed)

gobject-introspection 1.34.1.1 ignores configure.cc and chooses gcc compiler

Reported by: thijsvermeir@… Owned by: neverpanic (Clemens Lang)
Priority: Normal Milestone:
Component: ports Version: 2.1.2
Keywords: Cc: ryandesign (Ryan Carsten Schmidt), skymoo (Adam Mercer)
Port: gobject-introspection

Description

gobject-introspection is not using configure.cc as the compiler for internal commands, it defaults to using gcc. This lets other ports fail e.g. GStreamer.

Attachments (1)

gis_no_gcc.diff (1.1 KB) - added by thijsvermeir@… 11 years ago.

Download all attachments as: .zip

Change History (7)

Changed 11 years ago by thijsvermeir@…

Attachment: gis_no_gcc.diff added

comment:1 Changed 11 years ago by jmroot (Joshua Root)

Port: gobject-introspection added

comment:2 Changed 11 years ago by neverpanic (Clemens Lang)

Owner: changed from macports-tickets@… to cal@…
Status: newassigned

comment:3 Changed 11 years ago by neverpanic (Clemens Lang)

Resolution: fixed
Status: assignedclosed

Thanks for the patch, commited in r100297.

I've previously fixed this in other ports by setting $CC; it might still be preferable to set $CC because the compiler used in a dependent port might not be the one used when building gobject-introspection.

comment:4 in reply to:  3 Changed 11 years ago by ryandesign (Ryan Carsten Schmidt)

Replying to cal@…:

Thanks for the patch, commited in r100297.

I've previously fixed this in other ports by setting $CC; it might still be preferable to set $CC because the compiler used in a dependent port might not be the one used when building gobject-introspection.

Yes, we still need to set CC at build time in every port using gobject-introspection. Consider a user who is on Snow Leopard with Xcode 4.2 (which does not provide /usr/bin/gcc-4.2) and he receives a binary of gobject-introspection as compiled by our Snow Leopard buildbot, which runs Xcode 3.2.6 and therefore defaults to /usr/bin/gcc-4.2.

The only thing committing this patch does is make it harder for us to realize when we need to set CC other ports. Previously, following the instructions at UsingTheRightCompiler would allow you to discover the problem on any system; now, it's only discoverable on the above rare configuration.

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

Cc: ryandesign@… added

Cc Me!

comment:6 Changed 11 years ago by skymoo (Adam Mercer)

Cc: ram@… added

Cc Me!

Note: See TracTickets for help on using tickets.