> -----Original Message-----
> From: ptxdist <ptxdist-boun...@pengutronix.de> On Behalf Of Ladislav Michl
> Sent: Monday, October 3, 2022 3:44 PM
> To: ptxdist@pengutronix.de
> Subject: Re: [ptxdist] pkg-config-wrapper issue
>
> On Mon, Oct 03, 2022 at 06:14:34PM +0000, Richard OGrady wrote:
> > Hello,
> >
> > We are using ptxdist 2022.07 and are building 2 packages, libimxvpuapi2 and
> > libimxdmabuffer.
> > libimxvpuapi2 depends on libimxdmabuffer and accordingly libimxvpuapi2.in
> > selects libimxdmabuffer.
>
> Those 'depends on' and 'select' are actual keywords used in *.in files or
> just a
> description?
>
'depends on' is just a statement of fact, 'select' is keyword in
libimxvpuapi2.in
> > The libimxvpuapi2 build fails during config. The config file shows
> >
> > Checking for 'libimxdmabuffer >= 0.9.0'
> > ['/home/rich/imx6_3D104X_fsl6/Grayhill-iMX6/platform-3D50_std/sysroot-
> > cross/bin/pkg-config', '--cflags', '--libs', 'libimxdmabuffer', '>=',
> > '0.9.0']
> > err: pkg-config: warning: blocking 'libimxdmabuffer': not selected by
> > 'libimxvpuapi2'
> >
> > So pkg-config-wrapper is blocking the libimxdmabuffer package. The code
> > that does this in pkg-config-wrapper is:
> >
> > for pkg in ${pkgs}; do
> > if [[ ! " ${whitelist} " =~ " ${pkg} " && ! "${pkg}" =~
> > '-uninstalled' ]]; then
> > echo "$(basename ${0}): warning: blocking '${pkg}': not
> > selected by '${PKGCONFIG_WHITELIST_SRC}'" >&${ERROR_FD}
> > exit 1
> > fi
> > done
> >
> > We can get rid of the issue by commenting out the code above in
> > pkg-config-wrapper but it seems that then breaks some other packages.
> > Libimxdmabuffer is version 1.1.2. Both packages are using waf to build.
> >
> > What could be going wrong?
>
> It is a bit hard to tell without seeing actutal code, but from description
> above I
> guess you created circular dependency which got dropped.
>
I guess another way to ask the question is what is that code chunk in
pkg-config-wrapper trying to do?
It seems that if ${whitelist} were to contain ${pkg} then it would not bail
out. Correct?
If so, then by what mechanism would ${whitelist} contain ${pkg}?
> > Rich OGrady
> >
> >