Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 596748

Summary: dev-lang/mono should only check kernel if compiling
Product: Gentoo Linux Reporter: Mike Hiretsky <mh>
Component: Current packagesAssignee: No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it <maintainer-needed>
Status: RESOLVED OBSOLETE    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Mike Hiretsky 2016-10-10 09:52:07 UTC
I had kernel 4.4.17 and create binary package mono-4.4.1.0. But after upgrade kernel to another version, and uninstall kernel 4.4.17, I cannot install binary mono. Probably version of kernel was integrated in binary package.

 * Messages for package dev-lang/mono-4.4.1.0:

 * Could not find a usable .config in the kernel source directory.
 * Please ensure that /usr/src/linux points to a configured set of Linux sources.
 * If you are using KBUILD_OUTPUT, please set the environment var so that
 * it points to the necessary object directory so that it might find .config.
 * ERROR: dev-lang/mono-4.4.1.0::gentoo failed (pretend phase):
 *   Kernel not configured; no .config found in /lib/modules/4.4.17-calculate/build
 * 
 * Call stack:
 *     ebuild.sh, line  115:  Called pkg_pretend
 *   environment, line 3451:  Called check_extra_config
 *   environment, line  690:  Called require_configured_kernel
 *   environment, line 3779:  Called die
 * The specific snippet of code:
 *           die "Kernel not configured; no .config found in ${KV_OUT_DIR}";
 * 
 * If you need support, post the output of `emerge --info '=dev-lang/mono-4.4.1.0::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=dev-lang/mono-4.4.1.0::gentoo'`.
 * The complete build log is located at '/var/calculate/tmp/portage/dev-lang/mono-4.4.1.0/temp/build.log'.
 * The ebuild environment file is located at '/var/calculate/tmp/portage/dev-lang/mono-4.4.1.0/temp/environment'.
 * Working directory: '/usr/lib64/python3.4/site-packages'
 * S: '/var/calculate/tmp/portage/dev-lang/mono-4.4.1.0/work/mono-4.4.1.0'
Comment 1 Alice Ferrazzi Gentoo Infrastructure gentoo-dev 2016-10-12 23:50:08 UTC
in eselect kernel list
the kernel version is pointing to your new version ?

your kernel sources are not pointing a kernel that have a .config
Comment 2 Jeroen Roovers (RETIRED) gentoo-dev 2016-10-16 06:28:57 UTC
This is not a support forum and there is no bug here. You just need to fix your local problems.
Comment 3 Mike Hiretsky 2016-10-20 06:42:01 UTC
Kernel check is excessive action for binary package installation , because kernel option is need for compile stage only.

Also I checked @dev-lang/mono-4.4.1.0@ compilation on loaded kernel without SYSVIPC option. It success finished. Probably mono upstreamers fixed this problem.
Comment 4 Mike Hiretsky 2016-10-20 06:46:12 UTC
(In reply to Alice Ferrazzi from comment #1)
> in eselect kernel list
> the kernel version is pointing to your new version ?
> 
> your kernel sources are not pointing a kernel that have a .config

/usr/src/linux pointed to new kernel. Kernel hava correct .config. But enviroment.bz2 in binary package of mono contains:

declare -- KV_DIR="/usr/src/linux"
declare -- KV_EXTRA="-calculate"
declare -- KV_FULL="4.4.23-calculate"
declare -- KV_LOCAL=""
declare -- KV_MAJOR="4"
declare -- KV_MINOR="4"
declare -- KV_OUT_DIR="/lib/modules/4.4.23-calculate/build"
declare -- KV_PATCH="23"

Therefore emerge tries to check non-existent kernel config.
Comment 5 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-10-20 02:16:57 UTC
This is really a problem with all sorts of packages and if you have /proc/config.gz nowadays, it's happy.