Opened 15 years ago
Closed 15 years ago
#22903 closed defect (fixed)
cyrus-sasl2 +universal: ambiguous option "-": must be -exact, -glob, -regexp, or --
Reported by: | ryandesign (Ryan Carsten Schmidt) | Owned by: | jmpalacios (Juan Manuel Palacios) |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 1.8.1 |
Keywords: | Cc: | landonf (Landon Fuller), jeremyhu (Jeremy Huddleston Sequoia), eborisch@… | |
Port: | cyrus-sasl2 |
Description
cyrus-sasl2 +universal fails with this message on Leopard with universal_archs set to i386 ppc:
---> Building cyrus-sasl2 DEBUG: Executing proc-pre-org.macports.build-build-0 Error: Target org.macports.build returned: ambiguous option "-": must be -exact, -glob, -regexp, or -- DEBUG: Backtrace: ambiguous option "-": must be -exact, -glob, -regexp, or -- while executing "$pre $targetname" Warning: the following items did not execute (for cyrus-sasl2): org.macports.activate org.macports.build org.macports.destroot org.macports.install Error: Status 1 encountered during processing.
Full log attached.
There are several other tickets for universal failures with cyrus-sasl2, but none I saw that mentioned this error message. Also, the port installs fine universal on Snow Leopard with universal_archs set to x86_64 i386.
Attachments (1)
Change History (6)
Changed 15 years ago by ryandesign (Ryan Carsten Schmidt)
Attachment: | cyrus-sasl2.txt added |
---|
comment:1 Changed 15 years ago by ryandesign (Ryan Carsten Schmidt)
Cc: | jeremyhu@… added |
---|
comment:2 Changed 15 years ago by eborisch@…
Cc: | eborisch@… added |
---|
comment:3 Changed 15 years ago by eborisch@…
This problem appears fixed in r61582, but on leopard, we need the opposite patch (to have libtool use '-arch x86_64' explicitly...)
pre-build { if {[variant_isset universal] && [file exists ${worksrcpath}-x86_64/libtool]} { reinplace -E "s|^CC=\\\"(\[^\\\"\]+)\\\"|CC=\"\\1 -arch x86_64\"|g" ${worksrcpath}-x86_64/libtool } if {[variant_isset universal] && [file exists ${worksrcpath}-i386/libtool]} { reinplace -E "s|^CC=\\\"(\[^\\\"\]+)\\\"|CC=\"\\1 -arch i386\"|g" ${worksrcpath}-i386/libtool } }
comment:4 Changed 15 years ago by ryandesign (Ryan Carsten Schmidt)
I don't understand why we're being convoluted special-casing specific architectures. Just loop over all the ${universal_archs_to_use}, no?
comment:5 Changed 15 years ago by ryandesign (Ryan Carsten Schmidt)
Resolution: | → fixed |
---|---|
Status: | new → closed |
Note: See
TracTickets for help on using
tickets.
Cc Me!