[MacPorts] #15570: Use ${universal.configure_*} in cairo and openssl
#15570: Use ${universal.configure_*} in cairo and openssl -----------------------------------+---------------------------------------- Reporter: david@bamsoftware.com | Owner: macports-tickets@lists.macosforge.org Type: defect | Status: new Priority: Normal | Milestone: Port Enhancements Component: ports | Version: 1.7.0 Keywords: | -----------------------------------+---------------------------------------- This is a patch to cause cairo and openssl to use {{{${universal.configure_cflags}}}} and {{{${universal.configure_ldflags}}}} (and {{{${universal.configure_cppflags}}} and {{{${universal.configure_args}}} in the case of cairo). This is necessary to get important flags like {{{-isysroot /Developer/SDKs/MacOSX10.4u.sdk}}} and {{{-mmacosx-version- min=10.4}}} considered. This is normally done by the default universal variant in Autoconf-using ports, but openssl doesn't use Autoconf and cairo declares its own universal variant. -- Ticket URL: <http://trac.macports.org/ticket/15570> MacPorts <http://www.macports.org/> Ports system for Mac OS
#15570: Use ${universal.configure_*} in cairo and openssl ------------------------------------+--------------------------------------- Reporter: david@bamsoftware.com | Owner: macports-tickets@lists.macosforge.org Type: defect | Status: new Priority: Normal | Milestone: Port Enhancements Component: ports | Version: 1.7.0 Resolution: | Keywords: ------------------------------------+--------------------------------------- Comment (by ryandesign@macports.org): cairo doesn't build universal at this time anyway, so I'll leave that until #15451 is resolved. -- Ticket URL: <http://trac.macports.org/ticket/15570#comment:1> MacPorts <http://www.macports.org/> Ports system for Mac OS
#15570: Use ${universal.configure_*} in cairo and openssl -----------------------------------+---------------------------------------- Reporter: david@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Port Enhancements Component: ports | Version: 1.7.0 Keywords: | -----------------------------------+---------------------------------------- Comment(by david@…): Replying to [ticket:15570 david@…]:
This is a patch to cause cairo and openssl to use {{{${universal.configure_cflags}}}} and {{{${universal.configure_ldflags}}}} (and {{{${universal.configure_cppflags}}} and {{{${universal.configure_args}}} in the case of cairo). This is necessary to get important flags like {{{-isysroot /Developer/SDKs/MacOSX10.4u.sdk}}} and {{{-mmacosx-version- min=10.4}}} considered. This is normally done by the default universal variant in Autoconf-using ports, but openssl doesn't use Autoconf and cairo declares its own universal variant.
I see that the cairo part of this patch was applied by jeremyhu in r45053 as a result of the discussion in #17558. Something like the openssl part was applied by jmr in r45087 to fix #16726, but that fix doesn't work for me. Just setting {{{-isysroot}}} leaves out {{{-mmacosx-version-min=10.4}}} and possibly other necessary universal flags. (My installation is configured with {{{universal_target=10.4}}}.) The build ends with {{{ ar r ../libssl.a s2_meth.o s2_srvr.o s2_clnt.o s2_lib.o s2_enc.o s2_pkt.o s3_meth.o s3_srvr.o s3_clnt.o s3_lib.o s3_enc.o s3_pkt.o s3_both.o s23_meth.o s23_srvr.o s23_clnt.o s23_lib.o s23_pkt.o t1_meth.o t1_srvr.o t1_clnt.o t1_lib.o t1_enc.o d1_meth.o d1_srvr.o d1_clnt.o d1_lib.o d1_pkt.o d1_both.o d1_enc.o ssl_lib.o ssl_err2.o ssl_cert.o ssl_sess.o ssl_ciph.o ssl_stat.o ssl_rsa.o ssl_asn1.o ssl_txt.o ssl_algs.o bio_ssl.o ssl_err.o kssl.o ar: creating archive ../libssl.a ranlib: file: ../libssl.a(kssl.o) has no symbols /usr/bin/ranlib ../libssl.a || echo Never mind. /usr/bin/ranlib: file: ../libssl.a(kssl.o) has no symbols ld: library not found for -ldylib1.10.5.o collect2: ld returned 1 exit status make[2]: *** [link_a.darwin] Error 1 make[1]: *** [do_darwin-shared] Error 2 make: *** [libcrypto.0.9.8.dylib] Error 2 }}} Notice it's looking for {{{-ldylib1.10.5.o}}}. Could something like the cairo change be done to openssl also? To see a diff that works for my purposes, do {{{ svn cat --username guest --password "" -r 11767 svn://svn.insecure.org/zenmap/install_scripts/macosx/macports-1.8.0-universal.diff }}} -- Ticket URL: <http://trac.macports.org/ticket/15570#comment:2> MacPorts <http://www.macports.org/> Ports system for Mac OS
#15570: Use ${universal.configure_*} in cairo and openssl -----------------------------------+---------------------------------------- Reporter: david@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Port Enhancements Component: ports | Version: 1.7.0 Keywords: | Port: openssl, cairo -----------------------------------+---------------------------------------- Changes (by ryandesign@…): * port: => openssl, cairo Comment: I think I would rather try to switch openssl, cairo and other ports to the merge-universal portgroup rather than continuing work on this reinvented wheel... -- Ticket URL: <http://trac.macports.org/ticket/15570#comment:3> MacPorts <http://www.macports.org/> Ports system for Mac OS
#15570: Use ${universal.configure_*} in cairo and openssl -----------------------------------+---------------------------------------- Reporter: david@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Port Enhancements Component: ports | Version: 1.7.0 Keywords: | Port: openssl, cairo -----------------------------------+---------------------------------------- Comment(by ryandesign@…): Replying to [comment:3 ryandesign@…]:
I think I would rather try to switch openssl, cairo and other ports to the merge-universal portgroup rather than continuing work on this reinvented wheel... merge-universal was renamed to muniversal (r45899), and cairo (r45970) and cairo-devel (r45971) now use it.
-- Ticket URL: <http://trac.macports.org/ticket/15570#comment:5> MacPorts <http://www.macports.org/> Ports system for Mac OS
#15570: Use ${universal.configure_*} in cairo and openssl -----------------------------------+---------------------------------------- Reporter: david@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Port Enhancements Component: ports | Version: 1.7.0 Keywords: | Port: openssl, cairo -----------------------------------+---------------------------------------- Comment(by david@…): Replying to [comment:5 ryandesign@…]:
Replying to [comment:3 ryandesign@…]:
I think I would rather try to switch openssl, cairo and other ports to the merge-universal portgroup rather than continuing work on this reinvented wheel... merge-universal was renamed to muniversal (r45899), and cairo (r45970) and cairo-devel (r45971) now use it.
Thanks. I tested a build of cairo and it works for me. -- Ticket URL: <http://trac.macports.org/ticket/15570#comment:6> MacPorts <http://www.macports.org/> Ports system for Mac OS
#15570: Use ${universal.configure_*} in cairo and openssl -----------------------------------+---------------------------------------- Reporter: david@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Port Enhancements Component: ports | Version: 1.7.0 Keywords: | Port: openssl, cairo -----------------------------------+---------------------------------------- Comment(by mcalhoun@…): Attached is a proposed update to openssl to use the muniversal PortGroup to build a universal openssl. -- Ticket URL: <http://trac.macports.org/ticket/15570#comment:8> MacPorts <http://www.macports.org/> Ports system for Mac OS
#15570: Use ${universal.configure_*} in cairo and openssl ------------------------------------+--------------------------------------- Reporter: david@… | Owner: macports-tickets@… Type: defect | Status: closed Priority: Normal | Milestone: Port Enhancements Component: ports | Version: 1.7.0 Resolution: fixed | Keywords: Port: openssl, cairo | ------------------------------------+--------------------------------------- Changes (by mcalhoun@…): * status: new => closed * resolution: => fixed Comment: cairo and openssl (as of r49121) both use muniversal PortGroup. -- Ticket URL: <http://trac.macports.org/ticket/15570#comment:9> MacPorts <http://www.macports.org/> Ports system for Mac OS
participants (1)
-
MacPorts