Opened 15 years ago

Closed 15 years ago

#21233 closed defect (invalid)

fontconfig-2.7.2 Configure error (depends on libxml2)

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

Description

fontconfig requires libxml2, but its portfile lacks dependency to that.

$ sudo port install fontconfig
--->  Computing dependencies for fontconfig
--->  Configuring fontconfig
Error: Target org.macports.configure returned: configure failure: shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_graphics_fontconfig/work/fontconfig-2.7.2" && ./configure --prefix=/opt/local --with-docdir=/opt/local/share/doc/fontconfig-2.7.2 --with-add-fonts=/usr/X11R6/lib/X11/fonts,/Library/Fonts,/Network/Library/Fonts,/System/Library/Fonts,/opt/local/share/fonts " returned error 1
Command output: checking for rand... yes

brahbrahbrah...

checking expat.h usability... yes
checking expat.h presence... yes
checking for expat.h... yes
checking for XML_SetDoctypeDeclHandler... no
configure: WARNING: Cannot find usable expat library. Trying to use libxml2 as fallback.
checking for pkg-config... /opt/local/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for LIBXML2... configure: error: Package requirements (libxml-2.0 >= 2.6) were not met:

No package 'libxml-2.0' found

Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.

Alternatively, you may set the environment variables LIBXML2_CFLAGS
and LIBXML2_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.


Error: Status 1 encountered during processing.

Change History (7)

comment:1 Changed 15 years ago by mf2k (Frank Schima)

Keywords: fontconfig libxml2 removed
Owner: changed from macports-tickets@… to ryandesign@…

comment:2 Changed 15 years ago by tobypeterson

Looks like the problem here is actually that the expat library isn't "usable" - my guess would be that expat is built 32-bit and user has not followed the Migration instructions. AFAIK fontconfig does not require both expat and libxml2 - either will suffice, and we are choosing to have it use expat.

comment:3 Changed 15 years ago by tobypeterson

Owner: changed from ryandesign@… to ryandesign@…

comment:4 Changed 15 years ago by tobypeterson

m4k0t0y, can you provide system configuration info? (Mac OS X version, Xcode version, CPU type...)

Also, what is the output of lipo -info /opt/local/lib/libexpat.dylib ?

comment:5 in reply to:  description Changed 15 years ago by imgroxx@…

Replying to m4k0t0y@…:

fontconfig requires libxml2, but its portfile lacks dependency to that.

Similar problem here, except that 2.7.3 doesn't give an error during config, only build.

comment:6 in reply to:  2 Changed 15 years ago by m4k0t0y@…

Replying to toby@…:

Looks like the problem here is actually that the expat library isn't "usable" - my guess would be that expat is built 32-bit and user has not followed the Migration instructions. AFAIK fontconfig does not require both expat and libxml2 - either will suffice, and we are choosing to have it use expat.

Eww, I didn't follow that. What I did was just 'sudo port upgrade --enforce-variants outdated' (and I didn't have this sort of problem for the other ports). I cannot reproduce the problem anymore. Sorry for the confusion.

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

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