commit:     bc356deb703c7f5352470ccc2aa647d9a17a804d
Author:     orbea <orbea <AT> riseup <DOT> net>
AuthorDate: Wed Mar 27 21:36:41 2024 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Sun May 12 15:38:28 2024 +0000
URL:        https://gitweb.gentoo.org/proj/elt-patches.git/commit/?id=bc356deb

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 <orbea <AT> riseup.net>
Closes: https://github.com/gentoo/elt-patches/pull/1
Signed-off-by: Sam James <sam <AT> gentoo.org>

 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
 

Reply via email to