Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 370009 - sys-fs/udev error evaluating kernel version in /lib/udev/shell-compat-KV.sh for git vanilla kernel
Summary: sys-fs/udev error evaluating kernel version in /lib/udev/shell-compat-KV.sh f...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: udev maintainers
URL:
Whiteboard:
Keywords:
: 352116 (view as bug list)
Depends on:
Blocks:
 
Reported: 2011-06-04 11:16 UTC by Ingo Krabbe
Modified: 2011-06-07 20:28 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 Ingo Krabbe 2011-06-04 11:16:52 UTC
I use to boot own git master vanilla kernel updates, which recently got a kernel release version string of x=$(uname -r)="2.6.39+".
This kernel version isn't stripped in the right way by the expression in
  /lib/udev/shell-compat-KV.sh +17
  local x=${1%%-*}
which cuts of anything after the first "-" in the release version string.

Reproducible: Always



Expected Results:  
What we actually want is a stripped version string consisting of digits and DOTs ".", i.e. "2.6.39" in our case.
so why not exchange line 17 with the expression of what we really want:
  local x=${1%%[^.0-9]*}
which cuts off anything from the first character that isn't a DIGIT or a DOT.
If you want to allow spaces too, you might, but they are not needed here.
Comment 1 Wormo (RETIRED) gentoo-dev 2011-06-07 06:41:11 UTC
Thanks for your report and suggested solution, assigning to udev maintainers
Comment 2 Matthias Schwarzott gentoo-dev 2011-06-07 20:27:51 UTC
fixed in udev-171-r1
Comment 3 Matthias Schwarzott gentoo-dev 2011-06-07 20:28:56 UTC
*** Bug 352116 has been marked as a duplicate of this bug. ***