NetBSD Problem Report #46216

From  Sat Mar 17 19:10:39 2012
Return-Path: <>
Received: from ( [])
	by (Postfix) with ESMTP id 1CC8963E199
	for <>; Sat, 17 Mar 2012 19:10:39 +0000 (UTC)
Message-Id: <>
Date: Sat, 17 Mar 2012 19:10:38 +0000 (UTC)
Subject: pkgtools/pkg_regress uses non-portable -t option of mktemp
X-Send-Pr-Version: www-1.0

>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 [deprecated]

Install pkgtools/pkg_regress
and run

I added run-time dependencies on sysutils/mktemp in

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD:,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2007 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.