#65650 closed enhancement (fixed)

cargo-c: Add universal variant

Reported by: potterpg Owned by: MarcusCalhoun-Lopez (Marcus Calhoun-Lopez)
Priority: Normal Milestone:
Component: ports Version:
Keywords: Cc:
Port: cargo-c

Description

I am trying to rebuild a bunch of static libs, one of which is libheif, which requires rav1e which requires cargo-c, which cannot be built as a universal apparently?

OS12.5, Mac M1, xcode 13.4.1

+universal.darwin_21.arm64-x86_64

Error: Cannot install rav1e for the archs 'arm64 x86_64' because
Error: its dependency cargo-c does not build for the required archs by default
Error: and does not have a universal variant.

Can this be done?

Change History (4)

comment:1 Changed 21 months ago by jmroot (Joshua Root)

Owner: set to MarcusCalhoun-Lopez
Status: newassigned
Summary: Can this be built as a universal build arm64 and x86_64?cargo-c: Can this be built as a universal build arm64 and x86_64?

comment:2 Changed 21 months ago by ryandesign (Ryan Carsten Schmidt)

Summary: cargo-c: Can this be built as a universal build arm64 and x86_64?cargo-c: Add universal variant
Type: defectenhancement

The cargo-c Portfile says:

# mimic Rust dependency
supported_archs             x86_64 arm64
universal_variant           no

However the rust Portfile doesn't contain anything like that and does contain references to the muniversal portgroup.

comment:3 Changed 20 months ago by potterpg

So how does one correct the profile to actually mimic the rust profile?

comment:4 Changed 16 months ago by MarcusCalhoun-Lopez (Marcus Calhoun-Lopez)

Resolution: fixed
Status: assignedclosed

In a7d24062d6ae449702fa55e81dbfaf8e40dce58e/macports-ports (master):

cargo-c: use rust PG features including universal

No revbump since the installed files do not change.
Fixes #65650

Note: See TracTickets for help on using tickets.