Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 856346 - sys-kernel/genkernel-4.2.6-r4: patch -p1 failed with /var/tmp/portage/sys-kernel/genkernel-4.2.6-r4/files/genkernel-4.2.6-gcc-12-boost-1.79.patch
Summary: sys-kernel/genkernel-4.2.6-r4: patch -p1 failed with /var/tmp/portage/sys-ke...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal
Assignee: Gentoo Genkernel Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-07-04 05:24 UTC by HougeLangley
Modified: 2022-07-04 16:54 UTC (History)
6 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge --info (genkernel-4.2.6-r4-emerge-info.log,7.79 KB, text/plain)
2022-07-04 05:27 UTC, HougeLangley
Details

Note You need to log in before you can comment on or make changes to this bug.
Description HougeLangley 2022-07-04 05:24:57 UTC
➜  ~ cat genkernel-4.2.6-r4-full-build.log                                                                
 * Package:    sys-kernel/genkernel-4.2.6-r4
 * Repository: gentoo
 * Maintainer: genkernel@gentoo.org
 * USE:        abi_x86_64 amd64 elibc_glibc firmware kernel_linux python_single_target_python3_10 userland_GNU
 * FEATURES:   ccache network-sandbox preserve-libs sandbox userpriv usersandbox
 * Please clean PYTHON_COMPAT of obsolete implementations:
 *   python3_7
 * Using python3.10 to build
>>> Unpacking source...
>>> Unpacking genkernel-4.2.6.tar.xz to /var/tmp/portage/sys-kernel/genkernel-4.2.6-r4/work
>>> Source unpacked in /var/tmp/portage/sys-kernel/genkernel-4.2.6-r4/work
>>> Preparing source in /var/tmp/portage/sys-kernel/genkernel-4.2.6-r4/work/genkernel-4.2.6 ...
 * Applying genkernel-4.2.6-devicemanager.patch ...
 [ ok ]
 * Applying genkernel-4.2.6-fix-btrfs-progs-deps.patch ...
 [ ok ]
 * Applying genkernel-4.2.6-fuse-glibc-2.34.patch ...
 [ ok ]
 * Applying genkernel-4.2.6-gcc-12-boost-1.79.patch ...
/var/tmp/portage/sys-kernel/genkernel-4.2.6-r4/temp/environment: line 1061: /var/tmp/portage/sys-kernel/genkernel-4.2.6-r4/files/genkernel-4.2.6-gcc-12-boost-1.79.patch: No such file or directory
/var/tmp/portage/sys-kernel/genkernel-4.2.6-r4/temp/environment: line 1064: /var/tmp/portage/sys-kernel/genkernel-4.2.6-r4/files/genkernel-4.2.6-gcc-12-boost-1.79.patch: No such file or directory
 [ !! ]
 * ERROR: sys-kernel/genkernel-4.2.6-r4::gentoo failed (prepare phase):
 *   patch -p1  failed with /var/tmp/portage/sys-kernel/genkernel-4.2.6-r4/files/genkernel-4.2.6-gcc-12-boost-1.79.patch
 * 
 * Call stack:
 *               ebuild.sh, line  127:  Called src_prepare
 *             environment, line 2424:  Called default
 *      phase-functions.sh, line  858:  Called default_src_prepare
 *      phase-functions.sh, line  923:  Called __eapi6_src_prepare
 *             environment, line  317:  Called eapply '/var/tmp/portage/sys-kernel/genkernel-4.2.6-r4/files/genkernel-4.2.6-devicemanager.patch' '/var/tmp/portage/sys-kernel/genkernel-4.2.6-r4/files/genkernel-4.2.6-fix-btrfs-progs-deps.patch' '/var/tmp/portage/sys-kernel/genkernel-4.2.6-r4/files/genkernel-4.2.6-fuse-glibc-2.34.patch' '/var/tmp/portage/sys-kernel/genkernel-4.2.6-r4/files/genkernel-4.2.6-gcc-12-boost-1.79.patch'
 *             environment, line 1129:  Called _eapply_patch '/var/tmp/portage/sys-kernel/genkernel-4.2.6-r4/files/genkernel-4.2.6-gcc-12-boost-1.79.patch'
 *             environment, line 1067:  Called __helpers_die 'patch -p1  failed with /var/tmp/portage/sys-kernel/genkernel-4.2.6-r4/files/genkernel-4.2.6-gcc-12-boost-1.79.patch'
 *   isolated-functions.sh, line  112:  Called die
 * The specific snippet of code:
 *              die "$@"
 * 
 * If you need support, post the output of `emerge --info '=sys-kernel/genkernel-4.2.6-r4::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=sys-kernel/genkernel-4.2.6-r4::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/sys-kernel/genkernel-4.2.6-r4/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/sys-kernel/genkernel-4.2.6-r4/temp/environment'.
 * Working directory: '/var/tmp/portage/sys-kernel/genkernel-4.2.6-r4/work/genkernel-4.2.6'
 * S: '/var/tmp/portage/sys-kernel/genkernel-4.2.6-r4/work/genkernel-4.2.6'

Reproducible: Always
Comment 1 HougeLangley 2022-07-04 05:26:15 UTC
[ebuild     U ] sys-kernel/genkernel-4.2.6-r4 [4.2.6-r2] USE="firmware (-ibm)" PYTHON_SINGLE_TARGET="python3_10 -python3_8 -python3_9"
Comment 2 HougeLangley 2022-07-04 05:27:55 UTC
Created attachment 790013 [details]
emerge --info
Comment 3 Ciaran 2022-07-04 08:45:46 UTC
same problem, I masked.
Comment 4 MZ 2022-07-04 08:59:38 UTC
same problem.
Comment 5 ZappeL 2022-07-04 09:57:28 UTC
Seems like a typo..
To fix this (temporary) edit the ebuild and change (line 133):
from: "${FILESDIR}"/${P}-genkernel-4.2.6-boost-optim
to:   "${FILESDIR}"/${P}-boost-optim.patch

digest the ebuild afterwards (ebuild genkernel-4.2.6-r4.ebuild digest) and continue installation/upgrade process.


cheers.
Comment 6 ZappeL 2022-07-04 10:39:35 UTC
(In reply to zappel from comment #5)
> Seems like a typo..
> To fix this (temporary) edit the ebuild and change (line 133):
> from: "${FILESDIR}"/${P}-genkernel-4.2.6-boost-optim
> to:   "${FILESDIR}"/${P}-boost-optim.patch
> 
> digest the ebuild afterwards (ebuild genkernel-4.2.6-r4.ebuild digest) and
> continue installation/upgrade process.
> 
> 
> cheers.

Sorry missed the second part to adjust, the patch itself is broked as well - wrong paths. To fix that change Lines 14 and 15.
From:
--- gkbuilds/boost-build.gkbuild
+++ gkbuilds/boost-build.gkbuild
To:
--- a/gkbuilds/boost-build.gkbuild
+++ b/gkbuilds/boost-build.gkbuild

and redigest the ebuild afterwards.


cheers.
Comment 7 Larry the Git Cow gentoo-dev 2022-07-04 16:39:44 UTC
The bug has been closed via the following commit(s):

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

commit a2b6e0fc6c044df63edd22693da4e3d62a4930f3
Author:     Robin H. Johnson <robbat2@gentoo.org>
AuthorDate: 2022-07-04 16:39:36 +0000
Commit:     Robin H. Johnson <robbat2@gentoo.org>
CommitDate: 2022-07-04 16:39:36 +0000

    sys-kernel/genkernel: refresh patch
    
    Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
    Closes: https://bugs.gentoo.org/856346

 .../files/genkernel-4.2.6-boost-optim.patch        | 23 ------------------
 .../files/genkernel-4.2.6-gcc-12-boost-1.79.patch  | 28 ++++++++++++++++++++++
 2 files changed, 28 insertions(+), 23 deletions(-)