Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 291668 - >=x11-libs/libXtst-1.1.0 needs >=x11-libs/libXi-1.3 for XInput.h
Summary: >=x11-libs/libXtst-1.1.0 needs >=x11-libs/libXi-1.3 for XInput.h
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo X packagers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-11-03 09:26 UTC by Claer
Modified: 2009-11-03 19:00 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Claer 2009-11-03 09:26:45 UTC
In order to compile x11-libs/libXtst-1.1.0, the header X11/extensions/XInput.h
is needed.  However, the package x11-proto/inputproto-2.0 don't contain
XInput.h anymore. Here are the files relative to the inputproto-2.0 package :

[root@papillon 2335 ~] # equery f x11-proto/inputproto
[ Searching for packages matching x11-proto/inputproto... ]
* Contents of x11-proto/inputproto-2.0:
/usr
/usr/include
/usr/include/X11
/usr/include/X11/extensions
/usr/include/X11/extensions/XI.h
/usr/include/X11/extensions/XI2.h
/usr/include/X11/extensions/XI2proto.h
/usr/include/X11/extensions/XIproto.h
/usr/lib
/usr/lib/pkgconfig
/usr/lib/pkgconfig/inputproto.pc
/usr/share
/usr/share/doc
/usr/share/doc/inputproto-2.0
/usr/share/doc/inputproto-2.0/ChangeLog.bz2


Reproducible: Always

Steps to Reproduce:
1. emerge xinputproto-2.0
2. emerge libXtst-1.1.0
3.

Actual Results:  
The compilation of libXtst-1.1.0 fails

Expected Results:  
The compilation of libXtst-1.1.0 successes

I downgraded xinputproto to 1.5.1 and then emerged libXtst as a temp solution.
Comment 1 Claer 2009-11-03 09:29:30 UTC
Ooops! forgot to add the output of emerge libXtst with xinputproto-2.0 :

make[1]: entrant dans le répertoire « /var/tmp/portage/x11-libs/libXtst-1.1.0/work/libXtst-1.1.0 »
Making all in src
make[2]: entrant dans le répertoire « /var/tmp/portage/x11-libs/libXtst-1.1.0/work/libXtst-1.1.0/src »
  CC     XRecord.lo
  CC     XTest.lo
Dans le fichier inclus à partir de XTest.c:37:
../include/X11/extensions/XTest.h:34:35: erreur: X11/extensions/XInput.h : Aucun fichier ou dossier de ce type
In file included from XTest.c:37:
../include/X11/extensions/XTest.h:88: erreur: expected declaration specifiers or ‘...’ before ‘XDevice’
../include/X11/extensions/XTest.h:98: erreur: expected declaration specifiers or ‘...’ before ‘XDevice’
../include/X11/extensions/XTest.h:108: erreur: expected declaration specifiers or ‘...’ before ‘XDevice’
../include/X11/extensions/XTest.h:117: erreur: expected declaration specifiers or ‘...’ before ‘XDevice’
XTest.c: In function ‘get_xinput_base’:
XTest.c:82: erreur: ‘INAME’ undeclared (first use in this function)
XTest.c:82: erreur: (Each undeclared identifier is reported only once
XTest.c:82: erreur: for each function it appears in.)
XTest.c: Hors de toute fonction :
XTest.c:259: erreur: expected declaration specifiers or ‘...’ before ‘XDevice’
XTest.c: In function ‘send_axes’:
XTest.c:270: erreur: ‘dev’ undeclared (first use in this function)
XTest.c: Hors de toute fonction :
XTest.c:299: erreur: expected declaration specifiers or ‘...’ before ‘XDevice’
XTest.c: In function ‘XTestFakeDeviceKeyEvent’:
XTest.c:316: erreur: ‘dev’ undeclared (first use in this function)
XTest.c:318: attention : passing argument 6 of ‘send_axes’ makes integer from pointer without a cast
XTest.c:318: erreur: too many arguments to function ‘send_axes’
XTest.c: Hors de toute fonction :
XTest.c:325: erreur: expected declaration specifiers or ‘...’ before ‘XDevice’
XTest.c: In function ‘XTestFakeDeviceButtonEvent’:
XTest.c:342: erreur: ‘dev’ undeclared (first use in this function)
XTest.c:344: attention : passing argument 6 of ‘send_axes’ makes integer from pointer without a cast
XTest.c:344: erreur: too many arguments to function ‘send_axes’
XTest.c: Hors de toute fonction :
XTest.c:351: erreur: expected declaration specifiers or ‘...’ before ‘XDevice’
XTest.c: In function ‘XTestFakeProximityEvent’:
XTest.c:366: erreur: ‘dev’ undeclared (first use in this function)
XTest.c:368: attention : passing argument 6 of ‘send_axes’ makes integer from pointer without a cast
XTest.c:368: erreur: too many arguments to function ‘send_axes’
XTest.c: Hors de toute fonction :
XTest.c:375: erreur: expected declaration specifiers or ‘...’ before ‘XDevice’
XTest.c: In function ‘XTestFakeDeviceMotionEvent’:
XTest.c:391: erreur: ‘dev’ undeclared (first use in this function)
XTest.c:392: attention : passing argument 5 of ‘send_axes’ makes pointer from integer without a cast
XTest.c:392: attention : passing argument 6 of ‘send_axes’ makes integer from pointer without a cast
XTest.c:392: erreur: too many arguments to function ‘send_axes’
make[2]: *** [XTest.lo] Erreur 1
make[2]: *** Attente des tâches non terminées....
make[2]: quittant le répertoire « /var/tmp/portage/x11-libs/libXtst-1.1.0/work/libXtst-1.1.0/src »
make[1]: *** [all-recursive] Erreur 1
make[1]: quittant le répertoire « /var/tmp/portage/x11-libs/libXtst-1.1.0/work/libXtst-1.1.0 »
make: *** [all] Erreur 2
 *
 * ERROR: x11-libs/libXtst-1.1.0 failed.
 * Call stack:
 *               ebuild.sh, line   49:  Called src_compile
 *             environment, line 3133:  Called x-modular_src_compile
 *             environment, line 3918:  Called x-modular_src_make
 *             environment, line 3957:  Called die
 * The specific snippet of code:
 *       emake || die "emake failed"
 *  The die message:
 *   emake failed
 *
 * If you need support, post the topmost build error, and the call stack if relevant.
 * A complete build log is located at '/var/tmp/portage/x11-libs/libXtst-1.1.0/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/x11-libs/libXtst-1.1.0/temp/environment'.
 *
Comment 2 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2009-11-03 09:33:39 UTC
The file moved into libXi package:

# qfile -C XInput.h
x11-libs/libXi (/usr/include/X11/extensions/XInput.h)
Comment 3 Claer 2009-11-03 09:48:35 UTC
(In reply to comment #2)
> The file moved into libXi package:
> 
> # qfile -C XInput.h
> x11-libs/libXi (/usr/include/X11/extensions/XInput.h)

After upgrading libXi to 1.3 it solved the proble.

Maybe it is interesting to add this new dep in libXtxt?

Thanks!
Comment 4 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2009-11-03 10:43:33 UTC
Plese post the output of 

  emerge --info
Comment 5 Claer 2009-11-03 12:09:40 UTC
here is the output of emerge --info (my use flags need some cleaning... ):

[root@papillon 2323 ~]# emerge --info
Portage 2.1.6.13 (default/linux/x86/10.0, gcc-4.3.4, glibc-2.9_p20081201-r2, 2.6.30-gentoo-r7 i686)
=================================================================
System uname: Linux-2.6.30-gentoo-r7-i686-Intel-R-_Core-TM-2_Duo_CPU_T7250_@_2.00GHz-with-gentoo-1.12.11.1
Timestamp of tree: Tue, 03 Nov 2009 01:45:02 +0000
app-shells/bash:     4.0_p28
dev-java/java-config: 2.1.9-r1
dev-lang/python:     2.6.2-r1
dev-python/pycrypto: 2.0.1-r8
dev-util/cmake:      2.6.4-r3
sys-apps/baselayout: 1.12.11.1
sys-apps/sandbox:    1.6-r2
sys-devel/autoconf:  2.13, 2.63-r1
sys-devel/automake:  1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.2
sys-devel/binutils:  2.18-r3
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6a
virtual/os-headers:  2.6.27-r2
ACCEPT_KEYWORDS="x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=prescott -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-O2 -march=prescott -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks fixpackages parallel-fetch protect-owned sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="ftp://ftp.free.fr/mirrors/ftp.gentoo.org/ http://sunsite.cnlab-switch.ch/ftp/mirror/gentoo/ http://ftp.snt.utwente.nl/pub/os/linux/gentoo"
LANG="fr_FR.UTF-8"
LDFLAGS="-Wl,-O1"
LINGUAS="fr jp en"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/portage/local/layman/sunrise /usr/portage/local/layman/berkano /usr/portage/local/layman/gnash-cvs /usr/portage/local/layman/kde-testing"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="X aac acl acpi alsa aspell berkdb bzip2 cddb cjk cli cracklib crypt cups dbus doc dri dvd dvdr examples ffmpeg flac fortran gdbm gif git gstreamer gtk hal iconv id3tag immqt-bc ipv6 java jpeg jpeg2k kde lzma mad maildir mmx modules mp3 mpeg mudflap ncurses nls nptl nptlonly ogg opengl openmp pam pcmcia pcre pdf perl plasma png pppd python qt3support qt4 readline reflection samba sdl session spell spl sse sse2 ssl subversion svg sysfs theora tiff truetype unicode vim-syntax vorbis wifi win32codecs x264 x86 xcb xine xml xorg xpm xvid zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="evdev keyboard mouse synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="fr jp en" USERLAND="GNU" VIDEO_CARDS="i810 intel"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 6 Samuli Suominen (RETIRED) gentoo-dev 2009-11-03 15:08:54 UTC
(In reply to comment #3)
> > # qfile -C XInput.h
> > x11-libs/libXi (/usr/include/X11/extensions/XInput.h)
> After upgrading libXi to 1.3 it solved the proble.
> Maybe it is interesting to add this new dep in libXtxt?

It already had libXi depend, but was missing the >= 1.3 operand.

+  03 Nov 2009; Samuli Suominen <ssuominen@gentoo.org> libXtst-1.1.0.ebuild:
+  x11-libs/libXi >= 1.3 is required for X11/extensions/XInput.h wrt #291668

Reassigning to x11@ if they need to fix something for overlay.
Comment 7 Nirbheek Chauhan (RETIRED) gentoo-dev 2009-11-03 16:25:53 UTC
(In reply to comment #6)
> It already had libXi depend, but was missing the >= 1.3 operand.
> 
> +  03 Nov 2009; Samuli Suominen <ssuominen@gentoo.org> libXtst-1.1.0.ebuild:
> +  x11-libs/libXi >= 1.3 is required for X11/extensions/XInput.h wrt #291668
> 

libXtst pulls in both inputproto and libXi. XInput.h moved from inputproto to libXi when inputproto-2.0 and libXi-1.3 were released.

inputproto-2.0 already depends on !<x11-libs/libXi-1.2.99 (exactly for this migration) -- it should be impossible to have inputproto-2.0 and NOT have libXi-1.3 installed.

=> this bug is invalid, and the fix is not required.
Comment 8 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2009-11-03 16:58:12 UTC
Exactly for this reason I requested his emerge --info. He's mixing stable and unstable packages so my guess is that for some reason this let him install inputproto-2.0 without libXi-1.3
Comment 9 Claer 2009-11-03 18:23:08 UTC
(In reply to comment #8)
> Exactly for this reason I requested his emerge --info. He's mixing stable and
> unstable packages so my guess is that for some reason this let him install
> inputproto-2.0 without libXi-1.3

This is what happened. As I wanted to test KMS, I upgraded early xorg-server (1.5 if I remember). At that time, unstable libXi was not required. That's why I ended with inputproto unstable (required with recent upgrade) and not with libXi (not required with ebuild deps). Thanks for the help!
Comment 10 Rémi Cardona (RETIRED) gentoo-dev 2009-11-03 19:00:53 UTC
There are already blockers in place. I'm pretty sure if you run "emerge -DuNa world", emerge should yell.

Thanks