The port currently installs two shell scripts named ug+ and ugrep+ that
refer to /bin/bash.
I was thinking about proposing a dependency on bash, but we'd still need
to patch the two scripts that look to me like perfectly fine Posix sh,
so I propose to patch them to use /bin/sh
Thoughts? OK?
cheers,
Volker
Index: Makefile
===================================================================
RCS file: /cvs/ports/sysutils/ugrep/Makefile,v
retrieving revision 1.43
diff -u -p -r1.43 Makefile
--- Makefile 14 Aug 2023 21:21:46 -0000 1.43
+++ Makefile 15 Aug 2023 15:48:57 -0000
@@ -5,6 +5,8 @@ GH_ACCOUNT = Genivia
GH_PROJECT = ugrep
GH_TAGNAME = v3.12.7
+REVISION = 0
+
MAINTAINER = Brian Callahan <bcal...@openbsd.org>
# BSD
Index: patches/patch-bin_ug+
===================================================================
RCS file: patches/patch-bin_ug+
diff -N patches/patch-bin_ug+
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ patches/patch-bin_ug+ 15 Aug 2023 15:48:57 -0000
@@ -0,0 +1,9 @@
+Index: bin/ug+
+--- bin/ug+.orig
++++ bin/ug+
+@@ -1,4 +1,4 @@
+-#!/bin/bash
++#!/bin/sh
+ filters=
+ if [ -x "$(command -v pdftotext)" ] && pdftotext --help 2>&1 | ugrep -qw Poppler ; then
+ filters="${filters}${filters:+,}pdf:pdftotext % -"
Index: patches/patch-bin_ugrep+
===================================================================
RCS file: patches/patch-bin_ugrep+
diff -N patches/patch-bin_ugrep+
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ patches/patch-bin_ugrep+ 15 Aug 2023 15:48:57 -0000
@@ -0,0 +1,9 @@
+Index: bin/ugrep+
+--- bin/ugrep+.orig
++++ bin/ugrep+
+@@ -1,4 +1,4 @@
+-#!/bin/bash
++#!/bin/sh
+ filters=
+ if [ -x "$(command -v pdftotext)" ] && pdftotext --help 2>&1 | ugrep -qw Poppler ; then
+ filters="${filters}${filters:+,}pdf:pdftotext % -"