Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 658058 - app-admin/rasdaemon-0.6.0-r1 requires kernel sources to build. DEPEND does not include kernel.
Summary: app-admin/rasdaemon-0.6.0-r1 requires kernel sources to build. DEPEND does n...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Matthew Thode ( prometheanfire )
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-06-13 17:53 UTC by Frank Sparrow
Modified: 2018-06-28 16:25 UTC (History)
1 user (show)

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 Frank Sparrow 2018-06-13 17:53:12 UTC
I'm cross-compiling Gentoo and needed rasdaemon.  The rasdaemon package ends up being compiled before the kernel.  Is it possible to add sys-kernel/gentoo-sources to the DEPEND array?

* Messages for package app-admin/rasdaemon-0.6.0-r1 merged to /build/amd64-usr/:

 * Unable to find kernel sources at /build/amd64-usr/usr/src/linux
 * Unable to calculate Linux Kernel version for build, attempting to use running version
 * Could not find a usable .config in the kernel source directory.
 * Please ensure that /build/amd64-usr/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: app-admin/rasdaemon-0.6.0-r1::portage-stable failed (setup phase):
 *   Kernel not configured; no .config found in 
 * 
 * Call stack:
 *                   ebuild.sh, line 115:  Called pkg_setup
 *   rasdaemon-0.6.0-r1.ebuild, line  28:  Called check_extra_config
 *           linux-info.eclass, line 731:  Called require_configured_kernel
 *           linux-info.eclass, line 296:  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 '=app-admin/rasdaemon-0.6.0-r1::portage-stable'`,
 * the complete build log and the output of `emerge -pqv '=app-admin/rasdaemon-0.6.0-r1::portage-stable'`.
 * The complete build log is located at '/build/amd64-usr/var/log/portage/app-admin:rasdaemon-0.6.0-r1:20180613-173158.log'.
 * For convenience, a symlink to the build log is located at '/build/amd64-usr/var/tmp/portage/app-admin/rasdaemon-0.6.0-r1/temp/build.log'.
 * The ebuild environment file is located at '/build/amd64-usr/var/tmp/portage/app-admin/rasdaemon-0.6.0-r1/temp/die.env'.
 * Working directory: '/build/amd64-usr/var/tmp/portage/app-admin/rasdaemon-0.6.0-r1/homedir'
 * S: '/build/amd64-usr/var/tmp/portage/app-admin/rasdaemon-0.6.0-r1/work/rasdaemon-0.6.0'
Comment 1 Gilles Dartiguelongue (RETIRED) gentoo-dev 2018-06-24 13:59:39 UTC
It does not need kernel sources, it tries to warn you about missing configurations from the kernel but should not die if it cannot find it.
Comment 2 Matthew Thode ( prometheanfire ) archtester Gentoo Infrastructure gentoo-dev Security 2018-06-24 17:26:38 UTC
As eva said, it shouldn't need the sources.  Can you upload your full build.log for rasdaemon?
Comment 3 Frank Sparrow 2018-06-26 18:25:21 UTC
Sure.  What I mean is that rasdaemon is being compiled before the kernel.  Hence the reason the .config is missing.


bash> ECLASS_DEBUG_OUTPUT='on' emerge-amd64-usr rasdaemon --verbose

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild  N    ~] app-admin/rasdaemon-0.6.1::portage-stable to /build/amd64-usr/ 0 KiB

Total: 1 package (1 new), Size of downloads: 0 KiB


>>> Verifying ebuild manifests

>>> Emerging (1 of 1) app-admin/rasdaemon-0.6.1::portage-stable for /build/amd64-usr/
 * rasdaemon-0.6.1.tar.bz2 BLAKE2B SHA512 size ;-) ...                   [ ok ]
debug:   eclass exists: /mnt/host/source/src/third_party/portage-stable/eclass/linux-info.eclass
debug: inherit: linux-info -> /mnt/host/source/src/third_party/portage-stable/eclass/linux-info.eclass
debug: *** Multiple Inheritence (Level: 2)
debug:   eclass exists: /mnt/host/source/src/third_party/portage-stable/eclass/toolchain-funcs.eclass
debug: inherit: toolchain-funcs -> /mnt/host/source/src/third_party/portage-stable/eclass/toolchain-funcs.eclass
debug: *** Multiple Inheritence (Level: 3)
debug:   eclass exists: /mnt/host/source/src/third_party/portage-stable/eclass/multilib.eclass
debug: inherit: multilib -> /mnt/host/source/src/third_party/portage-stable/eclass/multilib.eclass
debug: *** Multiple Inheritence (Level: 4)
debug:   eclass exists: /mnt/host/source/src/third_party/portage-stable/eclass/toolchain-funcs.eclass
debug: inherit: toolchain-funcs -> /mnt/host/source/src/third_party/portage-stable/eclass/toolchain-funcs.eclass
debug:   eclass exists: /mnt/host/source/src/third_party/portage-stable/eclass/versionator.eclass
debug: inherit: versionator -> /mnt/host/source/src/third_party/portage-stable/eclass/versionator.eclass
debug: *** Multiple Inheritence (Level: 3)
debug:   eclass exists: /mnt/host/source/src/third_party/portage-stable/eclass/eutils.eclass
debug: inherit: eutils -> /mnt/host/source/src/third_party/portage-stable/eclass/eutils.eclass
debug: *** Multiple Inheritence (Level: 4)
debug:   eclass exists: /mnt/host/source/src/third_party/portage-stable/eclass/epatch.eclass
debug: inherit: epatch -> /mnt/host/source/src/third_party/portage-stable/eclass/epatch.eclass
debug: *** Multiple Inheritence (Level: 5)
debug:   eclass exists: /mnt/host/source/src/third_party/portage-stable/eclass/estack.eclass
debug: inherit: estack -> /mnt/host/source/src/third_party/portage-stable/eclass/estack.eclass
debug:   eclass exists: /mnt/host/source/src/third_party/portage-stable/eclass/estack.eclass
debug: inherit: estack -> /mnt/host/source/src/third_party/portage-stable/eclass/estack.eclass
debug:   eclass exists: /mnt/host/source/src/third_party/portage-stable/eclass/ltprune.eclass
debug: inherit: ltprune -> /mnt/host/source/src/third_party/portage-stable/eclass/ltprune.eclass
debug: *** Multiple Inheritence (Level: 5)
debug:   eclass exists: /mnt/host/source/src/third_party/portage-stable/eclass/toolchain-funcs.eclass
debug: inherit: toolchain-funcs -> /mnt/host/source/src/third_party/portage-stable/eclass/toolchain-funcs.eclass
debug:   eclass exists: /mnt/host/source/src/third_party/portage-stable/eclass/multilib.eclass
debug: inherit: multilib -> /mnt/host/source/src/third_party/portage-stable/eclass/multilib.eclass
debug:   eclass exists: /mnt/host/source/src/third_party/portage-stable/eclass/toolchain-funcs.eclass
debug: inherit: toolchain-funcs -> /mnt/host/source/src/third_party/portage-stable/eclass/toolchain-funcs.eclass
debug: EXPORT_FUNCTIONS: pkg_setup -> linux-info_pkg_setup
debug:   eclass exists: /mnt/host/source/src/third_party/portage-stable/eclass/systemd.eclass
debug: inherit: systemd -> /mnt/host/source/src/third_party/portage-stable/eclass/systemd.eclass
debug: *** Multiple Inheritence (Level: 2)
debug:   eclass exists: /mnt/host/source/src/third_party/portage-stable/eclass/toolchain-funcs.eclass
debug: inherit: toolchain-funcs -> /mnt/host/source/src/third_party/portage-stable/eclass/toolchain-funcs.eclass
 * Running stacked hooks for pre_pkg_setup
 *    sysroot_build_bin_dir ...                                          [ ok ]
 * Determining the location of the kernel source code
 * Unable to find kernel sources at /build/amd64-usr/usr/src/linux
 * Please ensure that the KERNEL_DIR environment variable points at full Linux sources of the kernel you wish to compile against.
 * Unable to calculate Linux Kernel version for build, attempting to use running version
 * Could not find a usable .config in the kernel source directory.
 * Please ensure that /build/amd64-usr/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: app-admin/rasdaemon-0.6.1::portage-stable failed (setup phase):
 *   Kernel not configured; no .config found in
 *
 * Call stack:
 *                ebuild.sh, line 115:  Called pkg_setup
 *   rasdaemon-0.6.1.ebuild, line  28:  Called check_extra_config
 *        linux-info.eclass, line 731:  Called require_configured_kernel
 *        linux-info.eclass, line 296:  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 '=app-admin/rasdaemon-0.6.1::portage-stable'`,
 * the complete build log and the output of `emerge -pqv '=app-admin/rasdaemon-0.6.1::portage-stable'`.
 * The complete build log is located at '/build/amd64-usr/var/log/portage/app-admin:rasdaemon-0.6.1:20180626-182308.log'.
 * For convenience, a symlink to the build log is located at '/build/amd64-usr/var/tmp/portage/app-admin/rasdaemon-0.6.1/temp/build.log'.
 * The ebuild environment file is located at '/build/amd64-usr/var/tmp/portage/app-admin/rasdaemon-0.6.1/temp/die.env'.
 * Working directory: '/build/amd64-usr/var/tmp/portage/app-admin/rasdaemon-0.6.1/homedir'
 * S: '/build/amd64-usr/var/tmp/portage/app-admin/rasdaemon-0.6.1/work/rasdaemon-0.6.1'
debug:   eclass exists: /mnt/host/source/src/third_party/portage-stable/eclass/linux-info.eclass
debug: inherit: linux-info -> /mnt/host/source/src/third_party/portage-stable/eclass/linux-info.eclass
debug: *** Multiple Inheritence (Level: 2)
debug:   eclass exists: /mnt/host/source/src/third_party/portage-stable/eclass/toolchain-funcs.eclass
debug: inherit: toolchain-funcs -> /mnt/host/source/src/third_party/portage-stable/eclass/toolchain-funcs.eclass
debug: *** Multiple Inheritence (Level: 3)
debug:   eclass exists: /mnt/host/source/src/third_party/portage-stable/eclass/multilib.eclass
debug: inherit: multilib -> /mnt/host/source/src/third_party/portage-stable/eclass/multilib.eclass
debug: *** Multiple Inheritence (Level: 4)
debug:   eclass exists: /mnt/host/source/src/third_party/portage-stable/eclass/toolchain-funcs.eclass
debug: inherit: toolchain-funcs -> /mnt/host/source/src/third_party/portage-stable/eclass/toolchain-funcs.eclass
debug:   eclass exists: /mnt/host/source/src/third_party/portage-stable/eclass/versionator.eclass
debug: inherit: versionator -> /mnt/host/source/src/third_party/portage-stable/eclass/versionator.eclass
debug: *** Multiple Inheritence (Level: 3)
debug:   eclass exists: /mnt/host/source/src/third_party/portage-stable/eclass/eutils.eclass
debug: inherit: eutils -> /mnt/host/source/src/third_party/portage-stable/eclass/eutils.eclass
debug: *** Multiple Inheritence (Level: 4)
debug:   eclass exists: /mnt/host/source/src/third_party/portage-stable/eclass/epatch.eclass
debug: inherit: epatch -> /mnt/host/source/src/third_party/portage-stable/eclass/epatch.eclass
debug: *** Multiple Inheritence (Level: 5)
debug:   eclass exists: /mnt/host/source/src/third_party/portage-stable/eclass/estack.eclass
debug: inherit: estack -> /mnt/host/source/src/third_party/portage-stable/eclass/estack.eclass
debug:   eclass exists: /mnt/host/source/src/third_party/portage-stable/eclass/estack.eclass
debug: inherit: estack -> /mnt/host/source/src/third_party/portage-stable/eclass/estack.eclass
debug:   eclass exists: /mnt/host/source/src/third_party/portage-stable/eclass/ltprune.eclass
debug: inherit: ltprune -> /mnt/host/source/src/third_party/portage-stable/eclass/ltprune.eclass
debug: *** Multiple Inheritence (Level: 5)
debug:   eclass exists: /mnt/host/source/src/third_party/portage-stable/eclass/toolchain-funcs.eclass
debug: inherit: toolchain-funcs -> /mnt/host/source/src/third_party/portage-stable/eclass/toolchain-funcs.eclass
debug:   eclass exists: /mnt/host/source/src/third_party/portage-stable/eclass/multilib.eclass
debug: inherit: multilib -> /mnt/host/source/src/third_party/portage-stable/eclass/multilib.eclass
debug:   eclass exists: /mnt/host/source/src/third_party/portage-stable/eclass/toolchain-funcs.eclass
debug: inherit: toolchain-funcs -> /mnt/host/source/src/third_party/portage-stable/eclass/toolchain-funcs.eclass
debug: EXPORT_FUNCTIONS: pkg_setup -> linux-info_pkg_setup
debug:   eclass exists: /mnt/host/source/src/third_party/portage-stable/eclass/systemd.eclass
debug: inherit: systemd -> /mnt/host/source/src/third_party/portage-stable/eclass/systemd.eclass
debug: *** Multiple Inheritence (Level: 2)
debug:   eclass exists: /mnt/host/source/src/third_party/portage-stable/eclass/toolchain-funcs.eclass
debug: inherit: toolchain-funcs -> /mnt/host/source/src/third_party/portage-stable/eclass/toolchain-funcs.eclass

>>> Failed to emerge app-admin/rasdaemon-0.6.1 for /build/amd64-usr/, Log file:

>>>  '/build/amd64-usr/var/log/portage/app-admin:rasdaemon-0.6.1:20180626-182308.log'

 * Messages for package app-admin/rasdaemon-0.6.1 merged to /build/amd64-usr/:

 * Unable to find kernel sources at /build/amd64-usr/usr/src/linux
 * Unable to calculate Linux Kernel version for build, attempting to use running version
 * Could not find a usable .config in the kernel source directory.
 * Please ensure that /build/amd64-usr/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: app-admin/rasdaemon-0.6.1::portage-stable failed (setup phase):
 *   Kernel not configured; no .config found in
 *
 * Call stack:
 *                ebuild.sh, line 115:  Called pkg_setup
 *   rasdaemon-0.6.1.ebuild, line  28:  Called check_extra_config
 *        linux-info.eclass, line 731:  Called require_configured_kernel
 *        linux-info.eclass, line 296:  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 '=app-admin/rasdaemon-0.6.1::portage-stable'`,
 * the complete build log and the output of `emerge -pqv '=app-admin/rasdaemon-0.6.1::portage-stable'`.
 * The complete build log is located at '/build/amd64-usr/var/log/portage/app-admin:rasdaemon-0.6.1:20180626-182308.log'.
 * For convenience, a symlink to the build log is located at '/build/amd64-usr/var/tmp/portage/app-admin/rasdaemon-0.6.1/temp/build.log'.
 * The ebuild environment file is located at '/build/amd64-usr/var/tmp/portage/app-admin/rasdaemon-0.6.1/temp/die.env'.
 * Working directory: '/build/amd64-usr/var/tmp/portage/app-admin/rasdaemon-0.6.1/homedir'
 * S: '/build/amd64-usr/var/tmp/portage/app-admin/rasdaemon-0.6.1/work/rasdaemon-0.6.1'
bash> ~/trunk/src/scripts $ ls /build/amd64-usr/usr/src
ls: cannot access '/build/amd64-usr/usr/src': No such file or directory
bash> ~/trunk/src/scripts $
Comment 4 Larry the Git Cow gentoo-dev 2018-06-28 16:25:22 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6f62a6975ebfff50b2b217480c36bc10b8731338

commit 6f62a6975ebfff50b2b217480c36bc10b8731338
Author:     Matthew Thode <prometheanfire@gentoo.org>
AuthorDate: 2018-06-28 16:24:55 +0000
Commit:     Matthew Thode <prometheanfire@gentoo.org>
CommitDate: 2018-06-28 16:24:55 +0000

    app-admin/rasdaemon: make config_check options optional
    
    made optional for so it should be able to be built on systems without
    those options (it's a runtime need, not a build need).
    This should also help with binhost building.
    
    Closes: https://bugs.gentoo.org/658058
    Package-Manager: Portage-2.3.40, Repoman-2.3.9

 app-admin/rasdaemon/rasdaemon-0.6.1.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)