Date: Tue, 7 Apr 2009 15:25:06 GMT From: Kalten <kalten@gmx.at> To: freebsd-gnats-submit@FreeBSD.org Subject: ports/133466: x11-drivers/input-wacom does not compile (with hack-fix) Message-ID: <200904071525.n37FP67n097219@www.freebsd.org> Resent-Message-ID: <200904071530.n37FU5JO004342@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 133466 >Category: ports >Synopsis: x11-drivers/input-wacom does not compile (with hack-fix) >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: Tue Apr 07 15:30:04 UTC 2009 >Closed-Date: >Last-Modified: >Originator: Kalten >Release: 7.2-PRERELEASE FreeBSD_version: 701106 >Organization: >Environment: FreeBSD freeHugin.Walhalla.Leben 7.2-PRERELEASE FreeBSD 7.2-PRERELEASE #0: Sun Apr 5 16:59:40 UTC 2009 root@freeHugin.Walhalla.Leben:/usr/obj/usr/src/sys/HUGIN i386 >Description: The driver x11-drivers/input-wacom does not compile anymore (since new Xorg, I suppose). ---SCHNIPP--- gmake[2]: Entering directory `/usr/ports/x11-drivers/input-wacom/work/linuxwacom/linuxwacom-0.8.2-2/src/xdrv' cc -I/usr/local/include -fPIC -pipe -std=c99 \ -pedantic -Wall -Wpointer-arith -fno-merge-constants \ -fno-stack-protector -I. -I../include -I/usr/local/include/xorg -I/usr/local/include \ -I/usr/local/include/xorg -I/usr/local/include/pixman-1 -I/usr/local/include \ -o xf86Wacom.o -c ./xf86Wacom.c In file included from ./xf86Wacom.c:84: ./xf86Wacom.h:30:28: error: xf86Version.h: No such file or directory ---schnapp--- I have a fresh 7.2-PRERELEASE with Version 701106 (according to /usr/share/examples/FreeBSD_version/). I did a csup on my ports on 2009_04_05 (INDEX-7.bz2 is from 13:50GMT the same day) prior to installing _any_ port. >How-To-Repeat: »portinstall x11-drivers/input-wacom« or »make« in there. >Fix: I found a dirty (?) solution: In that file linuxwacom/linuxwacom-0.8.2-2/src/xdrv/xf86Wacom.h the compiling error is happening, there is a #ifdef to distinguish the x-version: we need WCM_XORG_XSERVER_1_6 set there. It can be fixed, by changing the x11-drivers/input-wacom/files/patch-linuxwacom-run_configure file a bit. (see added patchfile) But I did not take care of older versions at all! I do not know, how to check Xorgs version to do it the right way: a better patch would be fine! BTW: as Xorg now uses hald, a policy/wacom_tablet.fdi file would be _very_ welcome! I have not managed to create one for my Bamboo Fun CTE-650 (stylus) on my own till now :-( Patch attached with submission follows: --- linuxwacom/run_configure.orig 2008-12-26 02:09:57.000000000 +0100 +++ linuxwacom/run_configure 2009-04-06 20:54:22.000000000 +0200 @@ -1,7 +1,7 @@ #!/bin/sh # $Id: run_configure 40 2008-12-26 01:08:35Z undo $ -LINUXWACOM=0.8.2 +LINUXWACOM=0.8.2-2 rm -rf linuxwacom-${LINUXWACOM} tar xf linuxwacom-${LINUXWACOM}.tar.bz2 @@ -14,5 +14,5 @@ cp files/types.h linuxwacom-${LINUXWACOM}/src/xdrv/asm cp files/input.h linuxwacom-${LINUXWACOM}/src/xdrv/linux cd linuxwacom-${LINUXWACOM} -./configure --with-linux=yes --with-tcl=/usr/local/include/tcl8.4 --with-tk=/usr/local/include/tk8.4 --prefix=${PREFIX} --enable-dlloader CFLAGS="-I/usr/local/include" +./configure --with-linux=yes --with-tcl=/usr/local/include/tcl8.4 --with-tk=/usr/local/include/tk8.4 --prefix=${PREFIX} --enable-dlloader CFLAGS="-I/usr/local/include -DWCM_XORG_XSERVER_1_6=true" >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200904071525.n37FP67n097219>