Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 190326 - sys-fs/udev-115 fails to check kernelversions with four digits
Summary: sys-fs/udev-115 fails to check kernelversions with four digits
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: udev maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-08-26 19:01 UTC by Lars Wendler (Polynomial-C) (RETIRED)
Modified: 2007-08-26 21:06 UTC (History)
0 users

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


Attachments
udev-115_ebuild.diff (udev-115_ebuild.diff,1.13 KB, patch)
2007-08-26 19:02 UTC, Lars Wendler (Polynomial-C) (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2007-08-26 19:01:07 UTC
This happens during emerge of udev-115 on my machine with vanilla 2.6.21.7 kernel:

 * checking udev-115.tar.bz2 ;-) ...                                      [ ok ]
/usr/portage/sys-fs/udev/udev-115.ebuild: line 52: [[: 21.7: syntax error: invalid arithmetic operator (error token is ".7")
 *
 * udev-115 does not support Linux kernel before version 2.6.15!
 * If you want to use udev you need to update
 * to kernel >=2.6.15!
 *

The logic inside of pkg_setup seems to not consider a four digit kernelversion.

I'll attach a patch which could fix this.

Reproducible: Always

Steps to Reproduce:
1. have a kernel with four digits in version number (like 2.6.21.7)
2. emerge =udev-115
Comment 1 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2007-08-26 19:02:21 UTC
Created attachment 129258 [details, diff]
udev-115_ebuild.diff

possible solution through versionator.eclass
Comment 2 Matthias Schwarzott gentoo-dev 2007-08-26 21:06:33 UTC
Tested, works.
Thanks for supplying a working version of the fix :)
I hope this will be the last change of the version-number checking.