commit: 9fa417578d3a98d569f21ff1c492b40b0a1456f3 Author: Alfredo Tupone <tupone <AT> gentoo <DOT> org> AuthorDate: Wed Oct 23 19:43:07 2024 +0000 Commit: Alfredo Tupone <tupone <AT> gentoo <DOT> org> CommitDate: Wed Oct 23 19:45:46 2024 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9fa41757
dev-ml/ocamlnet: drop which in favor of command -v Closes: https://bugs.gentoo.org/941755 Signed-off-by: Alfredo Tupone <tupone <AT> gentoo.org> dev-ml/ocamlnet/files/ocamlnet-4.1.9-noWhich.patch | 16 ++++++++++++++++ dev-ml/ocamlnet/ocamlnet-4.1.9-r1.ebuild | 3 ++- 2 files changed, 18 insertions(+), 1 deletion(-) diff --git a/dev-ml/ocamlnet/files/ocamlnet-4.1.9-noWhich.patch b/dev-ml/ocamlnet/files/ocamlnet-4.1.9-noWhich.patch new file mode 100644 index 000000000000..9baed9842292 --- /dev/null +++ b/dev-ml/ocamlnet/files/ocamlnet-4.1.9-noWhich.patch @@ -0,0 +1,16 @@ +--- a/configure 2024-10-23 21:15:13.597333850 +0200 ++++ b/configure 2024-10-23 21:15:34.527082731 +0200 +@@ -1106,11 +1106,11 @@ + printf "%s" "Checking for make utility... " + if [ -z "$MAKE" ] + then +- if which gmake >/dev/null ++ if command -v gmake >/dev/null + then + make=gmake + else +- if which make >/dev/null ++ if command -v make >/dev/null + then + make=make + fi diff --git a/dev-ml/ocamlnet/ocamlnet-4.1.9-r1.ebuild b/dev-ml/ocamlnet/ocamlnet-4.1.9-r1.ebuild index 60b4eea78ebf..791b193f2a11 100644 --- a/dev-ml/ocamlnet/ocamlnet-4.1.9-r1.ebuild +++ b/dev-ml/ocamlnet/ocamlnet-4.1.9-r1.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2023 Gentoo Authors +# Copyright 1999-2024 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=7 @@ -38,6 +38,7 @@ DEPEND="${RDEPEND}" PATCHES=( "${FILESDIR}"/${P}-unboundLexer.patch "${FILESDIR}"/${P}-shuffle.patch + "${FILESDIR}"/${P}-noWhich.patch ) ocamlnet_use_with() {
