The kernel version is determined, beyond that from the Makefile, from localversion* files found in the source tree root. But actually, files ending in ~ and files with ~ in the middle are excluded (look at 2.6.11). And linux-info does not handle this, so we get problems. Also, it does not handle at all the existance of two localversion files, because their contents are not joined but are left separated by newlines. Attached patch should fix it. Tested both with and without localversion files. Reproducible: Always Steps to Reproduce: 1. 2. 3.
Created attachment 63188 [details, diff] Patch to fix the problem This is the patch I referred to above.
Forgot to say: this causes modules to be installed in the wrong place, and depmod to fail when called.
Thanks for noticing this. I have updated the eclass with smething very similar to your patch. However, it is completely bash, and looks like: get_localversion() { local lv_list i x # ignore files with ~ in it. for i in $(ls ${1}/localversion* 2>/dev/null); do [[ -n ${i//*~*} ]] && lv_list="${lv_list} ${i}" done for i in ${lv_list}; do x="${x}$(<${i})" done x=${x/ /} echo ${x} } Should be fixed in cvs. please emerge sync in about an hour and try again. Thanks. Any problems log here :)
closing