From mboxrd@z Thu Jan 1 00:00:00 1970 Delivery-date: Fri, 07 Oct 2022 17:29:18 +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 1ogpHr-000Zt4-NK for lore@lore.pengutronix.de; Fri, 07 Oct 2022 17:29:18 +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 1ogpHp-0002db-GO; Fri, 07 Oct 2022 17:29:17 +0200 Received: from ptx.hi.pengutronix.de ([2001:67c:670:100:1d::c0]) by metis.ext.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1ogpHH-0002dP-Dg; Fri, 07 Oct 2022 17:28:43 +0200 Received: from mol by ptx.hi.pengutronix.de with local (Exim 4.92) (envelope-from ) id 1ogpHC-0004Jm-D8; Fri, 07 Oct 2022 17:28:38 +0200 Date: Fri, 7 Oct 2022 17:28:38 +0200 From: Michael Olbrich To: Richard OGrady Message-ID: <20221007152838.GK26936@pengutronix.de> Mail-Followup-To: Richard OGrady , ptxdist@pengutronix.de References: <20221007073705.GJ26936@pengutronix.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Sent-From: Pengutronix Hildesheim X-URL: http://www.pengutronix.de/ X-Accept-Language: de,en X-Accept-Content-Type: text/plain User-Agent: Mutt/1.10.1 (2018-07-13) Subject: Re: [ptxdist] pkg-config-wrapper 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 Cc: 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 Hi, please keep the mailing list in Cc. On Fri, Oct 07, 2022 at 02:43:51PM +0000, Richard OGrady wrote: > > On Wed, Oct 05, 2022 at 08:44:44PM +0000, Richard OGrady wrote: > > > Debugging a prepare stage issue so trying to understand this chunk of code in pkg-config-wrapper. > > > > > > 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 > > > > > > Where does ${whitelist} come from? Have tried to trace this back and best guess is it may come > > from ../state/${PKGCONFIG_WHITELIST_SRC}. pkgconfig . > > > > > > If this is the case, perhaps pkg-config-wrapper can't be used during prepare as the .pkgconfig file > > > isn't there yet? > > > > ${whitelist} is defined as PKGCONFIG_WHITELIST_HOST or PKGCONFIG_WHITELIST_TARGET > > depending on whether the host or cross pkgconfig is called. For example > > PKGCONFIG_WHITELIST_HOST is used by when the Linux kernel looks for openssl to build a host tool. > > > > These variables are filled by the .pkgconfig files from all packages that are selected in the .in file. So > > those are already available during the prepare stage. > > I think this is where I am having a problem. My file gstreamer2-imx.in > select(s) the dependency libimxdmabuffer. My file libimxdmabuffer.in > only select(s) the dependency HOST_SYSTEM_PYTHON3 and its pkgconfig file > is empty as expected. So the dependency libimxdmabuffer isn't in > PKGCONFIG_WHITELIST_TARGET when gstreamer2-imx is prepared and the > pkg-config-wrapper blocks it. > > From your description it seems that primary dependencies (like > libimxdmabuffer) are not in PKGCONFIG_WHITELIST_TARGET. Is that the > case? I would think this is a common scenario so I must still be missing > something. When you build gstreamer2-imx, then libimxdmabuffer should be in PKGCONFIG_WHITELIST_TARGET. But please note, that PKGCONFIG_WHITELIST_TARGET does not contain the ptxdist package names but the .pc file names without the .pc suffix. And the .pkgconfig of libimxdmabuffer should contain something. Is the file empty or is it not generated at all? What's the output of: find platform-/packages/libimxdmabuffer-/ -name *.pc Replace the path with the directory that is filled by libimxdmabuffer. Michael -- Pengutronix e.K. | | Steuerwalder Str. 21 | http://www.pengutronix.de/ | 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |