commit:     5cfb56344c1caa63e87ce7e3a890b0f62843d1c7
Author:     Mats Lidell <matsl <AT> gentoo <DOT> org>
AuthorDate: Thu Sep 26 16:00:24 2024 +0000
Commit:     Mats Lidell <matsl <AT> gentoo <DOT> org>
CommitDate: Thu Sep 26 16:04:24 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5cfb5634

app-editors/xemacs: Do not use which in configure

Close: https://bugs.gentoo.org/940218

Signed-off-by: Mats Lidell <matsl <AT> gentoo.org>

 app-editors/xemacs/files/xemacs-21.5.35-which.patch          | 12 ++++++++++++
 .../{xemacs-21.5.35-r2.ebuild => xemacs-21.5.35-r3.ebuild}   |  1 +
 2 files changed, 13 insertions(+)

diff --git a/app-editors/xemacs/files/xemacs-21.5.35-which.patch 
b/app-editors/xemacs/files/xemacs-21.5.35-which.patch
new file mode 100644
index 000000000000..cf8b554490fc
--- /dev/null
+++ b/app-editors/xemacs/files/xemacs-21.5.35-which.patch
@@ -0,0 +1,12 @@
+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 @@
+ 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
+   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`

diff --git a/app-editors/xemacs/xemacs-21.5.35-r2.ebuild 
b/app-editors/xemacs/xemacs-21.5.35-r3.ebuild
similarity index 99%
rename from app-editors/xemacs/xemacs-21.5.35-r2.ebuild
rename to app-editors/xemacs/xemacs-21.5.35-r3.ebuild
index 16f96c54d3de..c6d6120f7236 100644
--- a/app-editors/xemacs/xemacs-21.5.35-r2.ebuild
+++ b/app-editors/xemacs/xemacs-21.5.35-r3.ebuild
@@ -63,6 +63,7 @@ src_prepare() {
        eapply "${FILESDIR}/${P}-configure.patch"
        eapply "${FILESDIR}/${P}-mule-tests.patch"
        eapply "${FILESDIR}/${P}-configure-libc-version.patch"
+       eapply "${FILESDIR}/${P}-which.patch"
 
        eapply_user
 

Reply via email to