Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 304391 - x11-drivers/xf86-input-wacom: xsetwacom doesn't allow negative numbers as parameters
Summary: x11-drivers/xf86-input-wacom: xsetwacom doesn't allow negative numbers as par...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Mike Auty (RETIRED)
URL: http://linuxwacom.git.sourceforge.net...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-02-10 20:33 UTC by galilette
Modified: 2010-03-11 23:00 UTC (History)
1 user (show)

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 galilette 2010-02-10 20:33:50 UTC
xsetwacom doesn't allow negative numbers as parameters

Reproducible: Always

Steps to Reproduce:
invoke, e.g., 
--
xsetwacom set sty topx "-128"
--
Actual Results:  
xsetwacom complaining about "1" not an option

Expected Results:  
stylus topx set to a negative number

upstream fixed in git. see link
Comment 1 Mike Auty (RETIRED) gentoo-dev 2010-03-11 23:00:49 UTC
Thanks, this will get fully fixed when upstream releases a new version, and we bump the version is portage.

As you pointed out the problem is because it's using getopt.  In the interim you can specify negative numbers as follows:

xsetwacom set sty topx -- -128

The double dashes inform getopt that everything beyond that point is not a parameter and hence it won't get processed like one.

Since there's a workaround, I'm not going to push the patch to the current package, a new version should be out soon enough.  Hope that's ok?  5:)