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)
Created attachment 864621 [details] build.log build log and emerge --info
FTR: it is using the HOST kernel instead of the kernel(gentoo-kernel-bin) provided into the chroot
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.
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(-)
- 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.
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(-)