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, 7 Apr 2023, John D. Baker wrote:

> On Fri, 7 Apr 2023, John D. Baker wrote:
> 
> > Looking at 'ktrace -i ...' of a typical call, it looks like NetBSD's
> > 'getopt' is doing something wrong.  The script 'a2ps-lpr-wrapper'
> > contains:
> > 
> > TEMP=$(getopt -o d: -n 'a2ps-lpr-wrapper' -- "$@")
> 
> The syntax above is wrong for NetBSD's 'getopt'.  The "-o" before the

So, 'a2ps-lpr-wrapper' is assuming that 'getopt' is the one from the
"util-linux" package.  According to its manpage, that implementation
of 'getopt' should accept syntax compatible with NetBSD's 'getopt',
so perhaps a patch that changes that line to:

  TEMP=$(getopt d: -- "$@")

will be sufficient for all platforms?

-- 
|/"\ 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