[MacPorts] #15570: Use ${universal.configure_*} in cairo and openssl

MacPorts noreply at macports.org
Tue Jan 20 15:21:42 PST 2009


#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


More information about the macports-tickets mailing list