From robert@fledge.watson.org  Fri Mar  8 08:07:56 2002
Return-Path: <robert@fledge.watson.org>
Received: from fledge.watson.org (fledge.watson.org [204.156.12.50])
	by hub.freebsd.org (Postfix) with ESMTP id 4E35437B405
	for <FreeBSD-gnats-submit@freebsd.org>; Fri,  8 Mar 2002 08:07:55 -0800 (PST)
Received: (from robert@localhost)
	by fledge.watson.org (8.11.6/8.11.6) id g28G7m572647;
	Fri, 8 Mar 2002 11:07:48 -0500 (EST)
	(envelope-from robert)
Message-Id: <200203081607.g28G7m572647@fledge.watson.org>
Date: Fri, 8 Mar 2002 11:07:48 -0500 (EST)
From: Robert Watson <rwatson@freebsd.org>
Reply-To: Robert Watson <rwatson@freebsd.org>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: docproj Makefiles for web are broken for paths with spaces
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         35678
>Category:       docs
>Synopsis:       docproj Makefiles for web are broken for paths with spaces
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-doc
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri Mar 08 08:10:01 PST 2002
>Closed-Date:    Mon May 07 03:49:53 UTC 2012
>Last-Modified:  Mon May 07 03:49:53 UTC 2012
>Originator:     Robert Watson
>Release:        FreeBSD 5.0-CURRENT i386
>Organization:
NAI Labs, FreeBSD Project
>Environment:
System: FreeBSD sproing.gw.tislabs.com 5.0-CURRENT FreeBSD 5.0-CURRENT #2: Tue Jan 15 11:18:08 EST 2002     rwatson@sproing.gw.tislabs.com:/usr/obj/usr/src/sys/SPROING  i386

docproj-1.9         The "meta-port" for the FreeBSD Documentation Project

>Description:

When building a web page using sgml, if any segment of the file system path
for the working directory contains a space or other irregular character,
things get broken.

>How-To-Repeat:

  sproing:~/Operating Systems/FreeBSD/commit/www/en/smp> make
  /usr/bin/sed -e 's/<!ENTITY date[ \t]*"$Free[B]SD. .* \(.* .*\) .* .* $">/<!ENTITY date "Last modified: \1">/'  index.sgml |  /usr/bin/env SGML_CATALOG_FILES=  /usr/local/bin/sgmlnorm -d  -c /usr/local/share/sgml/html/catalog -D /home/rwatson/Operating Systems/FreeBSD/commit/www/en/smp > index.html ||  (/bin/rm -f index.html && false)
  /usr/local/bin/sgmlnorm:E: cannot find "Systems/FreeBSD/commit/www/en/smp"; tried "Systems/FreeBSD/commit/www/en/smp", "/home/rwatson/Operating/Systems/FreeBSD/commit/www/en/smp"
  *** Error code 1

  Stop in /home/rwatson/Operating Systems/FreeBSD/commit/www/en/smp.

Note that it used "Systems/FreeBSD...." indicating that a command line
broke the path into two seperate strings.

>Fix:
>Release-Note:
>Audit-Trail:

From: Peter Pentchev <roam@ringlet.net>
To: Robert Watson <rwatson@freebsd.org>
Cc: FreeBSD-gnats-submit@freebsd.org
Subject: Re: docs/35678: docproj Makefiles for web are broken for paths with spaces
Date: Mon, 11 Mar 2002 13:43:21 +0200

 On Fri, Mar 08, 2002 at 11:07:48AM -0500, Robert Watson wrote:
 > 
 > >Number:         35678
 > >Category:       docs
 > >Synopsis:       docproj Makefiles for web are broken for paths with spaces
 > >Originator:     Robert Watson
 > >Environment:
 > System: FreeBSD sproing.gw.tislabs.com 5.0-CURRENT FreeBSD 5.0-CURRENT #2: Tue Jan 15 11:18:08 EST 2002     rwatson@sproing.gw.tislabs.com:/usr/obj/usr/src/sys/SPROING  i386
 > 
 > docproj-1.9         The "meta-port" for the FreeBSD Documentation Project
 > 
 > >Description:
 > 
 > When building a web page using sgml, if any segment of the file system path
 > for the working directory contains a space or other irregular character,
 > things get broken.
 
 This is not really specific to docproj, though, is it?  I would think
 that this happens in any Makefile that refers to either the current
 directory or some working directory or some file by an absolute path.
 This stems directly from make(1)'s use of sh(1) to execute commands;
 I do not think it can be easily fixed :(
 
 Just as an example..
 
 [roam@straylight:v0 /Op Sys/FreeBSD/src/bin/mkdir]$ make cleandir
 cd: can't cd to /Op
 *** Error code 2
 
 Stop in /Op Sys/FreeBSD/src/bin/mkdir.
 [roam@straylight:v0 /Op Sys/FreeBSD/src/bin/mkdir]$ make -dl cleandir
 cd /Op Sys/FreeBSD/src/bin/mkdir && make clean cleandepend
 cd: can't cd to /Op
 *** Error code 2
 
 Stop in /Op Sys/FreeBSD/src/bin/mkdir.
 [roam@straylight:v0 /Op Sys/FreeBSD/src/bin/mkdir]$
 
 ..so it affects the source tree as well.
 
 G'luck,
 Peter
 
 -- 
 Peter Pentchev	roam@ringlet.net	roam@FreeBSD.org
 PGP key:	http://people.FreeBSD.org/~roam/roam.key.asc
 Key fingerprint	FDBA FD79 C26F 3C51 C95E  DF9E ED18 B68D 1619 4553
 What would this sentence be like if pi were 3?
State-Changed-From-To: open->closed 
State-Changed-By: trhodes 
State-Changed-When: Sun Jan 26 21:28:29 PST 2003 
State-Changed-Why:  
This is not a problem specific to the doc project.  In fact I don't think 
this is a bug at all, its a conflict of using make(1) with absolute paths. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=35678 
State-Changed-From-To: closed->suspended 
State-Changed-By: trhodes 
State-Changed-When: Thu Jan 30 15:24:38 PST 2003 
State-Changed-Why:  
Reopen. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=35678 
State-Changed-From-To: suspended->closed 
State-Changed-By: eadler 
State-Changed-When: Mon May 7 03:49:52 UTC 2012 
State-Changed-Why:  
Not A Bug 

http://www.freebsd.org/cgi/query-pr.cgi?pr=35678 
>Unformatted:
