From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from smtprelay06.ispgateway.de ([80.67.31.95]) by metis.ext.pengutronix.de with esmtp (Exim 4.72) (envelope-from ) id 1REjIX-00064X-LG for ptxdist@pengutronix.de; Fri, 14 Oct 2011 17:03:46 +0200 Received: from [78.47.165.117] (helo=regiomontanus.bwalle.de) by smtprelay06.ispgateway.de with esmtpsa (TLSv1:AES128-SHA:128) (Exim 4.68) (envelope-from ) id 1REjIX-00086a-7g for ptxdist@pengutronix.de; Fri, 14 Oct 2011 17:03:45 +0200 Date: Fri, 14 Oct 2011 17:03:43 +0200 From: Bernhard Walle Message-ID: <20111014150343.GA31488@regiomontanus.bwalle.de> References: <1317833666-11917-1-git-send-email-andreas@biessmann.de> <1318262696-584-1-git-send-email-m.olbrich@pengutronix.de> <8d386ec882c49464e95a77a4f92dc68b@biessmann.de> <20111014140434.GE4886@pengutronix.de> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20111014140434.GE4886@pengutronix.de> Subject: Re: [ptxdist] [PATCH] libptxdist: explicitly use sed to run migrate_* Reply-To: ptxdist@pengutronix.de List-Id: PTXdist Development Mailing List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: ptxdist-bounces@pengutronix.de Errors-To: ptxdist-bounces@pengutronix.de To: ptxdist@pengutronix.de Hi, * Michael Olbrich [2011-10-14 16:04]: > Hmmm, I just had another idea: How about fixing the environment in ptxdist: > > mkdir / > ln -s @PYTHON@ /python > ln -s @SED@ /sed > [...] > export PATH=:$PATH > [...] > > just do this as early as possible in ptxdist and PATH will provide the > correct tools. Do you think that could work? That's what I'm doing in the Arch Linux ptxdist package [1]. Arch Linux has /usr/bin/python pointing to /usr/bin/python3 instead of python2. There's a configure flag for ptxdist and Python, but that doesn't work. I sent a patch [2], but even that patch doesn't fix everything (there's still some ipkg problem). Because I was too lazy I changed it that way (modifying PATH). I'm doing ----- 8< -------- export PATH=$(dirname $(readlink -f "$0")):$PATH ----- >8 -------- which inclues /usr/lib/ptxdist-2011.xx.y/bin into $PATH and that works. It's not really nice, but I think it's better than patching lots of tools. And having scripts as executable programs is IMO still better than having to call the interpreter manually (which is necessary with your $PTXDIST_SED approach. Regards, Bernhard [1] http://aur.archlinux.org/packages.php?ID=49649 [2] http://www.mail-archive.com/ptxdist@pengutronix.de/msg04264.html -- ptxdist mailing list ptxdist@pengutronix.de