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

Bug 928573

Summary: sys-apps/genkernel-4.3.10 is missing patch for busybox to compile with linux-headers 6.8
Product: Gentoo Hosted Projects Reporter: Søren Dalby Larsen <sdlarsen>
Component: genkernelAssignee: Gentoo Genkernel Maintainers <genkernel>
Status: CONFIRMED ---    
Severity: normal CC: adasss, anrock623, aseelye, azpegath, bjh-gentoobt, bugs.gentoo.org, correabuscar+gentoo_bugs, creideiki+gentoo-bugzilla, doug.hunley, erikdenstore+gbugs, fabio.coatti, gentoo, greg, julien.dlq, kripton, mail, sarnex, sbraz, tero
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
URL: https://github.com/gentoo/genkernel/pull/59
See Also: https://bugs.gentoo.org/show_bug.cgi?id=926872
Whiteboard:
Package list:
Runtime testing required: ---

Description Søren Dalby Larsen 2024-04-04 08:22:57 UTC
The patch is applied to busybox in bug #926872 (busybox-1.36.1-kernel-6.8.patch)

Reproducible: Always

Steps to Reproduce:
1. Upgrade to linux-headers-6.8
2. Try building an initramfs with genkernel
3.
Comment 1 gt_amd64 2024-04-04 17:40:47 UTC
same issue here:

* ERROR: create_initramfs(): append_data(): append_busybox(): populate_binpkg(): gkbuild(): Failed to create binpkg of busybox-1.36.1!
Comment 2 Louis Sautier (sbraz) gentoo-dev 2024-04-06 22:48:56 UTC
To fix this, download https://raw.githubusercontent.com/gentoo/genkernel/43a3b450c22875fa3b553652247191e5c51eebbb/patches/busybox/1.36.1/busybox-1.36.1-kernel-6.8.patch into /usr/share/genkernel/patches/busybox/1.36.1/busybox-1.36.1-kernel-6.8.patch
I've opened a PR at https://github.com/gentoo/genkernel/pull/59
Comment 3 Emanuel Czirai 2024-04-15 07:20:30 UTC
Are the other two patches from the 1.33.1 dir automatically picked up? or they're no longer needed and only apply to 1.33.1 busybox?

https://github.com/gentoo/genkernel/tree/361810b23acd9452218368acecc7cc5262f00c74/patches/busybox/1.33.1

a quick dir diff between busybox 1.33.1 and busybox 1.36.1 versions  shows that neither patch is already in... 
but I don't know if they're already picked up from the genkernel 1.33.1 dir if the current busybox version is 1.36.1 and it has its own 1.36.1 dir (after that PR gets accepted)
Comment 4 Louis Sautier (sbraz) gentoo-dev 2024-04-16 20:17:44 UTC
(In reply to Emanuel Czirai from comment #3)
> Are the other two patches from the 1.33.1 dir automatically picked up? or
> they're no longer needed and only apply to 1.33.1 busybox?
> 
> https://github.com/gentoo/genkernel/tree/
> 361810b23acd9452218368acecc7cc5262f00c74/patches/busybox/1.33.1
> 
> a quick dir diff between busybox 1.33.1 and busybox 1.36.1 versions  shows
> that neither patch is already in... 
> but I don't know if they're already picked up from the genkernel 1.33.1 dir
> if the current busybox version is 1.36.1 and it has its own 1.36.1 dir
> (after that PR gets accepted)

I don't think they are. I didn't see any patch being applied to 1.36.1.
Comment 5 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2024-04-22 01:02:11 UTC
*** Bug 930387 has been marked as a duplicate of this bug. ***
Comment 6 Larry the Git Cow gentoo-dev 2024-04-26 17:17:04 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/proj/genkernel.git/commit/?id=68b495f5e75cc899033bc765a51ad1c8fd8b96e0

commit 68b495f5e75cc899033bc765a51ad1c8fd8b96e0
Author:     Louis Sautier <sautier.louis@gmail.com>
AuthorDate: 2024-04-06 22:18:59 +0000
Commit:     Ben Kohler <bkohler@gentoo.org>
CommitDate: 2024-04-26 17:13:22 +0000

    initramfs: fix busybox 1.36.1 build witk kernel 6.8
    
    Patch taken from
    https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d8ad860a1ed9aa92ada.
    
    Bug: https://bugs.gentoo.org/928573
    Signed-off-by: Louis Sautier <sautier.louis@gmail.com>
    Closes: https://github.com/gentoo/genkernel/pull/59
    Signed-off-by: Ben Kohler <bkohler@gentoo.org>

 .../busybox/1.36.1/busybox-1.36.1-kernel-6.8.patch | 53 ++++++++++++++++++++++
 1 file changed, 53 insertions(+)
Comment 7 Peter Asplund 2024-04-27 15:05:59 UTC
A can confirm that the commit above fixed the issue for me.

sys-kernel/genkernel-4.3.12
sys-kernel/gentoo-sources-6.8.7