Summary: | linux-info.eclass getfilevar_noexec receiving wrong parameters (affects =x11-drivers/xf86-video-intel-2.15.0) | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Agostino Sarubbo <ago> |
Component: | Eclasses | Assignee: | Gentoo Kernel Miscellaneous <kernel-misc> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | dschridde+gentoobugs, kirelagin, Martin.vGagern, x11 |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: |
Build log
linux-info.eclass patch |
Description
Agostino Sarubbo
2011-04-18 15:42:53 UTC
*** Bug 364279 has been marked as a duplicate of this bug. *** (In reply to comment #1) > *** Bug 364279 has been marked as a duplicate of this bug. *** Bug #364279 comment #0 has a "set -x" trace of the issue. I encounter this as well. Can this have practical consequences? (Since the coinciding xorg and intel driver stabilization on 22/12 I'm having X/KDE trouble and I'm still diagnosing.) net-fs/cifs-utils-5.3 affected as well, just filed bug #404457 for this. *** Bug 404457 has been marked as a duplicate of this bug. *** net-fs/cifs-utils-5.4 still affected. Bug has been reported over a year ago. * Messages for package sys-kernel/dracut-018-r1: * Could not find a Makefile in the kernel source directory. * Please ensure that /usr/src/linux points to a complete set of Linux sources * Unable to calculate Linux Kernel version for build, attempting to use running version * If the following test report contains a missing kernel * configuration option, you should reconfigure and rebuild your * kernel before booting image generated with this Dracut version. * getfilevar_noexec requires 2 variables, with the second a valid file. * getfilevar_noexec <VARIABLE> <CONFIGFILE> * CONFIG_BLK_DEV_INITRD: "Initial RAM filesystem and RAM disk (initramfs/initrd) support" is missing and REQUIRED * getfilevar_noexec requires 2 variables, with the second a valid file. * getfilevar_noexec <VARIABLE> <CONFIGFILE> * CONFIG_DEVTMPFS: "Maintain a devtmpfs filesystem to mount at /dev" is missing and REQUIRED * getfilevar_noexec requires 2 variables, with the second a valid file. * getfilevar_noexec <VARIABLE> <CONFIGFILE> * CONFIG_MODULES: "Enable loadable module support" is missing and REQUIRED * Please check to make sure these options are set correctly. * Failure to do so may cause unexpected problems. * Messages for package sys-apps/dbus-1.5.12: * Could not find a Makefile in the kernel source directory. * Please ensure that /usr/src/linux points to a complete set of Linux sources * Unable to calculate Linux Kernel version for build, attempting to use running version * getfilevar_noexec requires 2 variables, with the second a valid file. * getfilevar_noexec <VARIABLE> <CONFIGFILE> * CONFIG_EPOLL: is not set when it should be. * Please check to make sure these options are set correctly. * Failure to do so may cause unexpected problems. * Messages for package www-client/google-chrome-19.0.1084.46_p135956: * Could not find a Makefile in the kernel source directory. * Please ensure that /usr/src/linux points to a complete set of Linux sources * Unable to calculate Linux Kernel version for build, attempting to use running version * Messages for package x11-drivers/xf86-video-intel-2.19.0: * getfilevar_noexec requires 2 variables, with the second a valid file. * getfilevar_noexec <VARIABLE> <CONFIGFILE> Created attachment 316247 [details, diff]
linux-info.eclass patch
Ok, I've managed to trace the problem down.
So, this happens because $KV_OUT_DIR in 'linux-info.eclass' is not set. It is normally initialised by `get_version`, but, guess what, no one calls `get_version`! So the veriable remains empty.
Next ebuild calls `linux_config_exists`. `linux_config_exists` checks for '/.config' (recall that the variable is empty) and (in my particular case) finds it! Well, it's a directory, but `linux_config_exists` doesn't care and returns true. Then our ebuild calls `linux_chkconfig_present` which, in turn, checks that '/.config' is a regular file which is not true, so it gives '/proc/config.gz', which does not exist, to `getfilevar_noexec` and the latter displays this error.
First, I propose the attached patch. Second, something should be done to ensure $KV_OUT_DIR is set.
You're barking up entirely the wrong tree with that patch, but your research did point out that the ebuild was not calling linux-info_pkg_setup, like it should have been. I changed the ebuild now. |