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
Created attachment 129258 [details, diff] udev-115_ebuild.diff possible solution through versionator.eclass
Tested, works. Thanks for supplying a working version of the fix :) I hope this will be the last change of the version-number checking.