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

Bug 726196

Summary: sys-kernel/genkernel ignores USEflags for sys-fs/lvm2
Product: Gentoo Linux Reporter: Michał Dec <moog621>
Component: Current packagesAssignee: Gentoo Genkernel Maintainers <genkernel>
Status: RESOLVED INVALID    
Severity: normal CC: jstein
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Michał Dec 2020-05-30 10:20:20 UTC
I wanted to make a kernel on my ARM platform because since some update, genkernel can't crosscompile busybox. I was observing the logs and after the kernel, its modules, busybox, cryptsetup and e2fsprogs were finished I saw that genkernel is compiling boost.

Reproducible: Always

Steps to Reproduce:
1. Install sys-fs/lvm2 with USE -thin being a permanent flag for this package. Remember to not set static USE.
2. Ask genkernel to compile the kernel and initramfs.
Actual Results:  
Genkernel will compile boost in a situation where nobody wants boost and nobody asked for boost, and that's bad. It's bad because boost is a huge package that can compile for hours on some systems, which adds a lot more time spent on making a kernel with an initramfs.

Expected Results:  
Genkernel respects USEflags and compiles sys-fs/lvm2 without thin provisioning which is the only thing that requires boost in lvm2.
Comment 1 Thomas Deutschmann (RETIRED) gentoo-dev 2020-06-01 22:16:27 UTC
Closing as invalid. Latest genkernel-4 doesn't use any system packages anymore. Genkernel-4 builds everything it uses on its own.
Also, genkernel-4 should have working cross-compile support.

Please test with genkernel-4 and re-open/file a new bug if bug is still present in latest genkernel version.
Comment 2 Thomas Deutschmann (RETIRED) gentoo-dev 2020-06-01 22:21:17 UTC
Regarding your boost question: Because we are now building everything on our own and we need to support thin volumes, genkernel-4 also builds boost. Sure, for some systems this will take some time but making it optional (i.e. offer a --no-thin parameter) would be too complicated and given that genkernel-4 should have working cross compile support, it isn't worth it.