Bug 190326 - sys-fs/udev-115 fails to check kernelversions with four digits
Bug#: 190326 Product:  Gentoo Linux Version: unspecified Platform: All
OS/Version: Linux Status: RESOLVED Severity: normal Priority: P2
Resolution: FIXED Assigned To: udev-bugs@gentoo.org Reported By: polynomial-c@gentoo.org
Component: Ebuilds
URL: 
Summary: sys-fs/udev-115 fails to check kernelversions with four digits
Keywords:  
Status Whiteboard: 
Opened: 2007-08-26 19:01 0000
Description:   Opened: 2007-08-26 19:01 0000
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 From Lars Wendler (Polynomial-C) 2007-08-26 19:02:21 0000 -------
Created an attachment (id=129258) [details]
udev-115_ebuild.diff

possible solution through versionator.eclass

------- Comment #2 From Matthias Schwarzott 2007-08-26 21:06:33 0000 -------
Tested, works.
Thanks for supplying a working version of the fix :)
I hope this will be the last change of the version-number checking.