summaryrefslogtreecommitdiff
path: root/sys-block/mbuffer/files/mbuffer-20230301-which.patch
diff options
context:
space:
mode:
Diffstat (limited to 'sys-block/mbuffer/files/mbuffer-20230301-which.patch')
-rw-r--r--sys-block/mbuffer/files/mbuffer-20230301-which.patch23
1 files changed, 23 insertions, 0 deletions
diff --git a/sys-block/mbuffer/files/mbuffer-20230301-which.patch b/sys-block/mbuffer/files/mbuffer-20230301-which.patch
new file mode 100644
index 000000000000..89054d646faf
--- /dev/null
+++ b/sys-block/mbuffer/files/mbuffer-20230301-which.patch
@@ -0,0 +1,23 @@
+--- a/mkversion.sh
++++ b/mkversion.sh
+@@ -21,9 +21,9 @@
+
+ VERSION_H=${1:-version.h}
+ NEWFILE=`mktemp -t version.h.XXXXXXXXXX`
+-SED=`which gsed 2> /dev/null`
++SED=`command -v gsed 2> /dev/null`
+ if [ $? != 0 ]; then
+- SED=`which sed`
++ SED=`command -v sed`
+ fi
+
+ vinfo=0
+@@ -51,7 +51,7 @@ if [ -f .hg_archival.txt ]; then
+ rm $NEWFILE
+ fi
+ elif [ -d .hg ]; then
+- HG=${HG:-`which hg`}
++ HG=${HG:-`command -v hg`}
+ if [ "$?" == "0" ]; then
+ # Check if we have modified, removed, added or deleted files.
+ if [ `$HG st -mard | wc -l` != "0" ]; then