commit: 920bcdeb3bb2a3ce72082eed4bf2c09ce6705bfe
Author: Mats Lidell <matsl <AT> gentoo <DOT> org>
AuthorDate: Sat Sep 28 17:18:17 2024 +0000
Commit: Mats Lidell <matsl <AT> gentoo <DOT> org>
CommitDate: Sat Sep 28 17:30:25 2024 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=920bcdeb
app-editors/xemacs: Use command -v
Update patch to not use type -P, due to not posix required, and skip
looking around the file system if there is a makeinfo that meets the
requirement.
Signed-off-by: Mats Lidell <matsl <AT> gentoo.org>
app-editors/xemacs/files/xemacs-21.5.35-which.patch | 17 ++++++++++++++---
1 file changed, 14 insertions(+), 3 deletions(-)
diff --git a/app-editors/xemacs/files/xemacs-21.5.35-which.patch
b/app-editors/xemacs/files/xemacs-21.5.35-which.patch
index cf8b554490fc..1c93aa0e19d7 100644
--- a/app-editors/xemacs/files/xemacs-21.5.35-which.patch
+++ b/app-editors/xemacs/files/xemacs-21.5.35-which.patch
@@ -1,12 +1,23 @@
diff -r 22f2684b1b82 configure.ac
--- a/configure.ac Mon Sep 23 16:24:03 2024 +0100
-+++ b/configure.ac Thu Sep 26 07:57:11 2024 +0200
-@@ -2518,7 +2518,7 @@
++++ b/configure.ac Sat Sep 28 14:09:56 2024 +0200
+@@ -2518,16 +2518,16 @@
dnl We need a recent version of makeinfo
AC_MSG_CHECKING([for makeinfo >= 4.12])
MAKEINFO=
-for prog in `which -a makeinfo`; do
-+for prog in `type -P makeinfo`; do
++if prog=`command -v makeinfo`
++then
mi_verstr=[`$prog --version | sed -n '1s/^.* \([0-9][0-9.]*\)$/\1/p'`]
mi_major=`echo $mi_verstr | cut -d. -f1`
mi_minor=`echo $mi_verstr | cut -d. -f2`
+ if test "$mi_major" -gt 4 || ( test "$mi_major" -eq 4 && test "$mi_minor"
-gt 11 );
+ then
+ MAKEINFO=$prog
+- break
+ fi
+-done
++fi
+ if test -z $MAKEINFO; then
+ AC_MSG_RESULT([no])
+ AC_MSG_WARN([Found Makeinfo $mi_verstr. 4.12 or later required.])