Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 582962 - Genkernel should recompile Busybox if cflags have changed.
Summary: Genkernel should recompile Busybox if cflags have changed.
Status: RESOLVED OBSOLETE
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Genkernel Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-05-14 05:39 UTC by Nathan Dehnel
Modified: 2019-07-15 10:22 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 Nathan Dehnel 2016-05-14 05:39:45 UTC
Recompiling the system for a different architecture leads to a nasty situation where it fails to boot as busybox is not included in the recompile. 

Running genkernel will not recompile busybox unless the binary has been manually deleted.

Recompiling busybox when genkernel is run with changed cflags would prevent users the surprise of an unbootable system when they change architectures.
Comment 1 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2016-05-16 06:08:18 UTC
In this case, the user should be clearing the genkernel cache. Changing arch/cflags incompatibly is not the only thing that would cause the cached copy to be unusable, and short of adding lots of tracking info to the cached files, I'm not sure there is any easy ways of catching this.
Comment 2 Thomas Deutschmann (RETIRED) gentoo-dev 2019-07-15 10:22:27 UTC
I am closing this as obsolete because with genkernel-4.0.0-beta.1 and later, cross-compile support was reworked and bug is mentioning especially that.

I.e. when you start creating kernel for x86_64 and will now start to build kernel for arm64, you will get new packages.

Of course we still use general CFLAGS (like portage) which you can set via --utils-cflags. There's no need to mess with that setting (they shouldn't contain --march). But if you do, you must rebuild on your like you have to do for packages in Gentoo.