NetBSD Problem Report #53959
From www@NetBSD.org Fri Feb 8 07:18:11 2019
Return-Path: <www@NetBSD.org>
Received: from mail.netbsd.org (mail.netbsd.org [199.233.217.200])
(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
(Client CN "mail.NetBSD.org", Issuer "mail.NetBSD.org CA" (not verified))
by mollari.NetBSD.org (Postfix) with ESMTPS id 4A5157A16A
for <gnats-bugs@gnats.NetBSD.org>; Fri, 8 Feb 2019 07:18:11 +0000 (UTC)
Message-Id: <20190208071810.9085C7A1D7@mollari.NetBSD.org>
Date: Fri, 8 Feb 2019 07:18:10 +0000 (UTC)
From: emilian.bold@gmail.com
Reply-To: emilian.bold@gmail.com
To: gnats-bugs@NetBSD.org
Subject: pkgsrc doesn't handle PATHs with space in them
X-Send-Pr-Version: www-1.0
>Number: 53959
>Category: pkg
>Synopsis: pkgsrc doesn't handle PATHs with space in them
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: rillig
>State: closed
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Fri Feb 08 07:20:00 +0000 2019
>Closed-Date: Fri Mar 20 06:30:17 +0000 2020
>Last-Modified: Fri Mar 20 06:30:17 +0000 2020
>Originator: Emilian Bold
>Release: All
>Organization:
>Environment:
Darwin 16.7.0 Darwin Kernel Version 16.7.0: Sun Oct 28 22:30:19 PDT 2018; root:xnu-3789.73.27~1/RELEASE_X86_64 x86_64
>Description:
pkgsrc seems to corrupt ${PATH} for paths that have space in them. This maket impossible to run executables from those folders.
>How-To-Repeat:
Add to your normal PATH (say in ~/.profile) some folder that has space in it:
PATH=$PATH:/Demo\ Folder/bin
Note how pkgsrc is unable to execute anything from that bin/ folder.
Echoing ${PATH} from the pkgsrc Makefile shows that the path space has been replaced by ':' so it was split in two paths.
/Demo:Folder/bin
>Fix:
Avoid folders with space in them.
>Release-Note:
>Audit-Trail:
From: "Roland Illig" <rillig@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc:
Subject: PR/53959 CVS commit: pkgsrc/regress/path
Date: Sun, 9 Feb 2020 22:28:58 +0000
Module Name: pkgsrc
Committed By: rillig
Date: Sun Feb 9 22:28:58 UTC 2020
Added Files:
pkgsrc/regress/path: spec
Log Message:
regress/path: demonstrate wrong handling of PATH directories with spaces
See PR pkg/53959.
To generate a diff of this commit:
cvs rdiff -u -r0 -r1.1 pkgsrc/regress/path/spec
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
From: "Roland Illig" <rillig@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc:
Subject: PR/53959 CVS commit: pkgsrc
Date: Sun, 9 Feb 2020 22:39:21 +0000
Module Name: pkgsrc
Committed By: rillig
Date: Sun Feb 9 22:39:21 UTC 2020
Modified Files:
pkgsrc/mk: bsd.pkg.mk
pkgsrc/regress/path: spec
Log Message:
mk/bsd.pkg.mk: support spaces in PATH directories
Fixes PR pkg/53959.
To generate a diff of this commit:
cvs rdiff -u -r1.2034 -r1.2035 pkgsrc/mk/bsd.pkg.mk
cvs rdiff -u -r1.1 -r1.2 pkgsrc/regress/path/spec
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
State-Changed-From-To: open->feedback
State-Changed-By: rillig@NetBSD.org
State-Changed-When: Sun, 09 Feb 2020 22:42:53 +0000
State-Changed-Why:
I fixed the most obvious place where spaces in the PATH are handled
incorrectly. Please update pkgsrc and try again.
Responsible-Changed-From-To: pkg-manager->rillig
Responsible-Changed-By: rillig@NetBSD.org
Responsible-Changed-When: Sun, 09 Feb 2020 22:43:14 +0000
Responsible-Changed-Why:
State-Changed-From-To: feedback->closed
State-Changed-By: rillig@NetBSD.org
State-Changed-When: Fri, 20 Mar 2020 06:30:17 +0000
State-Changed-Why:
Feedback timeout. The bug is fixed and it works for me now.
>Unformatted:
(Contact us)
$NetBSD: query-full-pr,v 1.46 2020/01/03 16:35:01 leot Exp $
$NetBSD: gnats_config.sh,v 1.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2020
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.