From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Message-ID: <4F1927A0.7080201@pengutronix.de> Date: Fri, 20 Jan 2012 09:36:48 +0100 From: Marc Kleine-Budde MIME-Version: 1.0 References: <20120119214755.GF4854@pengutronix.de> <20120120053049.GC20430@pengutronix.de> <20120120073144.GH4854@pengutronix.de> <20120120073812.GD20430@pengutronix.de> In-Reply-To: <20120120073812.GD20430@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: multipart/mixed; boundary="===============1432576604==" Sender: ptxdist-bounces@pengutronix.de Errors-To: ptxdist-bounces@pengutronix.de To: Robert Schwebel Cc: ptxdist@pengutronix.de This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --===============1432576604== Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enig82CF7EF5F91FBBC4FE0A4B04" This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig82CF7EF5F91FBBC4FE0A4B04 Content-Type: text/plain; charset=ISO-8859-15 Content-Transfer-Encoding: quoted-printable On 01/20/2012 08:38 AM, 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. >=20 > 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 :-) >=20 > Marc, do you have an oppinion? We cannot overwrite uname, because even configure with --host and --build uses uname: $ strace -o log -e execve -f ./configure --host=3Dx86_64-unknown-linux-gn= u --build=3Dx86_64-unknown-linux-gnu $ grep uname log 1610 execve("/bin/uname", ["uname", "-m"], [/* 51 vars */]) =3D 0 1612 execve("/bin/uname", ["uname", "-r"], [/* 51 vars */]) =3D 0 1614 execve("/bin/uname", ["uname", "-s"], [/* 51 vars */]) =3D 0 1616 execve("/bin/uname", ["uname", "-v"], [/* 51 vars */]) =3D 0 1618 execve("/usr/bin/uname", ["/usr/bin/uname", "-p"], [/* 51 vars */])= =3D -1 ENOENT (No such file or directory) 1620 execve("/bin/uname", ["/bin/uname", "-X"], [/* 51 vars */]) =3D 0 Marc --=20 Pengutronix e.K. | Marc Kleine-Budde | Industrial Linux Solutions | Phone: +49-231-2826-924 | Vertretung West/Dortmund | Fax: +49-5121-206917-5555 | Amtsgericht Hildesheim, HRA 2686 | http://www.pengutronix.de | --------------enig82CF7EF5F91FBBC4FE0A4B04 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAk8ZJ6AACgkQjTAFq1RaXHNmYwCfeQ7xqJLPKE2gvipM+JV+nUMx fTUAn17B2B7Ei0gAe8n7WXquRgS7qZom =eHyL -----END PGP SIGNATURE----- --------------enig82CF7EF5F91FBBC4FE0A4B04-- --===============1432576604== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline -- ptxdist mailing list ptxdist@pengutronix.de --===============1432576604==--