Re: [OE-core] [PATCH 7/8] autotools.bbclass: use relative path to run configure script

2015-10-13 Thread Paul Eggleton
On Tuesday 13 October 2015 15:17:45 Robert Yang wrote: > On 10/13/2015 03:08 PM, Paul Eggleton wrote: > > On Friday 09 October 2015 19:30:07 Robert Yang wrote: > >> On 10/09/2015 06:51 PM, Burton, Ross wrote: > >>> On 9 October 2015 at 02:28, Robert Yang >>> > >>>

Re: [OE-core] [PATCH 7/8] autotools.bbclass: use relative path to run configure script

2015-10-13 Thread Robert Yang
On 10/13/2015 03:08 PM, Paul Eggleton wrote: On Friday 09 October 2015 19:30:07 Robert Yang wrote: On 10/09/2015 06:51 PM, Burton, Ross wrote: On 9 October 2015 at 02:28, Robert Yang mailto:liezhi.y...@windriver.com>> wrote: I'm afraid that realpath is not generally existed on the build

Re: [OE-core] [PATCH 7/8] autotools.bbclass: use relative path to run configure script

2015-10-13 Thread Paul Eggleton
On Friday 09 October 2015 19:30:07 Robert Yang wrote: > On 10/09/2015 06:51 PM, Burton, Ross wrote: > > On 9 October 2015 at 02:28, Robert Yang > > > > wrote: > > I'm afraid that realpath is not generally existed on the build host ? > > > > It's part of core

Re: [OE-core] [PATCH 7/8] autotools.bbclass: use relative path to run configure script

2015-10-09 Thread Robert Yang
On 10/09/2015 06:51 PM, Burton, Ross wrote: On 9 October 2015 at 02:28, Robert Yang mailto:liezhi.y...@windriver.com>> wrote: I'm afraid that realpath is not generally existed on the build host ? It's part of coreutils on my Debian stable box. I guess the real question is "does it exis

Re: [OE-core] [PATCH 7/8] autotools.bbclass: use relative path to run configure script

2015-10-09 Thread Burton, Ross
On 9 October 2015 at 02:28, Robert Yang wrote: > I'm afraid that realpath is not generally existed on the build host ? > It's part of coreutils on my Debian stable box. I guess the real question is "does it exist on Centos 6?". [looks]. Hmm, it's not present on that. Ross -- ___

Re: [OE-core] [PATCH 7/8] autotools.bbclass: use relative path to run configure script

2015-10-08 Thread Robert Yang
Hi Chris and Ross, On 10/09/2015 05:06 AM, Burton, Ross wrote: On 8 October 2015 at 22:00, Christopher Larson mailto:clar...@kergoth.com>> wrote: + # Use relative path for S to avoid buildpaths in files + relative_s=`python -c "import os; print

Re: [OE-core] [PATCH 7/8] autotools.bbclass: use relative path to run configure script

2015-10-08 Thread Burton, Ross
On 8 October 2015 at 22:00, Christopher Larson wrote: > + # Use relative path for S to avoid buildpaths in files >>> + relative_s=`python -c "import os; print os.path.relpath('${S}', >>> '.')"` >>> + cfgscript="$relative_s/configure" >>> >> >> Why not just use inline python here

Re: [OE-core] [PATCH 7/8] autotools.bbclass: use relative path to run configure script

2015-10-08 Thread Christopher Larson
On Thu, Oct 8, 2015 at 2:00 PM, Christopher Larson wrote: > On Thu, Oct 8, 2015 at 6:16 AM, Robert Yang > wrote: > >> oe_runconf () { >> - cfgscript="${S}/configure" >> + # Use relative path for S to avoid buildpaths in files >> + relative_s=`python -c "import os; print os.pat

Re: [OE-core] [PATCH 7/8] autotools.bbclass: use relative path to run configure script

2015-10-08 Thread Christopher Larson
On Thu, Oct 8, 2015 at 6:16 AM, Robert Yang wrote: > oe_runconf () { > - cfgscript="${S}/configure" > + # Use relative path for S to avoid buildpaths in files > + relative_s=`python -c "import os; print os.path.relpath('${S}', > '.')"` > + cfgscript="$relative_s/configure

[OE-core] [PATCH 7/8] autotools.bbclass: use relative path to run configure script

2015-10-08 Thread Robert Yang
The absolute path (/path/to/configure) caused VPATH in Makefile to be an absolute path, and then it will be in elf files, use relative path to run configure can fix the problem. This will reduce 3127 buildpaths QA issues in a world buld (8957 -> 5830). [YOCTO #8437] Signed-off-by: Robert Yang -