[MacPorts] #20372: glib2 won't build correctly on PPC machines
MacPorts
noreply at macports.org
Tue Sep 15 17:05:25 PDT 2009
#20372: glib2 won't build correctly on PPC machines
---------------------------+------------------------------------------------
Reporter: mta@… | Owner: ryandesign@…
Type: defect | Status: assigned
Priority: Normal | Milestone:
Component: ports | Version: 1.8.0
Keywords: | Port: glib2
---------------------------+------------------------------------------------
Comment(by edmond@…):
I just noticed this problem today. To work-around it (this is not a fix),
I did the following:
% sudo port edit glib2
Then, I forced the endian-order to what I wanted, in my case big-endian,
by locating the following code and commenting it out, and then placing the
set for the cross_archs, host_archs and big_endian to what I wanted. The
code to locate is:
# Find architectures which will not run on build platform.
if { ${os.arch}=="i386" || ${os.arch}=="x86_64"} {
set cross_archs "ppc ppc64"
set host_archs "ppc ppc64"
set big_endian "yes"
} else {
set cross_archs "i386 x86_64"
set host_archs "i386 x86_64"
set big_endian "no"
}
I commented out the above code (using #'s at the start of each line) and
then selected what was right for me, big-endian, which was:
set cross_archs "ppc ppc64"
set host_archs "ppc ppc64"
set big_endian "yes"
In case anyone needs a work-around - as I did.
--
Ticket URL: <http://trac.macports.org/ticket/20372#comment:6>
MacPorts <http://www.macports.org/>
Ports system for Mac OS
More information about the macports-tickets
mailing list