summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authororbea <orbea@riseup.net>2024-03-27 14:36:41 -0700
committerSam James <sam@gentoo.org>2024-05-12 16:38:28 +0100
commitbc356deb703c7f5352470ccc2aa647d9a17a804d (patch)
tree3fe5cadc689627397a47afdad3b90420b30d9faf
parentpatches/verbose-pic: new patch to not suppress compiler output (!) (diff)
downloadelt-patches-bc356deb703c7f5352470ccc2aa647d9a17a804d.tar.gz
elt-patches-bc356deb703c7f5352470ccc2aa647d9a17a804d.tar.bz2
elt-patches-bc356deb703c7f5352470ccc2aa647d9a17a804d.zip
eltpatch.in: support slibtoolize20240512
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@riseup.net> Closes: https://github.com/gentoo/elt-patches/pull/1 Signed-off-by: Sam James <sam@gentoo.org>
-rw-r--r--eltpatch.in2
1 files changed, 1 insertions, 1 deletions
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