waf.bbclass: explicitly pass bindir and libdir
PATCH v2 1/1 waf.bbclass: explicitly pass bindir and libdir
From: Stefan Agner <[email protected]>
On some build hosts distros (e.g. Fedora 26) waf tries to be
smart about libdir detection and defaults to [EXEC_PREFIX/lib64].
This obviously is not what we want for 32-bit targets and usually
fails in the do_package phase:
WARNING: gstreamer1.0-plugins-imx-0.13.0-r0 do_package: QA Issue: gstreamer1.0-plugins-imx: Files/directories were installed but not shipped in any package:
/usr/lib64/libgstimxcommon.so.0
Waf knows prefix, bindir and libdir as default options. Explicitly pass those three.
--- meta/classes/waf.bbclass | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
meta/classes/waf.bbclass +1 -1
@@ -26,7 +26,7 @@ def get_waf_parallel_make(d): return "" waf_do_configure() { - ${S}/waf configure --prefix=${prefix} ${EXTRA_OECONF} + ${S}/waf configure --prefix=${prefix} --bindir=${bindir} --libdir=${libdir} ${EXTRA_OECONF} } waf_do_compile() {
Signature · 1 line
2.13.6
Quoted 7 lines · Stefan Agner
From: Stefan Agner <[email protected]>
On some build hosts distros (e.g. Fedora 26) waf tries to be
smart about libdir detection and defaults to [EXEC_PREFIX/lib64].
This obviously is not what we want for 32-bit targets and usually
fails in thedo_packagephase:
WARNING: gstreamer1.0-plugins-imx-0.13.0-r0do_package: QA Issue: gstreamer1.0-plugins-imx: Files/directories were installed but not shipped in any package:
Quoted 6 lines
/usr/lib64/libgstimxcommon.so.0Waf knows prefix, bindir and libdir as default options. Explicitly pass those three.
Signed-off-by Stefan Agner <[email protected]>
Signature · 3 lines
Otavio Salvador O.S. Systems http://www.ossystems.com.br http://code.ossystems.com.br Mobile: +55 (53) 9981-7854 Mobile: +1 (347) 903-9750
Quoted 7 lines · Stefan Agner
On some build hosts distros (e.g. Fedora 26) waf tries to be smart about libdir detection and defaults to [EXEC_PREFIX/lib64]. This obviously is not what we want for 32-bit targets and usually fails in the
do_packagephase:
WARNING: gstreamer1.0-plugins-imx-0.13.0-r0do_package: QA Issue:
gstreamer1.0-plugins-imx: Files/directories were installed but not shipped in any package:
Quoted 5 lines
/usr/lib64/libgstimxcommon.so.0Waf knows prefix, bindir and libdir as default options. Explicitly pass those three.
Obviously not.
ERROR: eglinfo-x11-1.0.0-r0 do_configure: Function failed: do_configure
(log file is located at /data/poky-tmp/master/build/work/corei7-64-poky-linux/eglinfo-x11/1.0.0-r0/temp/log.do_configure.17278)
ERROR: Logfile of failure stored in:
/data/poky-tmp/master/build/work/corei7-64-poky-linux/eglinfo-x11/1.0.0-r0/temp/log.do_configure.17278 Log data follows:
| DEBUG: Executing shell function do_configure | waf [commands] [options] | | Main commands (example: ./waf build -j4) | build : executes the build | clean : cleans the project | configure: configures the project | dist : makes a tarball for redistributing the sources | distcheck: checks if the project compiles (tarball from 'dist') | distclean: removes the build directory | install : installs the targets on the system | list : lists the targets to execute | step : executes tasks in a step-by-step fashion, for debugging | uninstall: removes the targets installed | update : updates the plugins from the *waflib/extras* directory | | waf: error: no such option: --bindir
Ross
Hi Ross,
Does it fail with V1?
Best regards,
Vincent
2017-12-12 15:00 GMT+01:00 Burton, Ross <[email protected]>:
Quoted 51 lines · Stefan Agner
Quoted 8 lines
On some build hosts distros (e.g. Fedora 26) waf tries to be smart about libdir detection and defaults to [EXEC_PREFIX/lib64]. This obviously is not what we want for 32-bit targets and usually fails in the
do_packagephase:
WARNING: gstreamer1.0-plugins-imx-0.13.0-r0do_package: QA Issue:
gstreamer1.0-plugins-imx: Files/directories were installed but not shipped in any package:Quoted 5 lines
/usr/lib64/libgstimxcommon.so.0Waf knows prefix, bindir and libdir as default options. Explicitly pass those three.
Obviously not.
ERROR: eglinfo-x11-1.0.0-r0
do_configure: Function failed:do_configure(log file is located at /data/poky-tmp/master/build/ work/corei7-64-poky-linux/eglinfo-x11/1.0.0-r0/temp/log. do_configure.17278)
ERROR: Logfile of failure stored in: /data/poky-tmp/master/build/ work/corei7-64-poky-linux/eglinfo-x11/1.0.0-r0/temp/log.do_configure.17278 Log data follows:| DEBUG: Executing shell function do_configure | waf [commands] [options] | | Main commands (example: ./waf build -j4) | build : executes the build | clean : cleans the project | configure: configures the project | dist : makes a tarball for redistributing the sources | distcheck: checks if the project compiles (tarball from 'dist') | distclean: removes the build directory | install : installs the targets on the system | list : lists the targets to execute | step : executes tasks in a step-by-step fashion, for debugging | uninstall: removes the targets installed | update : updates the plugins from the *waflib/extras* directory | | waf: error: no such option: --bindirRoss
--
_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-core
Quoted 3 lines · Vincent Prince
Hi Ross,
Does it fail with V1?
The waf version which comes with eglinfo says it will fail:
configure options:
-o OUT, --out=OUT build dir for the project
-t TOP, --top=TOP src dir for the project
--prefix=PREFIX installation prefix [default: '/usr/local/']
--download try to download the tools if missing ..
No libdir to be seen.
--
Stefan
Quoted 46 lines
Best regards,
Vincent2017-12-12 15:00 GMT+01:00 Burton, Ross <[email protected]>:
On 12 December 2017 at 13:27, Stefan Agner <[email protected]> wrote:
On some build hosts distros (e.g. Fedora 26) waf tries to be
smart about libdir detection and defaults to [EXEC_PREFIX/lib64].
This obviously is not what we want for 32-bit targets and usually
fails in thedo_packagephase:
WARNING: gstreamer1.0-plugins-imx-0.13.0-r0do_package: QA Issue: gstreamer1.0-plugins-imx: Files/directories were installed but not shipped in any package:/usr/lib64/libgstimxcommon.so.0Waf knows prefix, bindir and libdir as default options. Explicitly pass those three.
Obviously not.
ERROR: eglinfo-x11-1.0.0-r0
do_configure: Function failed:do_configure(log file is located at /data/poky-tmp/master/build/work/corei7-64-poky-linux/eglinfo-x11/1.0.0-r0/temp/log.do_configure.17278)
ERROR: Logfile of failure stored in: /data/poky-tmp/master/build/work/corei7-64-poky-linux/eglinfo-x11/1.0.0-r0/temp/log.do_configure.17278
Log data follows:| DEBUG: Executing shell function do_configure | waf [commands] [options] | | Main commands (example: ./waf build -j4) | build : executes the build | clean : cleans the project | configure: configures the project | dist : makes a tarball for redistributing the sources | distcheck: checks if the project compiles (tarball from 'dist') | distclean: removes the build directory | install : installs the targets on the system | list : lists the targets to execute | step : executes tasks in a step-by-step fashion, for debugging | uninstall: removes the targets installed | update : updates the plugins from the *waflib/extras* directory | | waf: error: no such option: --bindirRoss
--
_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-core
Quoted 26 lines · Ross
Quoted 9 lines · Stefan Agner
On some build hosts distros (e.g. Fedora 26) waf tries to be
smart about libdir detection and defaults to [EXEC_PREFIX/lib64].
This obviously is not what we want for 32-bit targets and usually
fails in thedo_packagephase:
WARNING: gstreamer1.0-plugins-imx-0.13.0-r0do_package: QA Issue: gstreamer1.0-plugins-imx: Files/directories were installed but not shipped in any package:/usr/lib64/libgstimxcommon.so.0Waf knows prefix, bindir and libdir as default options. Explicitly pass those three.
Obviously not.
ERROR: eglinfo-x11-1.0.0-r0
do_configure: Function failed:do_configure(log file is located at /data/poky-tmp/master/build/work/corei7-64-poky-linux/eglinfo-x11/1.0.0-r0/temp/log.do_configure.17278)
ERROR: Logfile of failure stored in: /data/poky-tmp/master/build/work/corei7-64-poky-linux/eglinfo-x11/1.0.0-r0/temp/log.do_configure.17278
Log data follows:| DEBUG: Executing shell function do_configure | waf [commands] [options] | | Main commands (example: ./waf build -j4) | build : executes the build | clean : cleans the project | configure: configures the project | dist : makes a tarball for redistributing the sources | distcheck: checks if the project compiles (tarball from 'dist')
Quoted 9 lines
| distclean: removes the build directory | install : installs the targets on the system | list : lists the targets to execute | step : executes tasks in a step-by-step fashion, for debugging | uninstall: removes the targets installed | update : updates the plugins from the *waflib/extras* directory | | waf: error: no such option: --bindir
Hm, eglinfo seems to come with a old waf version, 1.7.8 to be specific.
It seems bindir/libdir got added in 1.8 series:
https://github.com/waf-project/waf/blob/waf-1.8/waflib/Options.py
Make version specific variables?
--
Stefan
Quoted 44 lines · Stefan Agner
Quoted 7 lines · Ross
Quoted 5 lines · Stefan Agner
On some build hosts distros (e.g. Fedora 26) waf tries to be smart about libdir detection and defaults to [EXEC_PREFIX/lib64]. This obviously is not what we want for 32-bit targets and usually fails in the
do_packagephase:
WARNING: gstreamer1.0-plugins-imx-0.13.0-r0do_package: QA Issue:gstreamer1.0-plugins-imx: Files/directories were installed but not shipped in any package:
Quoted 8 lines
Quoted 4 lines
/usr/lib64/libgstimxcommon.so.0Waf knows prefix, bindir and libdir as default options. Explicitly pass those three.
Obviously not.
ERROR: eglinfo-x11-1.0.0-r0
do_configure: Function failed:do_configure(log file is located at /data/poky-tmp/master/build/ work/corei7-64-poky-linux/eglinfo-x11/1.0.0-r0/temp/log. do_configure.17278)
Quoted 1 line
ERROR: Logfile of failure stored in: /data/poky-tmp/master/build/
work/corei7-64-poky-linux/eglinfo-x11/1.0.0-r0/temp/log.do_configure.17278
Quoted 10 lines
Log data follows:
| DEBUG: Executing shell function do_configure | waf [commands] [options] | | Main commands (example: ./waf build -j4) | build : executes the build | clean : cleans the project | configure: configures the project | dist : makes a tarball for redistributing the sources | distcheck: checks if the project compiles (tarball from 'dist')Quoted 9 lines
| distclean: removes the build directory | install : installs the targets on the system | list : lists the targets to execute | step : executes tasks in a step-by-step fashion, for debugging | uninstall: removes the targets installed | update : updates the plugins from the *waflib/extras* directory | | waf: error: no such option: --bindir
Quoted 7 lines
Hm, eglinfo seems to come with a old waf version, 1.7.8 to be specific.
It seems bindir/libdir got added in 1.8 series:
https://github.com/waf-project/waf/blob/waf-1.8/waflib/Options.pyMake version specific variables?
That neatly shows where the "clever code" that was breaking libdir earlier is:
Ross
Quoted 41 lines · Ross
Quoted 39 lines · Stefan Agner
Quoted 26 lines · Ross
Quoted 9 lines · Stefan Agner
On some build hosts distros (e.g. Fedora 26) waf tries to be
smart about libdir detection and defaults to [EXEC_PREFIX/lib64].
This obviously is not what we want for 32-bit targets and usually
fails in thedo_packagephase:
WARNING: gstreamer1.0-plugins-imx-0.13.0-r0do_package: QA Issue: gstreamer1.0-plugins-imx: Files/directories were installed but not shipped in any package:/usr/lib64/libgstimxcommon.so.0Waf knows prefix, bindir and libdir as default options. Explicitly pass those three.
Obviously not.
ERROR: eglinfo-x11-1.0.0-r0
do_configure: Function failed:do_configure(log file is located at /data/poky-tmp/master/build/work/corei7-64-poky-linux/eglinfo-x11/1.0.0-r0/temp/log.do_configure.17278)
ERROR: Logfile of failure stored in: /data/poky-tmp/master/build/work/corei7-64-poky-linux/eglinfo-x11/1.0.0-r0/temp/log.do_configure.17278
Log data follows:| DEBUG: Executing shell function do_configure | waf [commands] [options] | | Main commands (example: ./waf build -j4) | build : executes the build | clean : cleans the project | configure: configures the project | dist : makes a tarball for redistributing the sources | distcheck: checks if the project compiles (tarball from 'dist')Quoted 9 lines
| distclean: removes the build directory | install : installs the targets on the system | list : lists the targets to execute | step : executes tasks in a step-by-step fashion, for debugging | uninstall: removes the targets installed | update : updates the plugins from the *waflib/extras* directory | | waf: error: no such option: --bindirHm, eglinfo seems to come with a old waf version, 1.7.8 to be specific.
Quoted 9 lines
Quoted 4 lines
It seems bindir/libdir got added in 1.8 series:
https://github.com/waf-project/waf/blob/waf-1.8/waflib/Options.pyMake version specific variables?
That neatly shows where the "clever code" that was breaking libdir earlier is:
Yeah that seems to be it.
That go added in the 1.8.6 dev cycle afaik.
I am thinking about adding some kind of version autodetection
WAFMINOR=$(${S}/waf --version | sed -e '1{s/waf [0-9]\.//;s/\.[0-9]* (.*//};q')
if [ $WAFMINOR -gt "7" ] ...
Maybe there is a nicer way of doing this?
--
Stefan
Quoted 57 lines · Stefan Agner
Quoted 41 lines · Ross
Quoted 39 lines · Stefan Agner
Quoted 26 lines · Ross
Quoted 9 lines · Stefan Agner
On some build hosts distros (e.g. Fedora 26) waf tries to be
smart about libdir detection and defaults to [EXEC_PREFIX/lib64].
This obviously is not what we want for 32-bit targets and usually
fails in thedo_packagephase:
WARNING: gstreamer1.0-plugins-imx-0.13.0-r0do_package: QA Issue: gstreamer1.0-plugins-imx: Files/directories were installed but not shipped in any package:/usr/lib64/libgstimxcommon.so.0Waf knows prefix, bindir and libdir as default options. Explicitly pass those three.
Obviously not.
ERROR: eglinfo-x11-1.0.0-r0
do_configure: Function failed:do_configure(log file is located at /data/poky-tmp/master/build/work/corei7-64-poky-linux/eglinfo-x11/1.0.0-r0/temp/log.do_configure.17278)
ERROR: Logfile of failure stored in: /data/poky-tmp/master/build/work/corei7-64-poky-linux/eglinfo-x11/1.0.0-r0/temp/log.do_configure.17278
Log data follows:| DEBUG: Executing shell function do_configure | waf [commands] [options] | | Main commands (example: ./waf build -j4) | build : executes the build | clean : cleans the project | configure: configures the project | dist : makes a tarball for redistributing the sources | distcheck: checks if the project compiles (tarball from 'dist')Quoted 9 lines
| distclean: removes the build directory | install : installs the targets on the system | list : lists the targets to execute | step : executes tasks in a step-by-step fashion, for debugging | uninstall: removes the targets installed | update : updates the plugins from the *waflib/extras* directory | | waf: error: no such option: --bindirHm, eglinfo seems to come with a old waf version, 1.7.8 to be specific.
Quoted 9 lines
Quoted 4 lines
It seems bindir/libdir got added in 1.8 series:
https://github.com/waf-project/waf/blob/waf-1.8/waflib/Options.pyMake version specific variables?
That neatly shows where the "clever code" that was breaking libdir earlier is:
Yeah that seems to be it.
That go added in the 1.8.6 dev cycle afaik.
Quoted 8 lines
I am thinking about adding some kind of version autodetection
WAFMINOR=$(${S}/waf --version | sed -e '1{s/waf [0-9]\.//;s/\.[0-9]* (.*//};q')
if [ $WAFMINOR -gt "7" ] ...
Maybe there is a nicer way of doing this?
What about we provide a package waf version and replace the binaries prior building? So we know what version we'd be using. Kinda autoreconf run in autotools class.
Signature · 3 lines
Otavio Salvador O.S. Systems http://www.ossystems.com.br http://code.ossystems.com.br Mobile: +55 (53) 9981-7854 Mobile: +1 (347) 903-9750
Quoted 63 lines · Otavio Salvador
Quoted 62 lines · Stefan Agner
Quoted 41 lines · Ross
Quoted 39 lines · Stefan Agner
Quoted 26 lines · Ross
Quoted 9 lines · Stefan Agner
On some build hosts distros (e.g. Fedora 26) waf tries to be
smart about libdir detection and defaults to [EXEC_PREFIX/lib64].
This obviously is not what we want for 32-bit targets and usually
fails in thedo_packagephase:
WARNING: gstreamer1.0-plugins-imx-0.13.0-r0do_package: QA Issue: gstreamer1.0-plugins-imx: Files/directories were installed but not shipped in any package:/usr/lib64/libgstimxcommon.so.0Waf knows prefix, bindir and libdir as default options. Explicitly pass those three.
Obviously not.
ERROR: eglinfo-x11-1.0.0-r0
do_configure: Function failed:do_configure(log file is located at /data/poky-tmp/master/build/work/corei7-64-poky-linux/eglinfo-x11/1.0.0-r0/temp/log.do_configure.17278)
ERROR: Logfile of failure stored in: /data/poky-tmp/master/build/work/corei7-64-poky-linux/eglinfo-x11/1.0.0-r0/temp/log.do_configure.17278
Log data follows:| DEBUG: Executing shell function do_configure | waf [commands] [options] | | Main commands (example: ./waf build -j4) | build : executes the build | clean : cleans the project | configure: configures the project | dist : makes a tarball for redistributing the sources | distcheck: checks if the project compiles (tarball from 'dist')Quoted 9 lines
| distclean: removes the build directory | install : installs the targets on the system | list : lists the targets to execute | step : executes tasks in a step-by-step fashion, for debugging | uninstall: removes the targets installed | update : updates the plugins from the *waflib/extras* directory | | waf: error: no such option: --bindirHm, eglinfo seems to come with a old waf version, 1.7.8 to be specific.
Quoted 9 lines
Quoted 4 lines
It seems bindir/libdir got added in 1.8 series:
https://github.com/waf-project/waf/blob/waf-1.8/waflib/Options.pyMake version specific variables?
That neatly shows where the "clever code" that was breaking libdir earlier is:
Yeah that seems to be it.
That go added in the 1.8.6 dev cycle afaik.
I am thinking about adding some kind of version autodetection
WAFMINOR=$(${S}/waf --version | sed -e '1{s/waf [0-9]\.//;s/\.[0-9]* (.*//};q')
Quoted 7 lines
Quoted 3 lines
if [ $WAFMINOR -gt "7" ] ...
Maybe there is a nicer way of doing this?
What about we provide a package waf version and replace the binaries prior building? So we know what version we'd be using. Kinda autoreconf run in autotools class.
Waf seems to be extensible using wscript. I don't know how exactly wscript depends on waf (version) and whether the API is considered stable...
I'd rather prefer not taking chances...
--
Stefan
As waf_do_configure takes care of EXTRA_OECONF, maybe we can only fix gstreamer1.0-plugins-imx_0.13.0.bb by adding libdir ?
It is much a bug fix than a longterm solution, but if any waf version breaks options, it can be a nightmare to handle...
2017-12-12 16:56 GMT+01:00 Stefan Agner <[email protected]>:
Quoted 97 lines · Otavio Salvador
Quoted 7 lines · Stefan Agner
Quoted 6 lines · Ross
Quoted 5 lines · Stefan Agner
Quoted 3 lines · Ross
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines · Stefan Agner
Quoted 6 lines
On some build hosts distros (e.g. Fedora 26) waf tries to be smart about libdir detection and defaults to [EXEC_PREFIX/lib64]. This obviously is not what we want for 32-bit targets and usually fails in the
do_packagephase:
WARNING: gstreamer1.0-plugins-imx-0.13.0-r0do_package: QA Issue:gstreamer1.0-plugins-imx: Files/directories were installed but not shipped in any package:
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 4 lines
/usr/lib64/libgstimxcommon.so.0Waf knows prefix, bindir and libdir as default options. Explicitly pass those three.
Obviously not.
ERROR: eglinfo-x11-1.0.0-r0
do_configure: Function failed:
do_configure(log file is located at /data/poky-tmp/master/build/ work/corei7-64-poky-linux/eglinfo-x11/1.0.0-r0/temp/log. do_configure.17278)Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
ERROR: Logfile of failure stored in: /data/poky-tmp/master/build/
work/corei7-64-poky-linux/eglinfo-x11/1.0.0-r0/temp/log.do_configure.17278
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Log data follows:
| DEBUG: Executing shell function do_configure | waf [commands] [options] | | Main commands (example: ./waf build -j4) | build : executes the buildQuoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
| clean : cleans the project | configure: configures the project | dist : makes a tarball for redistributing the sources | distcheck: checks if the project compiles (tarball from 'dist') | distclean: removes the build directory | install : installs the targets on the system | list : lists the targets to execute | step : executes tasks in a step-by-step fashion, fordebugging
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 5 lines
| uninstall: removes the targets installed | update : updates the plugins from the *waflib/extras* directory | | waf: error: no such option: --bindirHm, eglinfo seems to come with a old waf version, 1.7.8 to be
specific.
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 5 lines
It seems bindir/libdir got added in 1.8 series:
https://github.com/waf-project/waf/blob/waf-1.8/waflib/Options.pyMake version specific variables?
That neatly shows where the "clever code" that was breaking libdir
earlier is:
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
823b4cd2dc03d06a81e0ab003606067da03d8745#diff-
b44b0c8f383b2fd1b19f2ba039d30237Quoted 11 lines
Quoted 11 lines
Quoted 1 line
Yeah that seems to be it.
That go added in the 1.8.6 dev cycle afaik.
I am thinking about adding some kind of version autodetection
WAFMINOR=$(${S}/waf --version | sed -e '1{s/waf [0-9]\.//;s/\.[0-9]* (.*//};q')
Quoted 7 lines
Quoted 3 lines
if [ $WAFMINOR -gt "7" ] ...
Maybe there is a nicer way of doing this?
What about we provide a package waf version and replace the binaries prior building? So we know what version we'd be using. Kinda autoreconf run in autotools class.
Waf seems to be extensible using wscript. I don't know how exactly wscript depends on waf (version) and whether the API is considered stable...
I'd rather prefer not taking chances...
--
Stefan
--
_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-core
Quoted 2 lines · Vincent Prince
As
waf_do_configuretakes care ofEXTRA_OECONF, maybe we can only fix gstreamer1.0-plugins-imx_0.13.0.bb by adding libdir ? It is much a bug fix than a longterm solution, but if any waf version breaks options, it can be a nightmare to handle...
For me, that definitly would work too.
But then, since all version of waf > 1.8.6 seem to use this autodetection it is quite likely that other packages fail/will fail.
I am about to send a v3 with version detection, lets see if we can agree on such a solution (and backport it to rocko).
--
Stefan
Quoted 88 lines
2017-12-12 16:56 GMT+01:00 Stefan Agner <[email protected]>:
Quoted 85 lines · Otavio Salvador
Quoted 63 lines · Stefan Agner
Quoted 62 lines · Ross
Quoted 42 lines · Stefan Agner
Quoted 40 lines · Ross
Quoted 27 lines · Stefan Agner
Quoted 10 lines
On some build hosts distros (e.g. Fedora 26) waf tries to be
smart about libdir detection and defaults to [EXEC_PREFIX/lib64].
This obviously is not what we want for 32-bit targets and usually
fails in thedo_packagephase:
WARNING: gstreamer1.0-plugins-imx-0.13.0-r0do_package: QA Issue: gstreamer1.0-plugins-imx: Files/directories were installed but not shipped in any package:/usr/lib64/libgstimxcommon.so.0Waf knows prefix, bindir and libdir as default options. Explicitly pass those three.
Obviously not.
ERROR: eglinfo-x11-1.0.0-r0
do_configure: Function failed:do_configure(log file is located at /data/poky-tmp/master/build/work/corei7-64-poky-linux/eglinfo-x11/1.0.0-r0/temp/log.do_configure.17278)
ERROR: Logfile of failure stored in: /data/poky-tmp/master/build/work/corei7-64-poky-linux/eglinfo-x11/1.0.0-r0/temp/log.do_configure.17278
Log data follows:| DEBUG: Executing shell function do_configure | waf [commands] [options] | | Main commands (example: ./waf build -j4) | build : executes the build | clean : cleans the project | configure: configures the project | dist : makes a tarball for redistributing the sources | distcheck: checks if the project compiles (tarball from 'dist')Quoted 9 lines
| distclean: removes the build directory | install : installs the targets on the system | list : lists the targets to execute | step : executes tasks in a step-by-step fashion, for debugging | uninstall: removes the targets installed | update : updates the plugins from the *waflib/extras* directory | | waf: error: no such option: --bindirHm, eglinfo seems to come with a old waf version, 1.7.8 to be specific.
Quoted 9 lines
Quoted 4 lines
It seems bindir/libdir got added in 1.8 series:
https://github.com/waf-project/waf/blob/waf-1.8/waflib/Options.pyMake version specific variables?
That neatly shows where the "clever code" that was breaking libdir earlier is:
Yeah that seems to be it.
That go added in the 1.8.6 dev cycle afaik.
I am thinking about adding some kind of version autodetection
WAFMINOR=$(${S}/waf --version | sed -e '1{s/waf [0-9]\.//;s/\.[0-9]* (.*//};q')
Quoted 7 lines
Quoted 3 lines
if [ $WAFMINOR -gt "7" ] ...
Maybe there is a nicer way of doing this?
What about we provide a package waf version and replace the binaries prior building? So we know what version we'd be using. Kinda autoreconf run in autotools class.
Waf seems to be extensible using wscript. I don't know how exactly wscript depends on waf (version) and whether the API is considered stable...
I'd rather prefer not taking chances...
--
Stefan--
_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-core
Quoted 96 lines · Stefan Agner
Quoted 86 lines · Otavio Salvador
Quoted 84 lines · Stefan Agner
Quoted 63 lines · Ross
Quoted 60 lines · Stefan Agner
Quoted 21 lines · Ross
On 12 December 2017 at 13:27, Stefan Agner <[email protected]
Quoted 14 lines
wrote:
On some build hosts distros (e.g. Fedora 26) waf tries to be
smart about libdir detection and defaults to [EXEC_PREFIX/lib64].
This obviously is not what we want for 32-bit targets and usually
fails in thedo_packagephase:
WARNING: gstreamer1.0-plugins-imx-0.13.0-r0do_package:
QA Issue: gstreamer1.0-plugins-imx: Files/directories were installed but not shipped in any package:/usr/lib64/libgstimxcommon.so.0Quoted 3 lines
Waf knows prefix, bindir and libdir as default options. Explicitly
pass those three.Obviously not.
Quoted 29 lines
ERROR: eglinfo-x11-1.0.0-r0
do_configure: Function failed:do_configure(log file is located at /data/poky- tmp/master/build/work/corei7-64-poky-linux/eglinfo- x11/1.0.0-r0/temp/log.do_configure.17278)
ERROR: Logfile of failure stored in: /data/poky- tmp/master/build/work/corei7-64-poky-linux/eglinfo- x11/1.0.0-r0/temp/log.do_configure.17278
Log data follows:Quoted 21 lines
DEBUG: Executing shell function
do_configure
waf [commands] [options]Main commands (example: ./waf build -j4)
build : executes the build
clean : cleans the project
configure: configures the project
dist : makes a tarball for redistributing the
sources
distcheck: checks if the project compiles (tarball from
'dist')
distclean: removes the build directoryinstall : installs the targets on the system list : lists the targets to execute step : executes tasks in a step-by-step fashion,for debugging
uninstall: removes the targets installed
update : updates the plugins from the *waflib/extras*
directorywaf: error: no such option: --bindir
Hm, eglinfo seems to come with a old waf version, 1.7.8 to be specific.
It seems bindir/libdir got added in 1.8 series:
https://github.com/waf-project/waf/blob/waf-1.8/waflib/Options.pyQuoted 8 lines
Quoted 1 line
Make version specific variables?
That neatly shows where the "clever code" that was breaking libdir earlier is:
https://github.com/waf-project/waf/commit/823b4cd2dc03d06a81e0a
b003606067da03d8745#diff-b44b0c8f383b2fd1b19f2ba039d30237Yeah that seems to be it.
That go added in the 1.8.6 dev cycle afaik.
I am thinking about adding some kind of version autodetection
WAFMINOR=$(${S}/waf --version | sed -e '1{s/waf [0-9]\.//;s/\.[0- 9]*
(.*//};q')Quoted 8 lines
Quoted 3 lines
if [ $WAFMINOR -gt "7" ] ...
Maybe there is a nicer way of doing this?
What about we provide a package waf version and replace the binaries
prior building? So we know what version we'd be using. Kinda autoreconf run in autotools class.
Quoted 5 lines
Waf seems to be extensible using wscript. I don't know how exactly wscript depends on waf (version) and whether the API is considered stable...
I'd rather prefer not taking chances...
I agree.
Using a "packaged waf" is against one of the philosophies of waf. Consequently, this is one of the reasons software built with waf has trouble getting into things like Debian packages.
Also, from expirence this is probably not a good idea for 2 reasons:
1) Different versions of waf behave differently and it can cause
strange build issues if you replace the version a package is normally built and tested with
2) A project can "prebuild" waf with all the extra tools it wants. If
there was a packaged version of waf it would have to include every tool possible, which can be imposible if there are custom project tools which have been prebuilt. I don't know how common it is to include custom project tools into the prebuilt waf, but it is certainly possible.
Quoted 3 lines
--
Stefan
On Tue, Dec 12, 2017 at 3:54 PM, Joshua Watt <[email protected]> wrote:
...
Quoted 3 lines
Using a "packaged waf" is against one of the philosophies of waf. Consequently, this is one of the reasons software built with waf has trouble getting into things like Debian packages.
The more I learn about waf, the more I enjoy not being a waf user ...
You raised quite good points. I believe Stefan latest patch does take care the most common cases.
Signature · 3 lines
Otavio Salvador O.S. Systems http://www.ossystems.com.br http://code.ossystems.com.br Mobile: +55 (53) 9981-7854 Mobile: +1 (347) 903-9750