[PATCH modular] xcb-util: not required to build The X C Binding (XCB) library for X

Gaetan Nadon memsize at videotron.ca
Mon Mar 7 16:23:53 PST 2011


On Mon, 2011-03-07 at 14:25 -0800, Dan Nicholson wrote:

> On Mon, Mar 07, 2011 at 04:45:25PM -0500, Peter Harris wrote:
> > On 2011-03-07 15:29, Dan Nicholson wrote:
> > > 
> > > There are other components that use xcb-util, though. For instance,
> > > xlsclients needs xcb-atom.pc from xcb-util. Probably it should be
> > > included in the katamari.
> > 
> > xlsclients was just (today) patched to remove its dependency on the
> > deprecated xcb-atom exported atoms[1]. I believe that's all it depended
> > on from xcb-atom.
> > 
> > Someone with more autofoo than I could modify the xlsclients build to
> > not depend on xcb-atom.pc.
> 
> Oh, right. See patch below for xlsclients.
> 
> --
> Dan
> 
> >From 262e24324d1788026ae7f8715066825b0d6668d8 Mon Sep 17 00:00:00 2001
> From: Dan Nicholson <dbn.lists at gmail.com>
> Date: Mon, 7 Mar 2011 14:21:09 -0800
> Subject: [PATCH] Drop dependency on xcb-atom/xcb-util
> 
> With commit 223851b6, the atom names from xcb/xproto.h are being used
> and xcb-atom is no longer needed.
> 
> Signed-off-by: Dan Nicholson <dbn.lists at gmail.com>
> ---
>  configure.ac |    2 +-
>  xlsclients.c |    1 -
>  2 files changed, 1 insertions(+), 2 deletions(-)
> 
> diff --git a/configure.ac b/configure.ac
> index 39204e8..987ca2b 100644
> --- a/configure.ac
> +++ b/configure.ac
> @@ -45,7 +45,7 @@ fi
>  XORG_DEFAULT_OPTIONS
>  
>  # Checks for pkg-config packages
> -PKG_CHECK_MODULES(XLSCLIENTS, xcb xcb-atom)
> +PKG_CHECK_MODULES(XLSCLIENTS, xcb)
>  
>  AC_CONFIG_FILES([
>  	Makefile
> diff --git a/xlsclients.c b/xlsclients.c
> index 15d3f1a..691f868 100644
> --- a/xlsclients.c
> +++ b/xlsclients.c
> @@ -37,7 +37,6 @@ in this Software without prior written authorization from The Open Group.
>  #include <inttypes.h>
>  #include <xcb/xcb.h>
>  #include <xcb/xproto.h>
> -#include <xcb/xcb_atom.h>
>  #ifndef HAVE_STRNLEN
>  #include "strnlen.h"
>  #endif



Reviewed-by: Gaetan Nadon <memsize at videotron.ca>

That answers why xcb-util has always been in tinderbox and build.sh.

Note that the new xcb-* repos use git submodules. It looks like jhbuild
already handles that.

Anyone willing to honor the request in the xcb-util README?

        "If you find any of these libraries useful, please let us know what
        you're using and why you aren't in a mental hospital yet".

:-)






-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.x.org/archives/xorg-devel/attachments/20110307/63117e9c/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: This is a digitally signed message part
URL: <http://lists.x.org/archives/xorg-devel/attachments/20110307/63117e9c/attachment.pgp>


More information about the xorg-devel mailing list