Subject: pkg/32834: pkg_chk fails with IRIX default ksh
To: None <pkg-manager@netbsd.org, gnats-admin@netbsd.org,>
From: None <stuart@zeus.com>
List: pkgsrc-bugs
Date: 02/14/2006 12:45:00
>Number:         32834
>Category:       pkg
>Synopsis:       pkg_chk fails with IRIX default ksh
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Feb 14 12:45:00 +0000 2006
>Originator:     Stuart Shelton
>Release:        n/a
>Organization:
>Environment:
IRIX64 octane 6.5 07010238 IP30
>Description:

pkg_chk fails with:

$ pkg_chk -sun
Merging in previous /usr/bsd/src/pkgchk_update.conf
String archivers/ ... too long at source line 1
String archivers/ ... too long at source line 1
String archivers/ ... too long at source line 1

... which comes from line 770:

PKGDIRLIST="$(pkgdirs_from_conf $PKGCHK_UPDATE_CONF $PKGDIRLIST)"

... where $PKGDIRLIST is a 1599 character value.

The problem is that the IRIX default ksh doesn't seem to be able to handle variables of this length (bash is fine with them), and the ast-ksh package won't build (pkg/32833).

The bigger problem here is that any other part of pkgsrc which relies on ksh could also be similarly affected.
>How-To-Repeat:

pkg_chk -sun
>Fix:

Since ksh doesn't build from pkgsrc, I'll try to grab the binary version and confirm whether pkg_chk works with an up to date ksh.