Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 909384 - sys-kernel/kpatch-0.9.8 post-install issue
Summary: sys-kernel/kpatch-0.9.8 post-install issue
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Arisu Tachibana
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-06-29 20:18 UTC by CaptainBlood
Modified: 2023-06-30 11:49 UTC (History)
1 user (show)

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


Attachments
ebuild log (sys-kernel:kpatch-0.9.8:20230629-213209.log.gz,2.87 KB, application/gzip)
2023-06-29 20:18 UTC, CaptainBlood
Details
emerge --info <package> (emerge--info-sys-kernel.log.tar.xz,4.80 KB, application/x-xz)
2023-06-29 22:00 UTC, CaptainBlood
Details

Note You need to log in before you can comment on or make changes to this bug.
Description CaptainBlood 2023-06-29 20:18:35 UTC
Created attachment 864835 [details]
ebuild log

>>> Completed installing sys-kernel/kpatch-0.9.8 into /var/tmp/portage/sys-kernel/kpatch-0.9.8/image

 * Final size of build directory: 4316 KiB (4.2 MiB)
 * Final size of installed tree:   776 KiB

strip: x86_64-pc-linux-gnu-strip --strip-unneeded -N __gentoo_check_ldflags__ -R .comment -R .GCC.command.line -R .note.gnu.gold-version
   /usr/libexec/kpatch/create-kpatch-module
   /usr/libexec/kpatch/create-diff-object
   /usr/libexec/kpatch/create-klp-module
 * ERROR: sys-kernel/kpatch-0.9.8::gentoo failed (postinst phase):
 *   linux-mod-r1_pkg_postinst was called without running linux-mod-r1_pkg_setup
 * 
 * Call stack:
 *     ebuild.sh, line  136:  Called pkg_postinst
 *   environment, line 2642:  Called linux-mod-r1_pkg_postinst
 *   environment, line 2229:  Called _modules_check_function '0' '0' '0'
 *   environment, line  523:  Called die
 * The specific snippet of code:
 *       [[ -v _MODULES_GLOBAL[ran:pkg_setup] ]] || die "${FUNCNAME[1]} was called without running linux-mod-r1_pkg_setup"
 * 
 * If you need support, post the output of `emerge --info '=sys-kernel/kpatch-0.9.8::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=sys-kernel/kpatch-0.9.8::gentoo'`.
 * The complete build log is located at '/var/log/portage/sys-kernel:kpatch-0.9.8:20230629-213209.log.gz'.
 * For convenience, a symlink to the build log is located at '/var/tmp/portage/sys-kernel/kpatch-0.9.8/temp/build.log.gz'.
 * The ebuild environment file is located at '/var/tmp/portage/sys-kernel/kpatch-0.9.8/temp/environment'.
 * Working directory: '/var/tmp/portage/sys-kernel/kpatch-0.9.8/empty'
 * S: '/var/tmp/portage/sys-kernel/kpatch-0.9.8/work/kpatch-0.9.8'
 * FAILED postinst: 1


despite above failure, portage reports package as installed.
Comment 1 CaptainBlood 2023-06-29 20:31:28 UTC
Side notes


Properly installed:

Installed versions: 0.9.7^t(00:33:57 30/06/2023)(kpatch kpatch-build -contrib -dist-kernel -kmod -test)


Failing settugs:

emerge -1 -p -v sys-kernel/kpatch
[ebuild     U ~] sys-kernel/kpatch-0.9.8::gentoo [0.9.7::gentoo] USE="-contrib -dist-kernel -kmod kpatch kpatch-build -modules-sign% strip%* -test" 0 KiB
Comment 2 CaptainBlood 2023-06-29 22:00:15 UTC
Created attachment 864838 [details]
emerge --info <package>
Comment 3 Larry the Git Cow gentoo-dev 2023-06-30 11:49:26 UTC
The bug has been closed via the following commit(s):

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

commit 59355b434807baf49f02cf23b5c49ec90b8b3383
Author:     Mike Pagano <mpagano@gentoo.org>
AuthorDate: 2023-06-30 11:48:51 +0000
Commit:     Mike Pagano <mpagano@gentoo.org>
CommitDate: 2023-06-30 11:48:51 +0000

    sys-kernel/kpatch: Call linux-mod-r1_pkg_setup before postinst
    
    Closes: https://bugs.gentoo.org/909384
    
    Signed-off-by: Mike Pagano <mpagano@gentoo.org>

 sys-kernel/kpatch/kpatch-0.9.8.ebuild | 1 +
 1 file changed, 1 insertion(+)