Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 403498 Details for
Bug 543200
games-util/joystick - jscal-sore / jscal-restore fails because of change of location of udevadm
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
set UDEVADM variable (instead of UDEV) and proper execution in jscal-restore
joystick-1.4.8-udev.patch (text/plain), 1.68 KB, created by
Piotr Chmura
on 2015-05-17 17:45:48 UTC
(
hide
)
Description:
set UDEVADM variable (instead of UDEV) and proper execution in jscal-restore
Filename:
MIME Type:
Creator:
Piotr Chmura
Created:
2015-05-17 17:45:48 UTC
Size:
1.68 KB
patch
obsolete
>diff -ru linuxconsoletools-1.4.8.orig/utils/jscal-restore.in linuxconsoletools-1.4.8/utils/jscal-restore.in >--- linuxconsoletools-1.4.8.orig/utils/jscal-restore.in 2011-12-15 10:49:01.000000000 -0500 >+++ linuxconsoletools-1.4.8/utils/jscal-restore.in 2015-05-16 01:54:00.799168225 -0400 >@@ -6,8 +6,13 @@ > exit 1 > fi > >-if [ ! -x /sbin/udevadm ]; then >- echo Restoring joystick configuration requires udev! >&2 >+for f in /sbin/udevadm /bin/udevadm ; >+do >+ [ -x $f ] && UDEVADM=$f >+done >+ >+if [ -z "$UDEVADM" ] ; then >+ echo Storing joystick configuration requires udev! >&2 > exit 1 > fi > >@@ -30,7 +35,7 @@ > # in the NAME value > IFS=$'\x0A' > >-for ATTRIBUTE in $( /sbin/udevadm info -a -n $1 | @@PREFIX@@/share/joystick/ident ); do >+for ATTRIBUTE in $( ${UDEVADM} info -a -n $1 | @@PREFIX@@/share/joystick/ident ); do > ID=$( echo "$ATTRIBUTE" | cut -f 1 -d = ) > VALUE=$( echo "$ATTRIBUTE" | cut -f 2 -d \" ) > case $ID in >diff -ru linuxconsoletools-1.4.8.orig/utils/jscal-store.in linuxconsoletools-1.4.8/utils/jscal-store.in >--- linuxconsoletools-1.4.8.orig/utils/jscal-store.in 2011-12-15 10:49:01.000000000 -0500 >+++ linuxconsoletools-1.4.8/utils/jscal-store.in 2015-05-16 01:53:18.725607838 -0400 >@@ -11,14 +11,18 @@ > echo "Stores the device's calibration for future use." > exit 1 > fi >+for f in /sbin/udevadm /bin/udevadm ; >+do >+ [ -x $f ] && UDEVADM=$f >+done > >-if [ ! -x /sbin/udevadm ]; then >+if [ -z "$UDEVADM" ] ; then > echo Storing joystick configuration requires udev! >&2 > exit 1 > fi > > ident=$(mktemp) >-/sbin/udevadm info -a -n $1 | @@PREFIX@@/share/joystick/ident > $ident >+${UDEVADM} info -a -n $1 | @@PREFIX@@/share/joystick/ident > $ident > . $ident > rm $ident >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 543200
:
403498
|
457480