Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 941610 - multilib*.eclass do not check for proper kernel modules
Summary: multilib*.eclass do not check for proper kernel modules
Status: RESOLVED DUPLICATE of bug 920217
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Eclasses (show other bugs)
Hardware: All Linux
: Normal minor
Assignee: Gentoo Toolchain Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-10-16 08:09 UTC by Agostino Sarubbo
Modified: 2024-10-16 08:32 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 Agostino Sarubbo gentoo-dev 2024-10-16 08:09:50 UTC
I recently stumbled upon this issue:

 * Package:    sys-apps/sandbox-2.39:0
 * Repository: gentoo
 * Maintainer: sandbox@gentoo.org
 * USE:        abi_x86_32 abi_x86_64 amd64 elibc_glibc kernel_linux nnp
 * FEATURES:   network-sandbox preserve-libs sandbox userpriv usersandbox
 * abi_x86_32.x86: running multilib-minimal_abi_src_configure
checking for a BSD-compatible install... /usr/lib/portage/python3.12/ebuild-helpers/xattr/install -c
checking whether build environment is sane... yes
checking for a race-free mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking whether make supports nested variables... (cached) yes
checking environment state... ok
checking for i686-pc-linux-gnu-gcc... x86_64-pc-linux-gnu-gcc -m32 -mfpmath=sse
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... configure: error: in '/var/tmp/portage/sys-apps/sandbox-2.39/work/sandbox-2.39-abi_x86_32.x86':
configure: error: cannot run C compiled programs.

config.log says:
/var/tmp/portage/sys-apps/sandbox-2.39/work/sandbox-2.39/configure: line 4394: ./conftest: cannot execute binary file: Exec format error

this is because I do not have:
CONFIG_IA32_EMULATION
CONFIG_X86_X32_ABI

that should be checked someway (not sure atm if both are needed)

Assigning to toolchain@ as maintainer of multilib.eclass, not sure if the fix goes there or elsewhere.
Comment 1 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2024-10-16 08:11:11 UTC

*** This bug has been marked as a duplicate of bug 920217 ***
Comment 2 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2024-10-16 08:12:26 UTC
Note that it's not about kernel modules but kernel configuration.

I don't think we should add a pkg_pretend/pkg_setup to every ebuild using multilib*.

I also really just consider this obviously invalid configuration. Don't set it unless you are *absolutely sure* you're not going to need it...
Comment 3 Agostino Sarubbo gentoo-dev 2024-10-16 08:32:16 UTC
(In reply to Sam James from comment #2)
> Note that it's not about kernel modules but kernel configuration.
> 
> I don't think we should add a pkg_pretend/pkg_setup to every ebuild using
> multilib*.
> 
> I also really just consider this obviously invalid configuration. Don't set
> it unless you are *absolutely sure* you're not going to need it...

I agree, I just removed it because a mistake.

Since other ebuilds behave differently in case they need a kernel configuration/module I though it was good to fix, but it is fine as-is