<div dir="ltr">On 12 December 2017 at 14:03, Stefan Agner <span dir="ltr"><<a href="mailto:stefan@agner.ch" target="_blank">stefan@agner.ch</a>></span> wrote:<br><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex"><div class="gmail-HOEnZb"><div class="gmail-h5">On 2017-12-12 15:00, Burton, Ross wrote:<br>
<br>
> On 12 December 2017 at 13:27, Stefan Agner <<a href="mailto:stefan@agner.ch">stefan@agner.ch</a>> wrote:<br>
><br>
>> On some build hosts distros (e.g. Fedora 26) waf tries to be<br>
>> smart about libdir detection and defaults to [EXEC_PREFIX/lib64].<br>
>> This obviously is not what we want for 32-bit targets and usually<br>
>> fails in the do_package phase:<br>
>> WARNING: gstreamer1.0-plugins-imx-0.13.<wbr>0-r0 do_package: QA Issue: gstreamer1.0-plugins-imx: Files/directories were installed but not shipped in any package:<br>
>> /usr/lib64/libgstimxcommon.so.<wbr>0<br>
>><br>
>> Waf knows prefix, bindir and libdir as default options. Explicitly<br>
>> pass those three.<br>
><br>
> Obviously not.<br>
><br>
> ERROR: eglinfo-x11-1.0.0-r0 do_configure: Function failed: do_configure (log file is located at /data/poky-tmp/master/build/<wbr>work/corei7-64-poky-linux/<wbr>eglinfo-x11/1.0.0-r0/temp/log.<wbr>do_configure.17278)<br>
> ERROR: Logfile of failure stored in: /data/poky-tmp/master/build/<wbr>work/corei7-64-poky-linux/<wbr>eglinfo-x11/1.0.0-r0/temp/log.<wbr>do_configure.17278<br>
> Log data follows:<br>
> | DEBUG: Executing shell function do_configure<br>
> | waf [commands] [options]<br>
> |<br>
> | Main commands (example: ./waf build -j4)<br>
> | build : executes the build<br>
> | clean : cleans the project<br>
> | configure: configures the project<br>
> | dist : makes a tarball for redistributing the sources<br>
> | distcheck: checks if the project compiles (tarball from 'dist')<br>
> | distclean: removes the build directory<br>
> | install : installs the targets on the system<br>
> | list : lists the targets to execute<br>
> | step : executes tasks in a step-by-step fashion, for debugging<br>
> | uninstall: removes the targets installed<br>
> | update : updates the plugins from the *waflib/extras* directory<br>
> |<br>
> | waf: error: no such option: --bindir<br>
><br>
<br>
</div></div>Hm, eglinfo seems to come with a old waf version, 1.7.8 to be specific.<br>
<br>
It seems bindir/libdir got added in 1.8 series:<br>
<a href="https://github.com/waf-project/waf/blob/waf-1.8/waflib/Options.py" rel="noreferrer" target="_blank">https://github.com/waf-<wbr>project/waf/blob/waf-1.8/<wbr>waflib/Options.py</a><br>
<br>
Make version specific variables?<br></blockquote><div><br></div><div>That neatly shows where the "clever code" that was breaking libdir earlier is:</div><div><br></div><div><a href="https://github.com/waf-project/waf/commit/823b4cd2dc03d06a81e0ab003606067da03d8745#diff-b44b0c8f383b2fd1b19f2ba039d30237">https://github.com/waf-project/waf/commit/823b4cd2dc03d06a81e0ab003606067da03d8745#diff-b44b0c8f383b2fd1b19f2ba039d30237</a></div><div><br></div><div>Ross</div></div></div></div>