diff options
author | gutteridge <gutteridge@pkgsrc.org> | 2022-06-11 02:55:14 +0000 |
---|---|---|
committer | gutteridge <gutteridge@pkgsrc.org> | 2022-06-11 02:55:14 +0000 |
commit | 89bf54e53ccc897b352bd3d79ba2dd5a712b28f0 (patch) | |
tree | 48c00ed4213be62804720e772c86a45efc8aae6b /textproc/rarian/patches/patch-util_rarian-sk-update.in | |
parent | 0062779232726c836a02ce2f3c28bf30d4f027aa (diff) | |
download | pkgsrc-89bf54e53ccc897b352bd3d79ba2dd5a712b28f0.tar.gz |
rarian: avoid unnecessary error output
This package expects GNU getopt, as it uses the -n option. Restore a
patch that addresses this, so we don't get a bunch of logging spam from
non-GNU versions during the install phase of various dependant packages.
(The package already explicitly depends on GNU getopt from pkgsrc.)
Addresses PR pkg/56871 from Yasushi Oshima, who provided the analysis.
Diffstat (limited to 'textproc/rarian/patches/patch-util_rarian-sk-update.in')
-rw-r--r-- | textproc/rarian/patches/patch-util_rarian-sk-update.in | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/textproc/rarian/patches/patch-util_rarian-sk-update.in b/textproc/rarian/patches/patch-util_rarian-sk-update.in new file mode 100644 index 00000000000..ca78f8f915f --- /dev/null +++ b/textproc/rarian/patches/patch-util_rarian-sk-update.in @@ -0,0 +1,24 @@ +$NetBSD: patch-util_rarian-sk-update.in,v 1.1 2022/06/11 02:55:14 gutteridge Exp $ + +Use the GNU version of getopt, so the -n option is available. Avoids +significant output spamming from versions of getopt that don't support +it, e.g., the version NetBSD includes in base. + +--- util/rarian-sk-update.in.orig 2008-09-01 18:40:21.000000000 +0000 ++++ util/rarian-sk-update.in +@@ -264,7 +264,7 @@ process_directory () + # They are inherited from scrollkeeper :( + + # We use TEMP as set -- seems to nuke the return value of getopt +-TEMP=`getopt -u -n$(basename $0) -o "o:r:p:vqnhV" \ ++TEMP=`${prefix}/bin/getopt -u -n$(basename $0) -o "o:r:p:vqnhV" \ + -- "$@"` \ + || print_usage + +@@ -422,4 +422,4 @@ then + fi + rm -rf $tmpdir + +-fi # ENABLE_OMF_READ +\ No newline at end of file ++fi # ENABLE_OMF_READ |