Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 100090 Details for
Bug 138550
linux-info get_version does not return the correct version - leads to modules being installed in the wrong place!
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
linux-info.eclass.diff
linux-info.eclass.diff (text/plain), 1.25 KB, created by
Christian Heim (RETIRED)
on 2006-10-20 07:43:53 UTC
(
hide
)
Description:
linux-info.eclass.diff
Filename:
MIME Type:
Creator:
Christian Heim (RETIRED)
Created:
2006-10-20 07:43:53 UTC
Size:
1.25 KB
patch
obsolete
>Index: linux-info.eclass >=================================================================== >RCS file: /var/cvsroot/gentoo-x86/eclass/linux-info.eclass,v >retrieving revision 1.48 >diff -u -b -B -r1.48 linux-info.eclass >--- linux-info.eclass 7 Sep 2006 11:37:41 -0000 1.48 >+++ linux-info.eclass 14 Oct 2006 17:29:38 -0000 >@@ -261,6 +261,14 @@ > kbuild_output="$(getfilevar KBUILD_OUTPUT ${KV_DIR}/Makefile)" > OUTPUT_DIR="${OUTPUT_DIR:-${kbuild_output}}" > >+ # Using `make kernelrelease' >+ if [ -f "${KV_DIR}/.kernelrelease" ] ; then >+ # get the info from ${KV_DIR}/.kernelrelease >+ KV_MAJOR="$( cat ${KV_DIR}/.kernelrelease | cut -d. -f1 )" >+ KV_MINOR="$( cat ${KV_DIR}/.kernelrelease | cut -d. -f2 )" >+ KV_PATCH="$( cat ${KV_DIR}/.kernelrelease | cut -d. -f3 )" >+ KV_EXTRA="$( cat ${KV_DIR}/.kernelrelease | cut -d. -f4 )" >+ else > # And contrary to existing functions I feel we shouldn't trust the > # directory name to find version information as this seems insane. > # so we parse ${KV_DIR}/Makefile >@@ -268,6 +276,7 @@ > KV_MINOR="$(getfilevar PATCHLEVEL ${KV_DIR}/Makefile)" > KV_PATCH="$(getfilevar SUBLEVEL ${KV_DIR}/Makefile)" > KV_EXTRA="$(getfilevar EXTRAVERSION ${KV_DIR}/Makefile)" >+ fi > > if [ -z "${KV_MAJOR}" -o -z "${KV_MINOR}" -o -z "${KV_PATCH}" ] > then
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 138550
:
100089
| 100090