[MacPorts] #16744: Allow universal builds in clucene, cyrus-sasl2, gpgme, flac, pth
#16744: Allow universal builds in clucene, cyrus-sasl2, gpgme, flac, pth ----------------------------------+----------------------------------------- Reporter: illogical1@gmail.com | Owner: macports-tickets@lists.macosforge.org Type: defect | Status: new Priority: Normal | Milestone: Port Bugs Component: ports | Version: 1.6.0 Keywords: universal build | Port: clucene cyrus-sasl2 gpgme flac pth ----------------------------------+----------------------------------------- The attached diff allow universal with the ports listed above -- Ticket URL: <http://trac.macports.org/ticket/16744> MacPorts <http://www.macports.org/> Ports system for Mac OS
#16744: Allow universal builds in clucene, cyrus-sasl2, gpgme, flac, pth -------------------------------------------------+-------------------------- Reporter: illogical1@gmail.com | Owner: macports-tickets@lists.macosforge.org Type: defect | Status: new Priority: Normal | Milestone: Port Bugs Component: ports | Version: 1.6.0 Resolution: | Keywords: universal build Port: clucene cyrus-sasl2 gpgme flac pth | -------------------------------------------------+-------------------------- Comment(by illogical1@gmail.com): cdparanoia portfile probably doesn't need the configure.xxx bits -- Ticket URL: <http://trac.macports.org/ticket/16744#comment:1> MacPorts <http://www.macports.org/> Ports system for Mac OS
#16744: Allow universal builds in clucene, cyrus-sasl2, gpgme, flac, pth -------------------------------------------------+-------------------------- Reporter: illogical1@gmail.com | Owner: macports-tickets@lists.macosforge.org Type: defect | Status: new Priority: Normal | Milestone: Port Bugs Component: ports | Version: 1.6.0 Resolution: | Keywords: universal build Port: clucene cyrus-sasl2 gpgme flac pth | -------------------------------------------------+-------------------------- Comment(by blb@macports.org): FYI, a slightly different method for handling cyrus-sasl2 is in #14132. -- Ticket URL: <http://trac.macports.org/ticket/16744#comment:2> MacPorts <http://www.macports.org/> Ports system for Mac OS
#16744: Allow universal builds in clucene, cyrus-sasl2, gpgme, flac, pth -------------------------------------------------+-------------------------- Reporter: illogical1@gmail.com | Owner: macports-tickets@lists.macosforge.org Type: defect | Status: new Priority: Normal | Milestone: Port Bugs Component: ports | Version: 1.6.0 Resolution: | Keywords: universal build Port: clucene cyrus-sasl2 gpgme flac pth | -------------------------------------------------+-------------------------- Comment(by illogic-al@macports.org): I've been checking these and, for the ones I've checked so far, they are also valid on 10.5 when compiling with gcc 4.2 against the 10.4 SDK. When I made these patches I was compiling on 10.4 with gcc 4.2 against the 10.4 SDK. I think it's safe to say that regardless of the darwin platform issues exist. I intend to fix the ports which have no/openmantainers and poke those necessary for the others. cyrus-sasl and boost not included. -- Ticket URL: <http://trac.macports.org/ticket/16744#comment:3> MacPorts <http://www.macports.org/> Ports system for Mac OS
#16744: Allow universal builds in clucene, cyrus-sasl2, gpgme, flac, pth -------------------------------------------------+-------------------------- Reporter: illogical1@gmail.com | Owner: macports-tickets@lists.macosforge.org Type: defect | Status: new Priority: Normal | Milestone: Port Bugs Component: ports | Version: 1.6.0 Resolution: | Keywords: universal build Port: clucene cyrus-sasl2 gpgme flac pth | -------------------------------------------------+-------------------------- Comment(by illogic-al@macports.org): Sample error when attempting to compile universal gpgpme. ---> Building gpgme with target all Error: Target org.macports.build returned: shell command " cd "/opt/local/var/macpor ts/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_gpgm e/work/gpgme-1.1.6" && make all " returned error 2 Command output: _print_data in t-encrypt.o _print_data in t-encrypt.o _main in t-encrypt.o _main in t-encrypt.o _main in t-encrypt.o _main in t-encrypt.o _main in t-encrypt.o _main in t-encrypt.o "_gpgme_data_release", referenced from: _main in t-encrypt.o _main in t-encrypt.o "_gpgme_get_key", referenced from: _main in t-encrypt.o _main in t-encrypt.o "_gpgme_key_unref", referenced from: _main in t-encrypt.o _main in t-encrypt.o "_gpgme_data_seek", referenced from: _print_data in t-encrypt.o "_gpgme_op_encrypt_result", referenced from: _main in t-encrypt.o "_gpgme_data_read", referenced from: _print_data in t-encrypt.o ld: symbol(s) not found for architecture ppc collect2: ld returned 1 exit status lipo: can't open input file: /var/tmp//ccegsHWW.out (No such file or directory) make[3]: *** [t-encrypt] Error 1 make[2]: *** [all-recursive] Error 1 make[1]: *** [all-recursive] Error 1 make: *** [all] Error 2 -- Ticket URL: <http://trac.macports.org/ticket/16744#comment:4> MacPorts <http://www.macports.org/> Ports system for Mac OS
#16744: Allow universal builds in clucene, cyrus-sasl2, gpgme, flac, pth, boost and cdparanoia ------------------------------------------------------------------+--------- Reporter: illogical1@gmail.com | Owner: macports-tickets@lists.macosforge.org Type: defect | Status: new Priority: Normal | Milestone: Port Bugs Component: ports | Version: 1.6.0 Resolution: | Keywords: universal build Port: clucene cyrus-sasl2 gpgme flac pth boost cdparanoia | ------------------------------------------------------------------+--------- Changes (by illogic-al@macports.org): * port: clucene cyrus-sasl2 gpgme flac pth => clucene cyrus-sasl2 gpgme flac pth boost cdparanoia Old description:
The attached diff allow universal with the ports listed above
New description: The attached diffs allow universal compilation with the ports listed above -- Comment: And another one for google. This time the pth port. ---> Building pth with target all Error: Target org.macports.build returned: shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_pth/work/pth-2.0.7" && make all " returned error 2Command output: _main in test_std.o _main in test_std.o "_pth_attr_new", referenced from: _main in test_std.o "_pth_join", referenced from: _main in test_std.o _main in test_std.o _t2_func in test_std.o "_pth_key_getdata", referenced from: _pth_readline_ev in test_common.o "_pth_init", referenced from: _main in test_std.o _main in test_std.o "_pth_spawn", referenced from: _main in test_std.o _main in test_std.o _t2_func in test_std.o "_pth_read_ev", referenced from: _pth_readline_ev in test_common.o "_pth_yield", referenced from: _t1_func in test_std.o _t1_func in test_std.o "_pth_version", referenced from: _main in test_std.o "_pth_attr_destroy", referenced from: _main in test_std.old: symbol(s) not found for architecture ppccollect2: ld returned 1 exit status lipo: can't open input file: /var/tmp//ccQlxuku.out (No such file or directory)make: *** [test_std] Error 1 Error: The following dependencies failed to build: pth -- Ticket URL: <http://trac.macports.org/ticket/16744#comment:5> MacPorts <http://www.macports.org/> Ports system for Mac OS
#16744: Allow universal builds in clucene, cyrus-sasl2, gpgme, flac, pth, boost and cdparanoia ----------------------------------+----------------------------------------- Reporter: illogical1@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Port Bugs Component: ports | Version: 1.6.0 Keywords: universal build | Port: clucene cyrus-sasl2 gpgme flac pth boost cdparanoia ----------------------------------+----------------------------------------- Comment(by illogic-al@…): Updated for new cyrus-sasl2 {{{ Index: ../security/cyrus-sasl2/Portfile =================================================================== --- ../security/cyrus-sasl2/Portfile (revision 49527) +++ ../security/cyrus-sasl2/Portfile (working copy) @@ -4,6 +4,7 @@ name cyrus-sasl2 version 2.1.22 +revision 1 categories security net maintainers jmpp landonf description SASL is an authentication library. @@ -44,8 +45,6 @@ use_parallel_build yes -universal_variant no - # This is a start towards universal... lib/Makefile.am and sasldb/Makefile.am need to be updated to not do blind ar-fu #depends_build \ # port:autoconf \ @@ -100,6 +99,16 @@ variant static description "Build static library" { configure.args-append --enable-static } +variant universal { + post-configure { + reinplace "s|^\\(archive_cmds\=\"\\\\\$CC\\)|\\1 \ + -Wl,-syslibroot,$sysroot ${configure.universal_ldflags} \ + -mmacosx-version-min=10.4 |g" ${worksrcpath}/libtool + # Only if compiling using 10.4 SDK on 10.5. Need to find proper fix + reinplace "s|#include <gssapi.h>|#include <gssapi/gssapi.h>|" ${worksrcpath}/plugins/gssapi.c + } +} + livecheck.check regex livecheck.url http://ftp.andrew.cmu.edu/pub/cyrus-mail/ livecheck.regex {cyrus-sasl-(\d+(?:\.\d+)*)} }}} -- Ticket URL: <http://trac.macports.org/ticket/16744#comment:7> MacPorts <http://www.macports.org/> Ports system for Mac OS
#16744: Allow universal builds in clucene, cyrus-sasl2, gpgme, flac, pth, boost and cdparanoia ----------------------------------+----------------------------------------- Reporter: illogical1@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Port Bugs Component: ports | Version: 1.6.0 Keywords: universal build | Port: clucene cyrus-sasl2 gpgme flac pth boost cdparanoia ----------------------------------+----------------------------------------- Comment(by illogic-al@…): Two things a) the binaries generated from that patch don't work (ppc portion missing libs) and b) using the portgroup are so much easier. {{{ Index: Source/macports-trunk/dports/security/cyrus-sasl2/Portfile =================================================================== --- Source/macports-trunk/dports/security/cyrus-sasl2/Portfile (revision 49527) +++ Source/macports-trunk/dports/security/cyrus-sasl2/Portfile (working copy) @@ -1,9 +1,11 @@ # $Id$ PortSystem 1.0 +PortGroup muniversal 1.0 name cyrus-sasl2 version 2.1.22 +revision 1 categories security net maintainers jmpp landonf description SASL is an authentication library. @@ -44,8 +46,6 @@ use_parallel_build yes -universal_variant no - # This is a start towards universal... lib/Makefile.am and sasldb/Makefile.am need to be updated to not do blind ar-fu #depends_build \ # port:autoconf \ }}} -- Ticket URL: <http://trac.macports.org/ticket/16744#comment:8> MacPorts <http://www.macports.org/> Ports system for Mac OS
#16744: Allow universal builds in clucene, cyrus-sasl2, gpgme, flac, pth, boost and cdparanoia ------------------------------------------------------------------+--------- Reporter: illogical1@… | Owner: macports-tickets@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 1.6.0 Resolution: fixed | Keywords: universal build Port: clucene cyrus-sasl2 gpgme flac pth boost cdparanoia | ------------------------------------------------------------------+--------- Changes (by jmr@…): * status: new => closed * resolution: => fixed Comment: AFAICT these all build universal now. -- Ticket URL: <https://trac.macports.org/ticket/16744#comment:10> MacPorts <http://www.macports.org/> Ports system for Mac OS
participants (1)
-
MacPorts