From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: From: Juergen Beisert Date: Fri, 20 Jan 2012 10:09:31 +0100 References: <20120119214755.GF4854@pengutronix.de> <20120120073144.GH4854@pengutronix.de> <20120120073812.GD20430@pengutronix.de> In-Reply-To: <20120120073812.GD20430@pengutronix.de> MIME-Version: 1.0 Content-Disposition: inline Message-Id: <201201201009.31805.jbe@pengutronix.de> Subject: Re: [ptxdist] cross-compiling and uname 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 Cc: Robert Schwebel , Marc Kleine-Budde Robert Schwebel wrote: > On Fri, Jan 20, 2012 at 08:31:44AM +0100, Michael Olbrich wrote: > > On Fri, Jan 20, 2012 at 06:30:49AM +0100, Robert Schwebel wrote: > > > On Thu, Jan 19, 2012 at 10:47:55PM +0100, Michael Olbrich wrote: > > > > we had some patches lately about configure scripts etc. using > > > > uname to detect stuff. Why don't we create a fake > > > > ../sysroot-cross/bin/uname that produces the output we would > > > > expect on the target? This way we don't have to fix all those > > > > packages and we have on less source of host system information > > > > leaking into the build. > > > > > > Are there any host tools which do also run uname? I'd prefer > > > overwriting cached variables or something like that. > > > > That's why I want to place it in sysroot-cross/bin. That's not in PATH > > for hosttools. > > Hmm, I'm still not sure if this was side-effect free. However, leaving > it as it is will result in at least the same ammount of failures :-) > > Marc, do you have an oppinion? The autotools already deliver the correct values for the build host and the target host. The correct solution for these kind of failures in the buildsystem is to use the results of the autotools *correctly*. jbe -- Pengutronix e.K. | Juergen Beisert | Linux Solutions for Science and Industry | http://www.pengutronix.de/ | -- ptxdist mailing list ptxdist@pengutronix.de