[meta-freescale] [meta-fsl-arm][RFC PATCH] libimxvpuapi: use libdir from cross environment

Max Krummenacher max.oss.09 at gmail.com
Sat Jun 25 05:43:43 PDT 2016


Hi Otavio

Am Freitag, den 24.06.2016, 11:49 -0300 schrieb Otavio Salvador:
> On Thu, Jun 23, 2016 at 7:52 PM, Max Krummenacher <
> max.oss.09 at gmail.com> wrote:
> > Pass $libdir to 'waf configure' to prevent using the build hosts
> > libdir.
> > 
> > Fixes:
> > WARNING: libimxvpuapi-0.10.2-r0 do_package: QA Issue: libimxvpuapi:
> > Files/directories were installed but not shipped in any package:
> >   /usr/lib64/libimxvpuapi.so
> >   /usr/lib64/libimxvpuapi.so.0
> >   /usr/lib64/libimxvpuapi.so.0.10.2
> >   /usr/lib64/pkgconfig
> >   /usr/lib64/pkgconfig/libimxvpuapi.pc
> > 
> > Signed-off-by: Max Krummenacher <max.krummenacher at toradex.com>
> 
> I agree with the fix however I think this ought to be done on the waf
> class, no?

I tried it but this is causing build errors with other packages.

Adding --libdir=${libdir} to waf.bbclass fixes the issue with
 libimxvpuapi, but breaks eglinfo-x11 and glcompbench.

(libimxvpuapi, glmark2, gstreamer1.0-plugins-imx succeeded)

ERROR: Logfile of failure stored in: ../glcompbench/2012.08
-0/temp/log.do_configure.20606
Log data follows:
| DEBUG: Executing python function sysroot_cleansstate
| DEBUG: Python function sysroot_cleansstate finished
| 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     :
|   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: --libdir

So a fix in waf.bbclass is not possible because --libdir is only
allowed if a package's wscript file is set up for it.

Max

> 
> 


More information about the meta-freescale mailing list