Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 31 Jul 2009 10:11:36 GMT
From:      Ashish SHUKLA <wahjava@gmail.com>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/137298: [PATCH] Update x11/libxcb port to depend on x11/xcb-proto >= 1.5 
Message-ID:  <200907311011.n6VABapG033439@www.freebsd.org>
Resent-Message-ID: <200907311020.n6VAK3Yd063002@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         137298
>Category:       ports
>Synopsis:       [PATCH] Update x11/libxcb port to depend on x11/xcb-proto >= 1.5
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri Jul 31 10:20:03 UTC 2009
>Closed-Date:
>Last-Modified:
>Originator:     Ashish SHUKLA
>Release:        FreeBSD 8.0-BETA2
>Organization:
N/A
>Environment:
FreeBSD monte-cristo.france 8.0-BETA2 FreeBSD 8.0-BETA2 #0: Wed Jul 15 21:48:41 UTC 2009     root@mason.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC  amd64

>Description:
One of the reporter reported me that he is not able to build x11/libxcb as it requires xcb-proto >= 1.5 but port doesn't tell him to do so. The attached diff fixes this.
>How-To-Repeat:

1. Make sure x11/xcb-proto < 1.5 is installed.
2. Now upgrade or install x11/libxcb port.

   # make -C /usr/ports/x11/libxcb build deinstall install clean

3. You'll get an error something like given below in config.log:

configure:12436: $? = 1
Requested 'xcb-proto >= 1.5' but version of XCB Proto is 1.n
configure:12464: error: Package requirements (xcb-proto >= 1.5) were not met:

Requested 'xcb-proto >= 1.5' but version of XCB Proto is 1.n

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

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

>Fix:
diff -urN /usr/ports/x11/libxcb/Makefile libxcb/Makefile
--- /usr/ports/x11/libxcb/Makefile	2009-07-31 20:04:38.000000000 +0530
+++ libxcb/Makefile	2009-07-31 20:55:13.000000000 +0530
@@ -17,8 +17,10 @@
 BUILD_DEPENDS=	${LOCALBASE}/lib/libcheck.a:${PORTSDIR}/devel/libcheck \
 		xsltproc:${PORTSDIR}/textproc/libxslt \
 		${LOCALBASE}/libdata/pkgconfig/xcb-proto.pc:${PORTSDIR}/x11/xcb-proto \
+		xcb-proto>=1.5:${PORTSDIR}/x11/xcb-proto \
 		${LOCALBASE}/libdata/pkgconfig/pthread-stubs.pc:${PORTSDIR}/devel/libpthread-stubs
 RUN_DEPENDS=	${LOCALBASE}/libdata/pkgconfig/xcb-proto.pc:${PORTSDIR}/x11/xcb-proto \
+		xcb-proto>=1.5:${PORTSDIR}/x11/xcb-proto \
 		${LOCALBASE}/libdata/pkgconfig/pthread-stubs.pc:${PORTSDIR}/devel/libpthread-stubs
 
 CONFIGURE_ARGS+=	--disable-build-docs --without-doxygen


>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200907311011.n6VABapG033439>