NetBSD Problem Report #15755

Received: (qmail 5488 invoked from network); 27 Feb 2002 23:50:49 -0000
Message-Id: <20020227235046.D17181E4FE@thoreau.thistledown.com.au>
Date: Thu, 28 Feb 2002 10:50:46 +1100 (EST)
From: simonb@wasabisystems.com
Sender: simonb@thistledown.com.au
Reply-To: simonb@wasabisystems.com
To: gnats-bugs@gnats.netbsd.org
Subject: warning when strange file names present during pkg installation
X-Send-Pr-Version: 3.95

>Number:         15755
>Category:       pkg
>Synopsis:       warning when strange file names present during pkg installation
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    agc
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Feb 27 23:51:00 +0000 2002
>Closed-Date:    Thu Feb 28 11:10:26 +0000 2002
>Last-Modified:  Wed May 13 13:16:30 +0000 2015
>Originator:     Simon Burge
>Release:        NetBSD 1.5.3_ALPHA
>Organization:
Wasabi Systems
>Environment:
System: NetBSD thoreau.thistledown.com.au 1.5.3_ALPHA NetBSD 1.5.3_ALPHA
(THOREAU) #43: Thu Jan 31 12:58:54 EST 2002
simonb@thoreau.thistledown.com.au:/usr/obj/sys/arch/alpha/compile/THOREAU alpha

>Description:
	If there's a file name that contains spaces in the pkg directory
	you'll get a warning along the lines of

		[: bar: unexpected operator

	during package installation.

	This starts around line 3480 of bsd.pkg.mk where there's

		for f in ${.CURDIR}/Makefile ${FILESDIR}/* ${PKGDIR}/*; do
			if [ -f $$f ]; then

	which isn't happy if any $f contains a space.  Simply double quoting
	the "$$f" results in problems further along.

>How-To-Repeat:
	Try

		cd /usr/pkgsrc/<cat>/<pkg>
		touch 'foo bar'
		make install

	and you'll see

		[: bar: unexpected operator

	just before the "===> Registering installation for ..." line
>Fix:
	Non given.
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: agc 
State-Changed-When: Thu Feb 28 03:09:16 PST 2002 
State-Changed-Why:  
agc fixed bsd.pkg.mk so that a filename with a space in it is not 
a problem. 

Thanks for the PR. 


Responsible-Changed-From-To: pkg-manager->agc 
Responsible-Changed-By: agc 
Responsible-Changed-When: Thu Feb 28 03:09:16 PST 2002 
Responsible-Changed-Why:  
agc took responsibility for this one. 

>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.