From bc356deb703c7f5352470ccc2aa647d9a17a804d Mon Sep 17 00:00:00 2001 From: orbea Date: Wed, 27 Mar 2024 14:36:41 -0700 Subject: eltpatch.in: support slibtoolize Patching ltmain.sh is not applicable when LIBTOOLIZE=slibtoolize which copies a ltmain.sh script with #!/dev/null in the shebang. Bug: https://bugs.gentoo.org/927823 Signed-off-by: orbea Closes: https://github.com/gentoo/elt-patches/pull/1 Signed-off-by: Sam James --- eltpatch.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/eltpatch.in b/eltpatch.in index 8c6daee..f1afdb8 100644 --- a/eltpatch.in +++ b/eltpatch.in @@ -217,7 +217,7 @@ elibtoolize() { fi # patching ltmain.sh - [[ -f ${d}/ltmain.sh ]] && + [[ -f ${d}/ltmain.sh ]] && sed -n '1p' ${d}/ltmain.sh | grep -qsv '/dev/null' && for p in ${elt_patches} ; do ret=0 -- cgit v1.2.3-65-gdbad