From owner-freebsd-hackers@FreeBSD.ORG Mon Apr 1 21:14:34 2013 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 323CEE9A for ; Mon, 1 Apr 2013 21:14:34 +0000 (UTC) (envelope-from jrisom@gmail.com) Received: from mail-ob0-x234.google.com (mail-ob0-x234.google.com [IPv6:2607:f8b0:4003:c01::234]) by mx1.freebsd.org (Postfix) with ESMTP id F2D2C1A1 for ; Mon, 1 Apr 2013 21:14:33 +0000 (UTC) Received: by mail-ob0-f180.google.com with SMTP id wo10so2276461obc.11 for ; Mon, 01 Apr 2013 14:14:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:message-id:date:from:user-agent:mime-version:to:subject :references:in-reply-to:content-type:content-transfer-encoding; bh=LuJtrvGspIiQ8KWCx34s8cv3Vdl7M1r9sQ/cJgdSSGs=; b=k62kGGTlTqXEzL8+ZZj2KfdzAFnHlJj6aLFjSiwF6GXFClMB1TyS3beI735ToDg0iq G3lGACMhjd59Q5NX9fYH6xPtNJjf4msH8EGPHDed4XRZ07+eOsa+cdqbTluUMN+yRuje EScAfojwbOof9LxzLyRLlKEzzdMQnuFAW2V4WYKfcKyVJBZlUwE+bgkL/Efk/MjFB+OU PjOHSfb9dZHZFPuUsey6zCtp/6NKH2sKTijbYqHHDk/QzdR3BlPxXIqk+bSCDz9LgrST tXsMjht3cHMaK632iMQ6lXBtgZdr/ETMKHeb0FzzxDE5qcqNeptZejeQjRk3uVoJGq2A KIZg== X-Received: by 10.60.37.68 with SMTP id w4mr3808698oej.62.1364850873032; Mon, 01 Apr 2013 14:14:33 -0700 (PDT) Received: from [192.168.1.34] (c-98-212-197-211.hsd1.il.comcast.net. [98.212.197.211]) by mx.google.com with ESMTPS id n1sm2751547obc.10.2013.04.01.14.14.31 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 01 Apr 2013 14:14:32 -0700 (PDT) Message-ID: <5159F8B1.9010405@gmail.com> Date: Mon, 01 Apr 2013 16:14:25 -0500 From: Joshua Isom User-Agent: Mozilla/5.0 (Windows NT 6.2; WOW64; rv:17.0) Gecko/20130307 Thunderbird/17.0.4 MIME-Version: 1.0 To: freebsd-hackers@freebsd.org Subject: Re: Ports: make fails, if DESTDIR path has spaces References: <20130331.133829.093.1@DOMY-PC> <20130401.161353.972.1@DOMY-PC> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 01 Apr 2013 21:14:34 -0000 On 4/1/2013 11:45 AM, Kimmo Paasiala wrote: > On Mon, Apr 1, 2013 at 7:30 PM, Chris Rees wrote: >> On 1 April 2013 17:13, wrote: >>>> Try "DESTDIR='/usr/TZ\ ONE'; export DESTDIR". >>>> >>>> You need to escape the space. >>> >>> This is '#!/bin/sh' scripting. >>> Doing so "fixes" *.mk, but breaks sh => dir simply doesn't exist anymore. >>> >>> Matthias && Chris => *.mk is at fault here, for not supporting FreeBSD's >>> full range of chars for dir paths >> >> As I explained before, Makefiles and sh have a strange relationship, >> where escaping is similar but different in weird places. >> >> Unless you are an expert, you should not use spaces in pathnames. >> Stop doing it; the ports system is not designed around them. >> > > You could work around the problem by using an external program to do > all the expanding and globbing, it would guarantee that the expansions > are done the same way always and special characters treated in uniform > way. > > -Kimmo Or use a symbolic link to point to the named directory, probably.