[MacPorts] #51081: pango @1.40.0 - build failing
#51081: pango @1.40.0 - build failing ---------------------------+-------------------------------- Reporter: russ.bubley@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.4 Keywords: | Port: ---------------------------+-------------------------------- Pango build is failing (for me) with the following error: {{{ :info:build In file included from pangocairo-coretextfont.c:32: :info:build ./pangocairo-coretext.h:28:10: fatal error: 'cairo-quartz.h' file not found }}} The compile step failing is {{{ /usr/bin/clang -arch x86_64 -DHAVE_CONFIG_H -I. -I.. -DG_LOG_DOMAIN=\"Pango\" -DPANGO_ENABLE_BACKEND -DPANGO_ENABLE_ENGINE -DSYSCONFDIR=\"/Volumes/MacHD/opt/local/etc\" -DLIBDIR=\"/Volumes/MacHD/opt/local/lib\" -I.. -I.. -DG_DISABLE_CAST_CHECKS -D_REENTRANT -I/Volumes/MacHD/opt/local/include/glib-2.0 -I/Volumes/MacHD/opt/local/lib/glib-2.0/include -I/Volumes/MacHD/opt/local/include -I/opt/X11/include -I/opt/X11/include/freetype2 -I/Volumes/MacHD/opt/local/include/freetype2 -I/Volumes/MacHD/opt/local/include -I/Volumes/MacHD/opt/local/include/libpng16 -I/opt/X11/include -I/opt/X11/include/cairo -I/Volumes/MacHD/opt/local/include/pixman-1 -I/opt/X11/include -I/opt/X11/include/freetype2 -I/Volumes/MacHD/opt/local/include/freetype2 -I/Volumes/MacHD/opt/local/include -I/Volumes/MacHD/opt/local/include/libpng16 -I/opt/X11/include -I/Volumes/MacHD/opt/local/include/harfbuzz -I/Volumes/MacHD/opt/local/include/glib-2.0 -I/Volumes/MacHD/opt/local/lib/glib-2.0/include -I/Volumes/MacHD/opt/local/include -I/Volumes/MacHD/opt/local/include/freetype2 -I/Volumes/MacHD/opt/local/include -I/Volumes/MacHD/opt/local/include/libpng16 -I/opt/X11/include -I/opt/X11/include/freetype2 -I/Volumes/MacHD/opt/local/include/freetype2 -I/Volumes/MacHD/opt/local/include -I/Volumes/MacHD/opt/local/include/libpng16 -I/Volumes/MacHD/opt/local/include -pipe -Os -arch x86_64 -Wall -MT pangocoretext-shape.lo -MD -MP -MF .deps/pangocoretext-shape.Tpo -c pangocoretext-shape.c -o pangocoretext-shape.o >/dev/null 2>&1 }}} cairo-quartz.h does exist on my system as I have cairo @1.14.6_0+quartz+x11 installed, but this puts the file into /opt/local/include/cairo/cairo-quartz.h, which is not on the list of paths included on the compile command. -- Ticket URL: <https://trac.macports.org/ticket/51081> MacPorts <https://www.macports.org/> Ports system for OS X
#51081: pango @1.40.0 - build failing ----------------------------+-------------------------- Reporter: russ.bubley@… | Owner: ryandesign@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.4 Resolution: | Keywords: Port: pango | ----------------------------+-------------------------- Changes (by ryandesign@…): * cc: ryandesign@… (removed) * owner: macports-tickets@… => ryandesign@… * port: => pango Comment: Please attach the main.log file. I see occurrences of "/opt/X11" in the failing compile step, which is not supposed to be there; the main.log file might explain why that happened. -- Ticket URL: <https://trac.macports.org/ticket/51081#comment:1> MacPorts <https://www.macports.org/> Ports system for OS X
#51081: pango @1.40.0 - build failing ----------------------------+-------------------------- Reporter: russ.bubley@… | Owner: ryandesign@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.4 Resolution: | Keywords: Port: pango | ----------------------------+-------------------------- Comment (by ryandesign@…): Hmm, I don't see any reason why /opt/X11 starts appearing in the build phase of that log. There's no mention of that location in the configure phase. The pango port does specify that X11 includes and libraries should be found in ${prefix} so it shouldn't be looking in /opt/X11. Could you attach the config.log as well? (It's somewhere beneath the work directory, whose location is printed by the command `port work pango`) -- Ticket URL: <https://trac.macports.org/ticket/51081#comment:2> MacPorts <https://www.macports.org/> Ports system for OS X
#51081: pango @1.40.0 - build failing ----------------------------+-------------------------- Reporter: russ.bubley@… | Owner: ryandesign@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.4 Resolution: | Keywords: Port: pango | ----------------------------+-------------------------- Comment (by ryandesign@…): Ok, so /opt/X11 first appears in the config.log at the point where it is `checking for FcWeightFromOpenType`. What's the output of: {{{ /Volumes/MacHD/opt/local/bin/pkg-config fontconfig --cflags --libs }}} Also, I just updated pango to 1.40.1. It includes a change to how `pkg- config` is used. If you wait 30 minutes and then run `sudo port selfupdate` to get that update, does you still see the problem with pango 1.40.1? -- Ticket URL: <https://trac.macports.org/ticket/51081#comment:3> MacPorts <https://www.macports.org/> Ports system for OS X
#51081: pango @1.40.0 - build failing ----------------------------+-------------------------- Reporter: russ.bubley@… | Owner: ryandesign@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.4 Resolution: | Keywords: Port: pango | ----------------------------+-------------------------- Comment (by russ.bubley@…): The output is {{{ $ /Volumes/MacHD/opt/local/bin/pkg-config fontconfig --cflags --libs -I/opt/X11/include -I/opt/X11/include/freetype2 -I/Volumes/MacHD/opt/local/include/freetype2 -I/Volumes/MacHD/opt/local/include -I/Volumes/MacHD/opt/local/include/libpng16 -L/opt/X11/lib -L/Volumes/MacHD/opt/local/lib -lfontconfig -lfreetype }}} And going one step further, I've checked /opt/local/lib/pkgconfig/fontconfig.pc, and this file contains the line "prefix=/opt/X11" Finally {{{ $ port provides /opt/local/lib/pkgconfig/fontconfig.pc /Volumes/MacHD/opt/local/lib/pkgconfig/fontconfig.pc is provided by: fontconfig }}} I uninstalled/reinstalled fontconfig, and it now points to the right location (prefix=/Volumes/MacHD/opt/local) – no idea how it came to be pointing at a different location previously. But that too turned out not to be enough. I uninstalled and reinstalled cairo, and finally pango compiles cleanly. So, it seems that there was some oddity with my system that is now resolved, but in any case hopefully this ticket will assist anyone else encountering a similar issue in the future. ---- In summary, what fixed it for me: {{{ port -f uninstall fontconfig; port install fontconfig port -f uninstall cairo; port install cairo }}} -- Ticket URL: <https://trac.macports.org/ticket/51081#comment:4> MacPorts <https://www.macports.org/> Ports system for OS X
participants (1)
-
MacPorts