Package: libxcursor-dev Version: 1.0.2-5 Severity: normal Tags: patch Get gcursor from http://download.qballcow.nl/programs/gcursor/gcursor-0.04.tar.gz
Extract it, configure and make: make will fail like this: -- [EMAIL PROTECTED]:~/Hacking/Debian/gcursor-0.04$ LC_ALL=C make Making all in src make[1]: Entering directory `/home/herzi/Hacking/Debian/gcursor-0.04/src' if i386-linux-gcc -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"gcursor\" -DVERSION=\"0.04\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -I. -I. -pthread -DORBIT2=1 @X_CFLAGS@ -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/pango-1.0 -I/usr/include/freetype2 -I/usr/X11R6/include -I/usr/include/gnome-vfs-2.0 -I/usr/lib/gnome-vfs-2.0/include -I/usr/include/bonobo-activation-2.0 -I/usr/include/orbit-2.0 -I/usr/include/libgnomeui-2.0 -I/usr/include/libgnome-2.0 -I/usr/include/libgnomecanvas-2.0 -I/usr/include/libart-2.0 -I/usr/include/gconf/2 -I/usr/include/libbonoboui-2.0 -I/usr/include/libbonobo-2.0 -I/usr/include/libxml2 -I/usr/include/libglade-2.0 -Wall -DGLADE_PATH=\""/usr/share/gcursor/"\" -Wall -g -O2 -MT gcursor.o -MD -MP -MF ".deps/gcursor.Tpo" \ -c -o gcursor.o `test -f 'gcursor.c' || echo './'`gcursor.c; \ then mv -f ".deps/gcursor.Tpo" ".deps/gcursor.Po"; \ else rm -f ".deps/gcursor.Tpo"; exit 1; \ fi i386-linux-gcc: cannot specify -o with -c or -S and multiple compilations make[1]: *** [gcursor.o] Error 1 make[1]: Leaving directory `/home/herzi/Hacking/Debian/gcursor-0.04/src' make: *** [all-recursive] Error 1 [EMAIL PROTECTED]:~/Hacking/Debian/gcursor-0.04$ -- If one takes a close look one can see a line beginning @X_CFLAGS@ above. This is an error in /usr/lib/pkgconfig/xcursor.pc which looks like this: -- prefix=/usr exec_prefix=${prefix} libdir=${exec_prefix}/lib includedir=${prefix}/include xrenderlibs=-L/usr/X11R6/lib -lXrender -lX11 xrendercflags=-I/usr/X11R6/include [EMAIL PROTECTED]@ [EMAIL PROTECTED]@ Name: Xcursor Description: X Cursor Library Version: 1.0.2 Requires: xrender Cflags: -I${includedir} ${xrendercflags} ${xcflags} Libs: -L${libdir} -lXcursor ${xrenderlibs} ${xlibs} -- xlibs and xcflags are already included in xrenderlibs and xrendercflags, so xlibs and xcflags can be safely set empty. This is an upstream bug in the configure.ac file that can be fixed using the attached patch. -- System Information: Debian Release: testing/unstable APT prefers testing APT policy: (700, 'testing'), (650, 'unstable') Architecture: i386 (i686) Kernel: Linux 2.6.3-shaun Locale: [EMAIL PROTECTED], [EMAIL PROTECTED] Versions of packages libxcursor-dev depends on: ii libc6-dev [libc-dev] 2.3.2.ds1-11 GNU C Library: Development Librari ii libx11-dev 4.3.0-7 X Window System protocol client li ii libxcursor1 1.0.2-5 X Cursor management library ii libxrender-dev 0.8.3-7 X Rendering Extension client libra ii x-dev 4.3.0-7 X protocol development files -- no debconf information
--- xcursor-1.0.2/configure.ac 2004-03-31 16:06:16.000000000 +0200 +++ xcursor-fixed/configure.ac 2004-03-31 15:48:53.000000000 +0200 @@ -86,6 +86,12 @@ ;; esac ;; +yes) + X_LIBS="" + X_CFLAGS="" + AC_SUBST(X_LIBS) + AC_SUBST(X_CFLAGS) + ;; esac AC_SUBST(RENDER_CFLAGS)