pkgsrc-Bugs archive

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

pkg/46216: pkgtools/pkg_regress uses non-portable -t option of mktemp

>Number:         46216
>Category:       pkg
>Synopsis:       pkgtools/pkg_regress uses non-portable -t option of mktemp
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sat Mar 17 19:15:01 +0000 2012
>Originator:     Litvinov Sergey
>Release:        Ubuntu Linux
pkg_regress fails to run tests with the following message
   mktemp: too few X's in template `pkg_regress'

This is a relevant line in pkgtools/pkg_regress/files/
   TEST_OUTFILE=`mktemp -t pkg_regress` || exit 1

mktemp --version
mktemp (GNU coreutils) 8.5

Also a man page says "-t" is deprecated
   -t     interpret TEMPLATE as a single file name component, relative to a 
directory: $TMPDIR, if  set; else the directory specified via -p; else /tmp 

Install pkgtools/pkg_regress
and run

I added run-time dependencies on sysutils/mktemp in

Home | Main Index | Thread Index | Old Index