pkgsrc-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: print/a2ps from pkgsrc-2023Q1 broken.



On Fri, 14 Apr 2023, John D. Baker wrote:

>   https://savannah.gnu.org/bugs/?64047

Meanwhile, here's a patch:

+--- src/a2ps-lpr-wrapper.orig	2023-04-12 09:34:45.000000000 -0500
++++ src/a2ps-lpr-wrapper	2023-04-14 14:34:35.103573502 -0500
+@@ -5,7 +5,7 @@
+ set -e
+ 
+ usage() {
+-  echo "Usage: $(basename "$0") [-d printer] FILE..." >&2
++  echo "Usage: $(basename "$0") [-d printer] [FILE...]" >&2
+   exit 1
+ }
+ 
+@@ -17,7 +17,6 @@ while getopts d: flag; do
+   esac
+ done
+ shift $((OPTIND - 1))
+-if [ $# -eq 0 ]; then usage; fi
+ 
+ # If lp (from CUPS) exists, just use it.
+ if command -pv lp > /dev/null; then

-- 
|/"\ John D. Baker, KN5UKS               NetBSD     Darwin/MacOS X
|\ / jdbaker[snail]consolidated[flyspeck]net  OpenBSD            FreeBSD
| X  No HTML/proprietary data in email.   BSD just sits there and works!
|/ \ GPGkeyID:  D703 4A7E 479F 63F8 D3F4  BD99 9572 8F23 E4AD 1645


Home | Main Index | Thread Index | Old Index