From mboxrd@z Thu Jan 1 00:00:00 1970 Delivery-date: Mon, 03 Oct 2022 22:44:23 +0200 Received: from metis.ext.pengutronix.de ([2001:67c:670:201:290:27ff:fe1d:cc33]) by lore.white.stw.pengutronix.de with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1ofSIY-004sW3-SU for lore@lore.pengutronix.de; Mon, 03 Oct 2022 22:44:23 +0200 Received: from localhost ([127.0.0.1] helo=metis.ext.pengutronix.de) by metis.ext.pengutronix.de with esmtp (Exim 4.92) (envelope-from ) id 1ofSIX-0003Fk-98; Mon, 03 Oct 2022 22:44:21 +0200 Received: from h1.cmg2.smtp.forpsi.com ([81.2.195.188]) by metis.ext.pengutronix.de with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1ofSI0-0003Fb-JS for ptxdist@pengutronix.de; Mon, 03 Oct 2022 22:43:49 +0200 Received: from lenoch ([91.218.190.200]) by cmgsmtp with ESMTPSA id fSHxoKyAXv5uIfSHyoqs8J; Mon, 03 Oct 2022 22:43:47 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=triops.cz; s=f2019; t=1664829827; bh=kuoTOYb82Z4I9vhBDlQTa6qnChNKkOLJ94dLAUmcsI8=; h=Date:From:To:Subject:Message-ID:MIME-Version:Content-Type; b=J4PxMd97/QK1p2z2WHDuN3xskTYbG0EvRrP87gRYx/vEOxPyvJUFZA7w8KMjnaPTq 6mQvGm/AqAjClr1dVkPczLvWS5wf76cRnGskMnQ8wpkDiMHjIMeKifDGC+CjpFfXSD 6XTCybnOsaNHp1BsDZhOK3Oe8XyLwN9xFTPB9GCn+YZGNgzHM1PIUF6pgjf1AHUVbO yxYRj78ChSA/jYs8I/GPCNf74W2iSvraUdYRnRA/GRVAjsoa5Xn7rBzhYpPiNT677D T1pn8UBBowNTBmPd1D+Nxv/Xm8LadHm+O0uKoON9BkNbyLTrtJdn7o14QD/Wol7oG0 7MepfVUpQ4Kgw== Date: Mon, 3 Oct 2022 22:43:45 +0200 From: Ladislav Michl To: ptxdist@pengutronix.de Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-CMAE-Envelope: MS4wfK+y65dZJtsIOFmisVNFlXxT5qOCpHvvkpTaaJ9rrDJPZvjrjxa8BynmfS7rwF/vBBR0rArAy9ILNt0uCUQFXsT/WCsWeJCzNMlKA5I/3GulvaOVRlq4 RfxLDemRHLHFbCLnaJhGm+W5RGIG+TOgN12xcq7ubs7g6qexkBvbfNQR X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on metis.ext.pengutronix.de X-Spam-Level: X-Spam-Status: No, score=-1.6 required=4.0 tests=AWL,BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_NONE autolearn=ham autolearn_force=no version=3.4.2 Subject: Re: [ptxdist] pkg-config-wrapper issue X-BeenThere: ptxdist@pengutronix.de X-Mailman-Version: 2.1.29 Precedence: list List-Id: PTXdist Development Mailing List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: ptxdist@pengutronix.de Sender: "ptxdist" X-SA-Exim-Connect-IP: 127.0.0.1 X-SA-Exim-Mail-From: ptxdist-bounces@pengutronix.de X-SA-Exim-Scanned: No (on metis.ext.pengutronix.de); SAEximRunCond expanded to false 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? > 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. > Rich OGrady > >