[MacPorts] #15451: cairo +universal doesn't build since 1.6.4
#15451: cairo +universal doesn't build since 1.6.4 -------------------------------------+-------------------------------------- Reporter: ryandesign@macports.org | Owner: ryandesign@macports.org Type: defect | Status: new Priority: Normal | Milestone: Port Bugs Component: ports | Version: 1.6.0 Keywords: | -------------------------------------+-------------------------------------- cairo +universal used to work in 1.4.14 but with 1.6.4 it doesn't build. -- Ticket URL: <http://trac.macports.org/ticket/15451> MacPorts <http://www.macports.org/> Ports system for Mac OS
#15451: cairo +universal doesn't build since 1.6.4 --------------------------------------+------------------------------------- Reporter: ryandesign@macports.org | Owner: ryandesign@macports.org Type: defect | Status: new Priority: Normal | Milestone: Port Bugs Component: ports | Version: 1.6.0 Resolution: | Keywords: --------------------------------------+------------------------------------- Comment (by ryandesign@macports.org): I [http://lists.cairographics.org/archives/cairo/2008-May/014073.html asked the cairo mailing list] about this. -- Ticket URL: <http://trac.macports.org/ticket/15451#comment:1> MacPorts <http://www.macports.org/> Ports system for Mac OS
#15451: cairo +universal doesn't build since 1.6.4 --------------------------------------+------------------------------------- Reporter: ryandesign@macports.org | Owner: ryandesign@macports.org Type: defect | Status: new Priority: Normal | Milestone: Port Bugs Component: ports | Version: 1.6.0 Resolution: | Keywords: --------------------------------------+------------------------------------- Comment (by hvdwolf@gmail.com): Hi Ryan, When I manually build Cairo, I set CFLAGS, CXXFLAGS, LDFLAGS and PKG_CONFIG_PATH, the way you do (more or less) in the Portfile. I also need to set the .configure argument CC="gcc -arch ${arch}". Then it works manually. However, when I patch the Portfile of cairo (see below), it still doesn't work (or is that my clumsy patch?). Harry configure { foreach arch ${my_universal_archs} { set my_arch_flag "-arch ${arch}" set my_cflags "${configure.cflags} -isysroot ${sysroot} ${my_arch_flag}" set my_ldflags "${configure.ldflags} ${my_arch_flag}" set extra_configure.args "CC=\"gcc -arch ${arch}\"" system "cd ${workpath}/${arch} && CFLAGS=\"${my_cflags}\" CXXFLAGS=\"${my_cflags}\" LDFLAGS=\"${my_ldflags}\" ${configure.cmd} ${configure.pre_args} ${configure.args} ${extra_configure.args}" } -- Ticket URL: <http://trac.macports.org/ticket/15451#comment:2> MacPorts <http://www.macports.org/> Ports system for Mac OS
#15451: cairo +universal doesn't build since 1.6.4 --------------------------------------+------------------------------------- Reporter: ryandesign@macports.org | Owner: ryandesign@macports.org Type: defect | Status: new Priority: Normal | Milestone: Port Bugs Component: ports | Version: 1.6.0 Resolution: | Keywords: --------------------------------------+------------------------------------- Comment (by hvdwolf@gmail.com): Next to that it's better to use env when applying FLAG settings on the command line like system "cd ${workpath}/${arch} && env CFLAGS=\"${my_cflags}\" CXXFLAGS=\"${my_cflags}\" LDFLAGS=\"${my_ldflags}\" ${configure.cmd} ${configure.pre_args} ${configure.args} ${extra_configure.args}" It still doesn't work though. However, I checked the config log and the compilation steps mention: <snip> work/i386/INSTALL: PKG_CONFIG_PATH=/opt/cairo/lib/pkgconfig work/i386/INSTALL: export PKG_CONFIG_PATH LD_LIBRARY_PATH </snip> <snip> work/ppc/INSTALL: PKG_CONFIG_PATH=/opt/cairo/lib/pkgconfig work/ppc/INSTALL: export PKG_CONFIG_PATH LD_LIBRARY_PATH </snip> Somehow the pkgconfig stuff doesn't work correctly. Did you check (and find) this too? This might very well be the problem for not finding FcFini -- Ticket URL: <http://trac.macports.org/ticket/15451#comment:3> MacPorts <http://www.macports.org/> Ports system for Mac OS
#15451: cairo +universal doesn't build since 1.6.4 --------------------------------------+------------------------------------- Reporter: ryandesign@macports.org | Owner: ryandesign@macports.org Type: defect | Status: new Priority: Normal | Milestone: Port Bugs Component: ports | Version: 1.6.0 Resolution: | Keywords: --------------------------------------+------------------------------------- Comment (by ryandesign@macports.org): Has presumed duplicate #16057. -- Ticket URL: <http://trac.macports.org/ticket/15451#comment:4> MacPorts <http://www.macports.org/> Ports system for Mac OS
#15451: cairo +universal doesn't build since 1.6.4 --------------------------------------+------------------------------------- Reporter: ryandesign@macports.org | Owner: ryandesign@macports.org Type: defect | Status: new Priority: Normal | Milestone: Port Bugs Component: ports | Version: 1.6.0 Resolution: | Keywords: --------------------------------------+------------------------------------- Comment (by hvdwolf@gmail.com): I've attached a patch for the Portfile that should enable universal compilation. It works on my Intel system -- Ticket URL: <http://trac.macports.org/ticket/15451#comment:5> MacPorts <http://www.macports.org/> Ports system for Mac OS
#15451: cairo +universal doesn't build since 1.6.4 --------------------------------------+------------------------------------- Reporter: ryandesign@macports.org | Owner: ryandesign@macports.org Type: defect | Status: new Priority: Normal | Milestone: Port Bugs Component: ports | Version: 1.6.0 Resolution: | Keywords: --------------------------------------+------------------------------------- Comment (by ryandesign@macports.org): Harry, your patch does not change the error on my system (Mac OS X 10.4.11 Intel). Still can't find FcFini. -- Ticket URL: <http://trac.macports.org/ticket/15451#comment:6> MacPorts <http://www.macports.org/> Ports system for Mac OS
#15451: cairo +universal doesn't build since 1.6.4 --------------------------------------+------------------------------------- Reporter: ryandesign@macports.org | Owner: ryandesign@macports.org Type: defect | Status: new Priority: Normal | Milestone: Port Bugs Component: ports | Version: 1.6.0 Resolution: | Keywords: --------------------------------------+------------------------------------- Comment (by hvdwolf@gmail.com): I'm affraid you are right. I think that I somewhere aborted the run of the dirty hack. I didn't think further of it but I suppose the softlink still existed making my "new" patch also function. After checking (and checking again) I "discovered" the softlink, removed it and now my patched cairo doesn't build as universal anymore either. -- Ticket URL: <http://trac.macports.org/ticket/15451#comment:7> MacPorts <http://www.macports.org/> Ports system for Mac OS
#15451: cairo +universal doesn't build since 1.6.4 --------------------------------------+------------------------------------- Reporter: ryandesign@macports.org | Owner: ryandesign@macports.org Type: defect | Status: closed Priority: Normal | Milestone: Port Bugs Component: ports | Version: 1.6.0 Resolution: fixed | Keywords: --------------------------------------+------------------------------------- Changes (by ryandesign@macports.org): * status: new => closed * resolution: => fixed Comment: The cairo developers say there is a bug in the configure script: The absence of FcFini was never supposed to be a fatal error. This [http://lists.cairographics.org/archives/cairo/2008-July/014615.html will be fixed] in cairo 1.6.6 and 1.7.2. I've applied a patch to our cairo portfile in r39033 and now we can build universal. There will be further changes to the portfile to simplify the universal variant, but there are other tickets for that so I'll close this one. -- Ticket URL: <http://trac.macports.org/ticket/15451#comment:8> MacPorts <http://www.macports.org/> Ports system for Mac OS
#15451: cairo +universal doesn't build since 1.6.4 --------------------------------------+------------------------------------- Reporter: ryandesign@macports.org | Owner: ryandesign@macports.org Type: defect | Status: closed Priority: Normal | Milestone: Port Bugs Component: ports | Version: 1.6.0 Resolution: fixed | Keywords: --------------------------------------+------------------------------------- Changes (by ryandesign@macports.org): * cc: hvdwolf@gmail.com (added) -- Ticket URL: <http://trac.macports.org/ticket/15451#comment:9> MacPorts <http://www.macports.org/> Ports system for Mac OS
participants (1)
-
MacPorts