Opened 15 years ago

Closed 15 years ago

#21648 closed defect (fixed)

freetype +universal installs broken freetype.pc if zlib is not universal

Reported by: kurtjaeke@… Owned by: ryandesign (Ryan Carsten Schmidt)
Priority: Normal Milestone:
Component: ports Version: 1.8.0
Keywords: Cc:
Port: freetype

Description

Having installed freetype +universal on 10.6, trying to upgrade pango fails with

Error: Target org.macports.extract returned: Libs.private field occurs twice in '/opt/local/lib/pkgconfig/freetype2.pc'

Uninstalling the universal variant redeems the issue, but this breaks other ports, i.e., wine-devel, which depends on 32bit binaries.

Please, finally fix the 64bit transition mess in a reasonable fashion!

Change History (3)

comment:1 Changed 15 years ago by blb@…

Owner: changed from macports-tickets@… to ryandesign@…
Port: pkgconfig pango removed

comment:2 in reply to:  description Changed 15 years ago by ryandesign (Ryan Carsten Schmidt)

Summary: freetype universal build confuses pkgconfig dependent softwarefreetype +universal installs broken freetype.pc if zlib is not universal

Replying to kurtjaeke@…:

Please, finally fix the 64bit transition mess in a reasonable fashion!

We are only able to fix problems we are aware of, so thank you for reporting this issue to me.

Error: Target org.macports.extract returned: Libs.private field occurs twice in '/opt/local/lib/pkgconfig/freetype2.pc'

I am able to reproduce this problem on my MacBook Pro running 10.6.1 if I build zlib non-universal and then build freetype universal for x86_64 i386. So this is a similar error to #20727 for fontconfig, and would be ultimately resolved by implementing #20728.

Reinstall zlib with the universal variant, then rebuild freetype.

sudo port upgrade --enforce-variants zlib +universal
sudo port -n upgrade --force freetype +universal

Remember that for any port you want to install universal, any existing dependencies that are already installed must first be rebuild as universal.

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

Resolution: fixed
Status: newclosed

I added checks to freetype in r58379 to ensure dependencies have the right architectures.

Note: See TracTickets for help on using tickets.