Bug 171943

Summary: Build failures due to missing glproto.pc
Product: Ports & Packages Reporter: andrnils
Component: Individual Port(s)Assignee: freebsd-ports-bugs (Nobody) <ports-bugs>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: Latest   
Hardware: Any   
OS: Any   

Description andrnils 2012-09-25 07:40:11 UTC
I've been trying out poudriere to build packages recently, and whenever I have WITH_NEW_XORG=YES builds fail.

What happens is that most packages fails in build stage ( bad, should fail in configure ) due to reported missing cairo.h. This is due to configure not finding the CFLAGS needed for cairo, which in turn is caused by pkgconf failing a call like pkgconf --cflags cairo which reports missing glproto.pc ( however a call like pkgconf --libs cairo does succeed).

Fix: 

--- Mk/bsd.xorg.mk.orig
+++ Mk/bsd.xorg.mk
@@ -166,7 +166,7 @@
 fontenc_LIB_PC_DEPENDS=                ${LOCALBASE}/libdata/pkgconfig/fontenc.pc:${PORTSDIR}/x11-fonts/libfontenc
 fontsproto_BUILD_DEPENDS=      ${LOCALBASE}/libdata/pkgconfig/fontsproto.pc:${PORTSDIR}/x11-fonts/fontsproto
 fontutil_LIB_PC_DEPENDS=       ${LOCALBASE}/libdata/pkgconfig/fontutil.pc:${PORTSDIR}/x11-fonts/font-util
-glproto_BUILD_DEPENDS=         ${LOCALBASE}/libdata/pkgconfig/glproto.pc:${PORTSDIR}/x11/glproto
+glproto_LIB_PC_DEPENDS=                ${LOCALBASE}/libdata/pkgconfig/glproto.pc:${PORTSDIR}/x11/glproto
 ice_LIB_PC_DEPENDS=            ${LOCALBASE}/libdata/pkgconfig/ice.pc:${PORTSDIR}/x11/libICE
 inputproto_BUILD_DEPENDS=      ${LOCALBASE}/libdata/pkgconfig/inputproto.pc:${PORTSDIR}/x11/inputproto
 kbproto_BUILD_DEPENDS=         ${LOCALBASE}/libdata/pkgconfig/kbproto.pc:${PORTSDIR}/x11/kbproto
How-To-Repeat: Setup poudriere.
Make poudriere use WITH_NEW_XORG
Make a list of packages containing for example firefox, gtk-engines2, py-cairo, py-gobject, gstreamer-plugins-{cairo,pango}, pangomm, cairomm and dconf.
Start build, watch failures. (You may need the same set of port-options, they are available at http://benriach.widell.net/~andrnils/poudriere-pc.tar.gz , with some logs as well.
Comment 1 Baptiste Daroussin freebsd_committer freebsd_triage 2012-09-26 11:19:28 UTC
State Changed
From-To: open->closed

Duplicate of ports/169701 and partially fixed by: r304878