NetBSD Problem Report #46216

From www@NetBSD.org  Sat Mar 17 19:10:39 2012
Return-Path: <www@NetBSD.org>
Received: from mail.netbsd.org (mail.netbsd.org [149.20.53.66])
	by www.NetBSD.org (Postfix) with ESMTP id 1CC8963E199
	for <gnats-bugs@gnats.NetBSD.org>; Sat, 17 Mar 2012 19:10:39 +0000 (UTC)
Message-Id: <20120317191038.7DE9D63DF1F@www.NetBSD.org>
Date: Sat, 17 Mar 2012 19:10:38 +0000 (UTC)
From: slitvinov@gmail.com
Reply-To: slitvinov@gmail.com
To: gnats-bugs@NetBSD.org
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
>Organization:
>Environment:
>Description:
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/pkg_regress.sh:94
   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]

>How-To-Repeat:
Install pkgtools/pkg_regress
and run
pkg_regress

>Fix:
I added run-time dependencies on sysutils/mktemp in
pkgtools/pkg_regress/Makefile

NetBSD Home
NetBSD PR Database Search

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