When using sys-devel/slibtool to build utils for the initramfs it will fail when it installs a slibtool wrapper script instead of the real binary. This happens because it these binaries are installed manually instead of using the install target where slibtool and GNU libtool will place the files in different places. The URL is an upstream PR to fix this issue by dynamically finding the executable to install. Reproducible: Always Steps to Reproduce: 1. Enable slibtool for genkernel with an argument like '--utils-make="$HOME"/bin/tools/make' which is the following wrapper script for make. #!/bin/sh export MAKE='make LIBTOOL=rlibtool' export MAKEFLAGS='LIBTOOL=rlibtool' make "$@" 2. Build a kernel with genkernel where it will build utils for the initramfs such as util-linux or cryptsetup. 3. Fails when strip(1) is given text files. Actual Results: The build will install slibtool wrapper scripts instead of the actual binary which then fails when strip(1) is given a text file instead of a binary. Expected Results: It should correctly install the binary file correctly.
Created attachment 767813 [details, diff] Patch to fix the build for cryptsetup and util-linux Upstream PR - https://github.com/gentoo/genkernel/pull/33
Upstream genkernel merged the PR. https://github.com/gentoo/genkernel/commit/78968ce2101c68eabe38956495ba9d7b7f095875 https://github.com/gentoo/genkernel/commit/1bb3cc10d51026ad500bc9cec883f1f2f0c445ec https://github.com/gentoo/genkernel/commit/cfc9ff455e2473e4322bd18c5fa21370d9c0702e https://github.com/gentoo/genkernel/commit/2d2e91f288679e272f731917feb58f3768ea586d There might be more cases, but it should be easy to fix them as they are found.
The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0693a3b58cd9a217b11f6a3f09fd635f88e661c5 commit 0693a3b58cd9a217b11f6a3f09fd635f88e661c5 Author: orbea <orbea@riseup.net> AuthorDate: 2022-07-10 22:22:59 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2022-08-02 00:21:40 +0000 sys-kernel/genkernel: Fix utils build with slibtool Bug: https://bugs.gentoo.org/836012 Upstream-PR: https://github.com/gentoo/genkernel/pull/33 Closes: https://github.com/gentoo/gentoo/pull/26333 Signed-off-by: Sam James <sam@gentoo.org> .../genkernel/files/genkernel-4.2.6-slibtool.patch | 106 +++++++ sys-kernel/genkernel/genkernel-4.2.6-r7.ebuild | 327 +++++++++++++++++++++ 2 files changed, 433 insertions(+)