Opened 12 years ago

Closed 9 years ago

#33448 closed defect (fixed)

libvpx: universal build fails

Reported by: devernay (Frédéric Devernay) Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 2.0.4
Keywords: Cc:
Port: libvpx

Description (last modified by ryandesign (Ryan Carsten Schmidt))

(seen with a ppc/i386 build on Leopard, I don't know if other universal builds fail the same way).

libvpx/Portfile uses muniversal, but the package uses a custom configure script which doesn't recognize the --host=... argument. Consequently, merger_host should be set to "" for all archs. Portfile should have

    foreach my_arch ${configure.universal_archs} {
        set merger_host(${my_arch}) ""

        set merger_configure_args(${my_arch}) --target=$my_targets(${my_arch})-${os.platform}${os.major}-gcc
    }

instead of

    foreach my_arch ${configure.universal_archs} {
        set merger_configure_args(${my_arch}) --target=$my_targets(${my_arch})-${os.platform}${os.major}-gcc
    }

Change History (3)

comment:1 Changed 12 years ago by ryandesign (Ryan Carsten Schmidt)

Description: modified (diff)
Port: libvpx added

Remember to use WikiFormatting.

The universal variant work fine on Snow Leopard; I would not have committed it if I had not gotten it to work.

Could you please attach a main.log of the failure you experience?

comment:2 Changed 12 years ago by potmj (Michael Pot)

I think I also saw this problem on Leopard
10.5.8 +universal intel Xcode 3.1.3

Error: Target org.macports.configure returned: configure failure: shell command failed (see log for details)

I edited the Portfile adding the suggested line and libvpx now builds

Last edited 9 years ago by ryandesign (Ryan Carsten Schmidt) (previous) (diff)

comment:3 Changed 9 years ago by ryandesign (Ryan Carsten Schmidt)

Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.