Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 543200 - games-util/joystick - jscal-sore / jscal-restore fails because of change of location of udevadm
Summary: games-util/joystick - jscal-sore / jscal-restore fails because of change of l...
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Games
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-03-13 20:19 UTC by Piotr Chmura
Modified: 2020-09-08 22:42 UTC (History)
2 users (show)

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


Attachments
set UDEVADM variable (instead of UDEV) and proper execution in jscal-restore (joystick-1.4.8-udev.patch,1.68 KB, patch)
2015-05-17 17:45 UTC, Piotr Chmura
Details | Diff
`whereis udevadm` instead of given locations (joystick-1.4.8-build.patch,998 bytes, patch)
2016-12-27 08:48 UTC, Piotr Chmura
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Piotr Chmura 2015-03-13 20:19:52 UTC
Ivoking jscal-store or jscal-restore script ends up with message:
"Restoring joystick configuration requires udev!"

It looks like udevadm was been moved from /sbin/udevadm to /bin/udevadm in recent udev versions. Changing location of udevadm in scripts fixes problem.

Maybe there should be check for udevadm in both locations for compatibility with older udev versions.

Reproducible: Always

Steps to Reproduce:
1. run jscal-store with recent udev version installed (i've got udev-218).

Actual Results:  
Message
"Restoring joystick configuration requires udev!"

Expected Results:  
storing/restoring joystick calibration settings

installed:
games-util/joystick-1.4.8::gentoo
sys-fs/udev-218::gentoo

$ emerge --info
Portage 2.2.18 (python 3.3.5-final-0, default/linux/amd64/13.0/desktop, gcc-4.9.2, glibc-2.20-r2, 3.19.0-gentoo x86_64)
=================================================================
System uname: Linux-3.19.0-gentoo-x86_64-Intel-R-_Core-TM-_i5-2500K_CPU_@_3.30GHz-with-gentoo-2.2
KiB Mem:     8165764 total,   2427392 free
KiB Swap:    1951860 total,   1951860 free
Timestamp of repository gentoo: Fri, 13 Mar 2015 16:00:01 +0000
sh bash 4.3_p33-r2
ld GNU ld (Gentoo 2.25 p1.0) 2.25
distcc 3.1 x86_64-pc-linux-gnu [disabled]
app-shells/bash:          4.3_p33-r2::gentoo
dev-java/java-config:     2.2.0::gentoo
dev-lang/perl:            5.20.1-r4::gentoo
dev-lang/python:          2.7.9-r2::gentoo, 3.3.5-r1::gentoo, 3.4.3::gentoo
dev-util/cmake:           3.1.0::gentoo
dev-util/pkgconfig:       0.28-r2::gentoo
sys-apps/baselayout:      2.2::gentoo
sys-apps/openrc:          0.13.11::gentoo
sys-apps/sandbox:         2.6-r1::gentoo
sys-devel/autoconf:       2.13::<unknown repository>, 2.69::gentoo
sys-devel/automake:       1.11.6-r1::gentoo, 1.13.4::gentoo
sys-devel/binutils:       2.25::gentoo
sys-devel/gcc:            4.9.2::gentoo
sys-devel/gcc-config:     1.7.3::gentoo
sys-devel/libtool:        2.4.6::gentoo
sys-devel/make:           4.1-r1::gentoo
sys-kernel/linux-headers: 3.19::gentoo (virtual/os-headers)
sys-libs/glibc:           2.20-r2::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://rsync.gentoo.org/gentoo-portage
    priority: -1000

x-portage
    location: /usr/local/portage
    masters: gentoo
    priority: 0

ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA dlj-1.1 skype-eula AdobeFlash-10 AdobeFlash-10.1 Oracle-BCLA-JavaSE AdobeFlash-10.3 skype-4.0.0.7-copyright AdobeFlash-11.x"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=corei7-avx -mtune=generic -fomit-frame-pointer -pipe -O2"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/themes/oxygen-gtk/gtk-2.0 /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-march=corei7-avx -mtune=generic -fomit-frame-pointer -pipe -O2"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--autounmask-write --quiet-build=y --jobs=10 --keep-going"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://gentoo.po.opole.pl ftp://gentoo.po.opole.pl ftp://mirror.icis.pcz.pl://gentoo http://gentoo.prz.rzeszow.pl rsync://gentoo.prz.rzeszow.pl://gentoo"
LANG="pl_PL.UTF-8"
LC_ALL="pl_PL.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,-O2"
MAKEOPTS="-j5"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
USE="X a52 aac aalib accessibility ace acpi aes alsa amd64 async audiofile avx bash-completion bazaar berkdb bidi bluetooth bonobo branding bzip2 bzlib cairo caps cdda cddb cdio cdparanoia cdr cleartype cli consolekit cracklib crypt ctrlmenu ctype cups cxx dbus dejavu dio divx divx4linux dri dts dvb dvd dvdr emboss emul-linux-x86 encode exif exo extras fam fbcon ffmpeg firefox flac foomatic fortran freetype ftp gallium gd gdbm gdu gif git glamor glib glitz gnupg gpm gtk gtk3 hwids iconv id3tag idn initng inotify introspection jabber java javascript jpeg jpeg2k lame lcdfilter lcms libnotify libsamplerate lm_sensors mad matroska mhash mikmod mime mmap mmx mmxext mng mod modules mozilla mp3 mp4 mpd mpeg mplayer multilib musepack ncurses nls nptl nptlonly nsplugin nss nvidia ogg oggvorbis openal opengl openmp osmesa pam pango pcre pdf pic png policykit popcnt posix ppds pulseaudio pvr python qt3support qt4 rar readline ruby sdl session sharedmem skins slang sna sndfile sockets spell sse sse2 sse3 sse4_1 sse4_2 ssl ssse3 startup-notification stream subversion svg sysfs taglib tcltk tcpd theora threads thumbnail thunar thunar-vfs tinfo truetype truetype-fonts type1-fonts udev udisks unicode upower usb utf8 v4l v4l2 vaapi vcd vcdx vdpau vlm vorbis win32codecs wmf wxwidgets wxwindows x264 xcb xcomposite xfce xft xine xinetd xml xml2 xorg xprint xscreensaver xslt xulrunner xv xvid xvmc zip zlib" ABI_X86="32 64" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd 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 cgi cgid 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" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERAS="canon" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes avx mmx mmxext popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="evdev" KERNEL="linux" LCD_DEVICES="lcd2usb" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="pl" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_3" RUBY_TARGETS="ruby19 ruby20" USERLAND="GNU" VIDEO_CARDS="intel vesa nvidia" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CPPFLAGS, CTARGET, INSTALL_MASK, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON
Comment 1 Mr. Bones. (RETIRED) gentoo-dev 2015-03-19 18:35:55 UTC
sounds like a missing virtual/udev rdep too
Comment 2 Mr. Bones. (RETIRED) gentoo-dev 2015-05-16 06:04:48 UTC
joystick-1.4.8-r1 should be better.  reopen if I messed up the shell code.
Comment 3 Piotr Chmura 2015-05-17 17:08:02 UTC
Doesn't work.

You set UDEV variable, but check/use UDEVADM in both scripts.
Comment 4 Piotr Chmura 2015-05-17 17:38:55 UTC
And you removed "info" parameter from udevadm call in jscal-restore script.
Comment 5 Piotr Chmura 2015-05-17 17:45:48 UTC
Created attachment 403498 [details, diff]
set UDEVADM variable (instead of UDEV) and proper execution in jscal-restore

Added modified patch with fix to 2 previous issues.

Works for me.
Comment 6 Mr. Bones. (RETIRED) gentoo-dev 2015-05-17 19:01:23 UTC
ok, your patch to my patch is in there.
Comment 7 Piotr Chmura 2016-12-27 08:48:35 UTC
Created attachment 457480 [details, diff]
`whereis udevadm` instead of given locations

I recently moved to systemd, which installs udevadm in /usr/bin/

This patch fixes jscal-store and jscal-restore for this case (and hopefully for any future move of udevadm binary).