>>> Emerging (1 of 2) app-emulation/virtualbox-modules-6.1.34::gentoo >>> Failed to emerge app-emulation/virtualbox-modules-6.1.34, Log file: >>> '/var/tmp/portage/app-emulation/virtualbox-modules-6.1.34/temp/build.log' >>> Jobs: 0 of 2 complete, 1 failed Load avg: 4.14, 4.62, 4.67 * Package: app-emulation/virtualbox-modules-6.1.34 * Repository: gentoo * USE: abi_x86_64 amd64 elibc_glibc kernel_linux pax-kernel userland_GNU * FEATURES: network-sandbox preserve-libs sandbox userpriv usersandbox * Determining the location of the kernel source code * Found kernel source directory: * /usr/src/linux * Found sources for kernel version: * 5.17.15-gentoo * Checking for suitable kernel configuration options ... [ ok ] >>> Unpacking source... >>> Unpacking vbox-kernel-module-src-6.1.34.tar.xz to /var/tmp/portage/app-emulation/virtualbox-modules-6.1.34/work >>> Source unpacked in /var/tmp/portage/app-emulation/virtualbox-modules-6.1.34/work >>> Preparing source in /var/tmp/portage/app-emulation/virtualbox-modules-6.1.34/work ... * Applying virtualbox-modules-5.2.8-pax-const.patch ... patching file vboxdrv/SUPDrvIDC.h Hunk #1 succeeded at 163 (offset 3 lines). patching file vboxnetflt/include/VBox/intnet.h Hunk #1 succeeded at 873 (offset 90 lines). patching file vboxnetflt/linux/VBoxNetFlt-linux.c Hunk #1 succeeded at 339 with fuzz 2 (offset -501 lines). can't find file to patch at input line 36 Perhaps you used the wrong -p or --strip option? The text leading up to this was: -------------------------- |--- vboxpci/include/VBox/rawpci.h |+++ vboxpci/include/VBox/rawpci.h -------------------------- No file to patch. Skipping patch. 1 out of 1 hunk ignored [ !! ] * ERROR: app-emulation/virtualbox-modules-6.1.34::gentoo failed (prepare phase): * patch -p1 -p0 failed with /var/tmp/portage/app-emulation/virtualbox-modules-6.1.34/files/virtualbox-modules-5.2.8-pax-const.patch * * Call stack: * ebuild.sh, line 127: Called src_prepare * environment, line 2175: Called eapply '-p0' '/var/tmp/portage/app-emulation/virtualbox-modules-6.1.34/files/virtualbox-modules-5.2.8-pax-const.patch' * environment, line 792: Called _eapply_patch '/var/tmp/portage/app-emulation/virtualbox-modules-6.1.34/files/virtualbox-modules-5.2.8-pax-const.patch' * environment, line 730: Called __helpers_die 'patch -p1 -p0 failed with /var/tmp/portage/app-emulation/virtualbox-modules-6.1.34/files/virtualbox-modules-5.2.8-pax-const.patch' * isolated-functions.sh, line 112: Called die * The specific snippet of code: * die "$@" Reproducible: Always
*** Bug 855725 has been marked as a duplicate of this bug. ***
Please include the full build.log and emerge --info.
Created attachment 790058 [details] build.log
Created attachment 790061 [details] emerge info
(In reply to Sam James from comment #2) > Please include the full build.log and emerge --info. Done.
Is the patch still needed? I tried to compile both 6.1.32 and 6.1.34 on an old box with a grsec kernel and they compile just file without USE=pax-kernel. Can you please try?
This patch is for compilation only? I've just set this flag for whole system. Without this flag compilation is successful but what if we get crash after some time running it or when using specific /dev/ ? If you think this flag is useless then just turn it off in portage tree or something...
This flag was for compiling on a grsec kernel, which is no longer supported. You don't really need it. https://www.gentoo.org/news/2017/08/19/hardened-sources-removal.html
It's possible it's useful with newer grsec kernels but none of us have a copy. We don't know if it's still useful for such users nor can we test.
The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=87e0614f38efdc0051a1e64274f108ca3d231745 commit 87e0614f38efdc0051a1e64274f108ca3d231745 Author: Viorel Munteanu <ceamac.paragon@gmail.com> AuthorDate: 2022-10-07 05:29:31 +0000 Commit: Joonas Niilola <juippis@gentoo.org> CommitDate: 2022-10-07 07:27:13 +0000 profiles/base: Mask pax-kernel for app-emulation/virtualbox I don't have a current official grsec kernel but I wouldn't want to simply remove all support either, so just mask it for now because it's broken. Bug: https://bugs.gentoo.org/643466 Bug: https://bugs.gentoo.org/674872 Bug: https://bugs.gentoo.org/832161 Bug: https://bugs.gentoo.org/855722 Signed-off-by: Viorel Munteanu <ceamac.paragon@gmail.com> Closes: https://github.com/gentoo/gentoo/pull/27670 Signed-off-by: Joonas Niilola <juippis@gentoo.org> profiles/base/package.use.mask | 7 +++++++ 1 file changed, 7 insertions(+)