On systems with a very long hostname (>34 chars), a2ps will fail because gethostname(3) reports ENOMEM when the user-supplied buffer is too small. The xgethostname() routine in lib/xgethostname.c doesn't handle this. Maybe it would be better to use MAXHOSTNAMELEN from <sys/param.h> and don't adapt the buffer size? The included patch fixes PR/26909. Fix: chdir to $A2PS_ROOTDIR/lib and patch -p0 the following lines: How-To-Repeat: Set host name of your machine to >34 chars and execute a2ps from the shell.
Responsible Changed From-To: freebsd-ports->chuckr Over to maintainer
Responsible Changed From-To: chuckr->freebsd-ports-bugs Chuck no longer maintains this port
Responsible Changed From-To: freebsd-ports-bugs->dinoex I will take care of it
State Changed From-To: open->closed committed, thanks.