Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 909171 - dev-util/lttng-modules-2.13.10 fails to compile: : build: No such file or directory
Summary: dev-util/lttng-modules-2.13.10 fails to compile: : build: No such file or dir...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Mike Pagano
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-06-26 06:48 UTC by Agostino Sarubbo
Modified: 2023-06-28 11:47 UTC (History)
2 users (show)

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


Attachments
build.log (build.log,43.73 KB, text/plain)
2023-06-26 06:48 UTC, Agostino Sarubbo
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Agostino Sarubbo gentoo-dev 2023-06-26 06:48:15 UTC
https://blogs.gentoo.org/ago/2020/07/04/gentoo-tinderbox/

Issue: dev-util/lttng-modules-2.13.10 fails to compile.
Discovered on: amd64 (internal ref: ci)
Comment 1 Agostino Sarubbo gentoo-dev 2023-06-26 06:48:17 UTC
Created attachment 864621 [details]
build.log

build log and emerge --info
Comment 2 Agostino Sarubbo gentoo-dev 2023-06-26 06:49:02 UTC
FTR: it is using the HOST kernel instead of the kernel(gentoo-kernel-bin) provided into the chroot
Comment 3 Ionen Wolkens gentoo-dev 2023-06-26 07:23:03 UTC
local modargs=( NIH_SOURCE="${KV_OUT_DIR}" )

I'm assuming this got copied from the eclass example but forgot to update it?

It's intentionally named oddly so it's not used as-is (NIH_), with bit of text implying to look at the Makefile before the example.
Comment 4 Larry the Git Cow gentoo-dev 2023-06-26 23:13:06 UTC
The bug has been closed via the following commit(s):

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

commit 633b0b127be3dc494d7f7897b937e0eb5e6e4125
Author:     Mike Pagano <mpagano@gentoo.org>
AuthorDate: 2023-06-26 23:08:56 +0000
Commit:     Mike Pagano <mpagano@gentoo.org>
CommitDate: 2023-06-26 23:08:56 +0000

    dev-util/lttng-modules: Fix Kernel build directory setting
    
    Closes: https://bugs.gentoo.org/909171
    
    Signed-off-by: Mike Pagano <mpagano@gentoo.org>

 dev-util/lttng-modules/lttng-modules-2.13.10.ebuild | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
Comment 5 Ionen Wolkens gentoo-dev 2023-06-27 02:09:14 UTC
-       local modargs=( NIH_SOURCE="${KV_OUT_DIR}" )                                                   
+       local modargs=( KERNELDIR="/lib/modules/${KV_FULL}/build" )   

Why change from KV_OUT_DIR? Only issue should be the variable name. This will break things if e.g. the kernel is not installed yet, is in a different ROOT, or the build symlink is outdated. Some users may be doing KERNEL_DIR=/tmp/out-of-tree or so too.
Comment 6 Larry the Git Cow gentoo-dev 2023-06-28 11:47:49 UTC
The bug has been closed via the following commit(s):

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

commit 3a3d4c223dde7d922e48df5648724b738df1a311
Author:     Mike Pagano <mpagano@gentoo.org>
AuthorDate: 2023-06-28 11:46:15 +0000
Commit:     Mike Pagano <mpagano@gentoo.org>
CommitDate: 2023-06-28 11:46:15 +0000

    dev-util/lttng-modules:  Fix compilation errors
    
    Closes: https://bugs.gentoo.org/909171
    Closes: https://bugs.gentoo.org/909276
    
    Signed-off-by: Mike Pagano <mpagano@gentoo.org>

 dev-util/lttng-modules/lttng-modules-2.13.10.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)