Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 364279 - x11-drivers/xf86-video-intel-2.15.0 or linux-info.eclass: KV_OUT_DIR unset
Summary: x11-drivers/xf86-video-intel-2.15.0 or linux-info.eclass: KV_OUT_DIR unset
Status: RESOLVED DUPLICATE of bug 364041
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Eclasses (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-04-20 19:43 UTC by Martin von Gagern
Modified: 2011-04-20 20:03 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Martin von Gagern 2011-04-20 19:43:48 UTC
x11-drivers/xf86-video-intel-2.15.0 reports errors in postinst:

getfilevar_noexec requires 2 variables, with the second a valid file.
   getfilevar_noexec <VARIABLE> <CONFIGFILE>

Adding a "set -x" I get this:
+ linux_config_exists
+ linux_config_src_exists
+ export _LINUX_CONFIG_EXISTS_DONE=1
+ _LINUX_CONFIG_EXISTS_DONE=1
+ '[' -s /.config ']'
+ linux_chkconfig_present DRM_I915_KMS
+ linux_config_qa_check linux_chkconfig_present
+ local f=linux_chkconfig_present
+ '[' -z 1 ']'
+ local RESULT
+ local config
+ config=/.config
+ '[' '!' -f /.config ']'
+ config=/proc/config.gz
++ getfilevar_noexec CONFIG_DRM_I915_KMS /proc/config.gz
++ local ERROR basefname basedname mycat myARCH=amd64
++ ERROR=0
++ mycat=cat
++ '[' -z CONFIG_DRM_I915_KMS ']'
++ '[' '!' -f /proc/config.gz ']'
++ ERROR=1

The problem is this "/.config", which originally was "${KV_OUT_DIR}/.config". It seems KV_OUT_DIR wasn't set. Maybe the ebuild should call get_version, but maybe the eclass should enforce that precondition.

I used to have x11-drivers/xf86-video-intel-2.14.0 installed before, and never had a problem with it. But I guess that's because the "linux_config_exists" call failed, due to the "[ -s /.config ]" test failing. Now /.config is a directory, with /.config/Trolltech.conf its sole content, and this issue appears.
Comment 1 Martin von Gagern 2011-04-20 19:47:31 UTC
(In reply to comment #0)
> Now /.config is a directory, with /.config/Trolltech.conf its sole content

Apparently due to https://bugs.kde.org/show_bug.cgi?id=249217 , but avoiding that would only disable the linux_chkconfig_present check, not make it work as intended.
Comment 2 Chí-Thanh Christopher Nguyễn gentoo-dev 2011-04-20 20:03:49 UTC

*** This bug has been marked as a duplicate of bug 364041 ***