Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 340964 Details for
Bug 460328
app-admin/eselect: patch for kernel.eselect to detect valid linux sources by presence of Makefile
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
patch
file_460328.txt (text/plain), 1.32 KB, created by
C. Wijtmans
on 2013-03-04 20:47:25 UTC
(
hide
)
Description:
patch
Filename:
MIME Type:
Creator:
C. Wijtmans
Created:
2013-03-04 20:47:25 UTC
Size:
1.32 KB
patch
obsolete
>--- kernel.eselect.old 2013-03-04 21:39:44.749412387 +0100 >+++ kernel.eselect 2013-03-04 21:41:51.557408534 +0100 >@@ -29,7 +29,7 @@ > find_targets() { > local f > for f in "${EROOT}"/usr/src/linux-[[:digit:]]*; do >- [[ -d ${f} ]] && basename "${f}" >+ [[ -e ${f}/Makefile ]] && basename "${f}" > done | sort_kernel_versions > } > >@@ -49,9 +49,9 @@ > > if [[ -z ${target} ]]; then > die -q "Target \"$1\" doesn't appear to be valid!" >- elif [[ -d ${EROOT}/usr/src/${target} ]]; then >+ elif [[ -e ${EROOT}/usr/src/${target}/Makefile ]]; then > ln -s "${target}" "${EROOT}/usr/src/linux" >- elif [[ -d ${EROOT}/usr/src/linux-${target} ]]; then >+ elif [[ -d ${EROOT}/usr/src/linux-${target}/Makefile ]]; then > ln -s "linux-${target}" "${EROOT}/usr/src/linux" > else > die -q "Target \"$1\" doesn't appear to be valid!" >@@ -66,7 +66,7 @@ > > do_show() { > write_list_start "Current kernel symlink:" >- if [[ -L ${EROOT}/usr/src/linux ]]; then >+ if [[ -L ${EROOT}/usr/src/linux ]] && [[ -e ${EROOT}/usr/src/linux/Makefile ]]; then > local kernel=$(canonicalise "${EROOT}/usr/src/linux") > write_kv_list_entry "${kernel%/}" "" > else
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 Raw
Actions:
View
Attachments on
bug 460328
:
340964
|
340972