Ticket #21648 (closed defect: fixed)
freetype +universal installs broken freetype.pc if zlib is not universal
| Reported by: | kurtjaeke@… | Owned by: | ryandesign@… |
|---|---|---|---|
| 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
comment:1 Changed 4 years ago by blb@…
- Owner changed from macports-tickets@… to ryandesign@…
- Port changed from freetype pkgconfig pango to freetype
comment:2 in reply to: ↑ description Changed 4 years ago by ryandesign@…
- Summary changed from freetype universal build confuses pkgconfig dependent software to freetype +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.

