[Buildroot] [PATCH] ext-toolchain-wrapper: fix paths if executable was resolved by PATH

Thomas Petazzoni thomas.petazzoni at free-electrons.com
Fri May 31 15:25:22 UTC 2013


Dear Patrick Ziegler,

On Wed, 29 May 2013 11:41:19 +0200, Patrick Ziegler wrote:
> If ext-toolchain-wrapper or any symbolic link to it was resolved by PATH,
> the wrapper takes the working directory to calculate the relative paths.
> 
> Now '/proc/self/exe' is used to resolve the absolute path to the toolchain
> directory if the wrapper was called neither with a relative nor an absolute
> path.
> 
> Signed-off-by: Patrick Ziegler <patrick.ziegler at fh-kl.de>

Tested-by: Thomas Petazzoni <thomas.petazzoni at free-electrons.com>

This should be part of 2013.05 if it's not too late, since it fixes a
real problem. My colleague Gregory (Cc'ed) was hit by the problem, and
both of us confirmed that this patch is fixing the problem.

Best regards,

Thomas
-- 
Thomas Petazzoni, Free Electrons
Kernel, drivers, real-time and embedded Linux
development, consulting, training and support.
http://free-electrons.com



More information about the buildroot mailing list