Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 737926 Details for
Bug 811726
linux-info.eclass: packages fail with "Could not detect kernel version" with out of tree kernel
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Fix linux-info.eclass get_version() function with separate kernel output directory
get_version.patch (text/plain), 1.01 KB, created by
Daniel Harding
on 2021-09-06 13:06:10 UTC
(
hide
)
Description:
Fix linux-info.eclass get_version() function with separate kernel output directory
Filename:
MIME Type:
Creator:
Daniel Harding
Created:
2021-09-06 13:06:10 UTC
Size:
1.01 KB
patch
obsolete
>diff --git a/eclass/linux-info.eclass b/eclass/linux-info.eclass >index 48f2ff7fbcbb..f92ba9803d72 100644 >--- a/eclass/linux-info.eclass >+++ b/eclass/linux-info.eclass >@@ -548,10 +548,10 @@ get_version() { > # 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 ${KERNEL_MAKEFILE}. >- KV_MAJOR=$(getfilevar VERSION "${KERNEL_MAKEFILE}") >- KV_MINOR=$(getfilevar PATCHLEVEL "${KERNEL_MAKEFILE}") >- KV_PATCH=$(getfilevar SUBLEVEL "${KERNEL_MAKEFILE}") >- KV_EXTRA=$(getfilevar EXTRAVERSION "${KERNEL_MAKEFILE}") >+ KV_MAJOR=$(KBUILD_OUTPUT="${KBUILD_OUTPUT}" getfilevar VERSION "${KERNEL_MAKEFILE}") >+ KV_MINOR=$(KBUILD_OUTPUT="${KBUILD_OUTPUT}" getfilevar PATCHLEVEL "${KERNEL_MAKEFILE}") >+ KV_PATCH=$(KBUILD_OUTPUT="${KBUILD_OUTPUT}" getfilevar SUBLEVEL "${KERNEL_MAKEFILE}") >+ KV_EXTRA=$(KBUILD_OUTPUT="${KBUILD_OUTPUT}" getfilevar EXTRAVERSION "${KERNEL_MAKEFILE}") > > 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 811726
: 737926 |
737938
|
739195