From owner-freebsd-hackers@FreeBSD.ORG Mon Apr 1 16:45:27 2013 Return-Path: Delivered-To: hackers@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id EAEA322E; Mon, 1 Apr 2013 16:45:27 +0000 (UTC) (envelope-from kpaasial@gmail.com) Received: from mail-wi0-x22e.google.com (mail-wi0-x22e.google.com [IPv6:2a00:1450:400c:c05::22e]) by mx1.freebsd.org (Postfix) with ESMTP id 6067C233; Mon, 1 Apr 2013 16:45:27 +0000 (UTC) Received: by mail-wi0-f174.google.com with SMTP id hj8so1715263wib.13 for ; Mon, 01 Apr 2013 09:45:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:in-reply-to:references:date:message-id :subject:from:to:cc:content-type; bh=sdAITpJyHjoyXi/ZeddQtRyjkueRnu39kgdndp8Pwpo=; b=q70zzZDfavcV0yzjO5F6eV73fPEcIOiovEByrsozzr4lr4VFmJQ5FpvA0pGrTvrbSf z4x1VTcs6YERGyruXjIdGqFFgFAJc9fPzP+gDeCcR306snfXacyQ47f5c776Nxk6P1Pm tRpb8d2DcUEuju3V/pqAd0Sh2UqDDMe5jrbcCgJLPnjxq9ki52Wes/FY1buR3vJv9YNV tY7Tm5wSod06ssU+BMt2jib+TLWsUVWdSq7p0eeEevUQfcyQ81bn+0nufCdCDQRSNXEw TZUX9pDsyo4PX+8YYAYUkuahl5aymJ7TUAepqwUzm9xqtb1Ls07n0YAUhTF1/Kvj/jQz O9kQ== MIME-Version: 1.0 X-Received: by 10.180.73.6 with SMTP id h6mr10760888wiv.27.1364834725201; Mon, 01 Apr 2013 09:45:25 -0700 (PDT) Received: by 10.216.139.72 with HTTP; Mon, 1 Apr 2013 09:45:25 -0700 (PDT) In-Reply-To: References: <20130331.133829.093.1@DOMY-PC> <20130401.161353.972.1@DOMY-PC> Date: Mon, 1 Apr 2013 19:45:25 +0300 Message-ID: Subject: Re: Ports: make fails, if DESTDIR path has spaces From: Kimmo Paasiala To: Chris Rees Content-Type: text/plain; charset=UTF-8 Cc: rank1seeker@gmail.com, "freebsd-hackers@freebsd.org" 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 16:45:28 -0000 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