Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 139261

Summary: linuxwacom ebuild has a "syntax error" on has_version usage.
Product: Gentoo Linux Reporter: Walther <walther.md>
Component: New packagesAssignee: Gentoo Linux bug wranglers <bug-wranglers>
Status: RESOLVED DUPLICATE    
Severity: normal    
Priority: High    
Version: 2006.0   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Walther 2006-07-04 20:14:21 UTC
When trying to install the linuxwacom package, it bumps into this error:

--------
>>> checking linuxwacom-0.7.2.tar.bz2 ;-)
* Installing X Wacom driver and accompanying userland utilities.
/usr/portage/x11-misc/linuxwacom/linuxwacom-0.7.2.ebuild: line 47: =sys-kernel/linux-headers-2.6: No such file or directory
* Determining the location of the kernel source code
* Found kernel source directory:
* /usr/src/linux
* Found sources for kernel version:
* 2.6.16-reiser4-r9
* USB Wacom tablets require 2.6 linux-headers. Please upgrade.

!!! ERROR: x11-misc/linuxwacom-0.7.2 failed.
Call stack:
ebuild.sh, line 1555: Called dyn_setup
ebuild.sh, line 668: Called pkg_setup
linuxwacom-0.7.2.ebuild, line 52: Called die

!!! USB Wacom tablets require 2.6 linux-headers. Please upgrade.
!!! If you need support, post the topmost build error, and the call stack if relevant. 
--------
However, note the text:

/usr/portage/x11-misc/linuxwacom/linuxwacom-0.7.2.ebuild: line 47: =sys-kernel/linux-headers-2.6: No such file or directory
-------
Which suggests a script syntax error. After doing a grep on the portage directory for usage of the has_version command, I confirm my suspicions. Line 47 of this ebuild says:

if ! has_version >=sys-kernel/linux-headers-2.6; then

While every other ebuild which uses has_version with a version number specified would use this instead:

if ! has_version `>=sys-kernel/linux-headers-2.6`; then

And NOW it works. I don't understand how could such a syntax error in the ebuild script go unnoticed? It may be something else (like the fact that I use zsh rather than bash? But that shouldn't have anything to do with it). IN any case, adding those backquotes should fix the problem (the grep results also indicate that double quotes could have been used as well). This problem exists in all linuxwacom ebuilds.

There's no need for emerge --info... but I'll include it anyway in case someone decides to bark at me back for not complying with the guidelines... :P

Portage 2.1-r1 (default-linux/x86/2006.0, gcc-3.4.6, glibc-2.3.6-r4, 2.6.14-reiser4-r4 i686)
=================================================================
System uname: 2.6.14-reiser4-r4 i686 AMD Athlon(tm) XP 1900+
Gentoo Base System version 1.6.15
dev-lang/python:     2.3.3-r1, 2.4.3-r1
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     [Not Present]
dev-util/confcache:  [Not Present]
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.59-r7
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2
sys-devel/binutils:  2.16.1-r3
sys-devel/gcc-config: 1.3.13-r2
sys-devel/libtool:   1.4.3-r4, 1.5.22
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=athlon-xp -O2 -fomit-frame-pointer -momit-leaf-frame-pointer -fno-ident -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf"
CXXFLAGS="-march=athlon-xp -O2 -fomit-frame-pointer -momit-leaf-frame-pointer -fno-ident -pipe -fvisibility-inlines-hidden"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig digest distlocks metadata-transfer parallel-fetch sandbox sfperms strict userpriv"
GENTOO_MIRRORS="http://gentoo.mirrors.tds.net/gentoo http://ftp.du.se/pub/os/gentoo http://mirrors.acm.cs.rpi.edu/gentoo/ http://gentoo.ccccom.com"
MAKEOPTS="-j2 -s"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude='/distfiles' --exclude='/local' --exclude='/packages'"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/etc/portage/overlay"
SYNC="rsync://rsync.namerica.gentoo.org/gentoo-portage"
USE="x86 3dnow X aac acpi alsa apm avi berkdb bitmap-fonts boundschecking bzip2 cairo canna cjk cli crypt cscope cups dbus dedicated dga divx4linux dlloader dri dts dvd dvdr dvdread emboss encode fam fbcon ffmpeg flac fortran freewnn gd gdbm gif gimp ginac gpm gstreamer gtk gtk2 gtkhtml howl imap imlib innodb ipv6 isdnlog jabber java jikes jpeg libg++ libwww mad matroska mbox mikmod mmx mng mp3 mpeg ncurses nls nptl nvidia ogg opengl pam pcre pdflib perl png ppds pppd python qt3 qt4 quicktime readline reflection scanner sdl session speex spell spl sse ssl svg svga tcltk tcpd theora threads tiff truetype truetype-fonts type1-fonts udev unicode usb v4l v4l2 vorbis win32codecs wmf xface xine xml xml2 xmms xorg xv xvid zlib elibc_glibc input_devices_evdev input_devices_keyboard input_devices_mouse input_devices_wacom kernel_linux userland_GNU video_cards_nvidia video_cards_vesa"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2006-07-05 00:36:12 UTC
emerge --sync before reporting bugs.


*** This bug has been marked as a duplicate of 138641 ***