From mboxrd@z Thu Jan 1 00:00:00 1970 Delivery-date: Mon, 10 Oct 2022 16:12:12 +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 1ohtVt-003ONc-7t for lore@lore.pengutronix.de; Mon, 10 Oct 2022 16:12:12 +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 1ohtVr-00006y-NY; Mon, 10 Oct 2022 16:12:11 +0200 Received: from mail-mw2nam10on2086.outbound.protection.outlook.com ([40.107.94.86] helo=NAM10-MW2-obe.outbound.protection.outlook.com) by metis.ext.pengutronix.de with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1ohtVa-00006d-Gr; Mon, 10 Oct 2022 16:11:58 +0200 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=JVoS9Rqn+dL59y9voO2mwRsoOEOnYzdH0Sf6WgYvb4k6Uj2Xp0Q9CoA+0Ewge7i+IeQx7xqalL6oCzzUfHX0njBVXttht40CjU+7D8ZvLKAuO0wbSoRkDCjWl4QzuNA6oweXuWBHolr02a9bkuSoqaSVPJYIXJzyyvnHIcrrx/6bw1GVhARsIjnZLnQe4Fq9O5UTEOsJ6LbAvA7jv+edW+iInN524q1U9xv6paY0f/dOoFIkHbXcN/hKxVN1u7lUgO76S8QiHi1FWp+tAy70U4Wethz6HfGpKm9qiHNxhS/41aANazQHqY23ajJgab+qJF+iMr5Z6/Q+uaTwIjEn7A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=HmAnZEJc/bHVFHVXY5BcNdQrT6CtSuTGyBeUYXsmqUg=; b=KNAUHlc3sO7QhyRk3yyUHH7xiWAid5CbA4kGPptBIWzo5q9eGB+WMS3BML3x6UIlZNmIQA5x5zNzrVsBUVQTwZIey3zUse23iZ4TvQN0ZkebpOCrk6jn6hdgFcYDKFzebeATqPA2s2uxqO1useGtHowXY1NFS1iU+6yM0TSbSNL3mI0yxKK+fSuKj+Q6HA1zqR+hQfBBVIEUf/q61MSgG8ZtJrydpDBXn0grJOUWC1kVaOWU3/KkZVrYpesGfaROtaixl6L+R7a65H+Nm7slYo+MQ8bi2c4MiKabc69jkweYsizuPhoi+RxclGYGNxkB/1SUQg05L24gqeB/K0I8Uw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=grayhill.com; dmarc=pass action=none header.from=grayhill.com; dkim=pass header.d=grayhill.com; arc=none Received: from BYAPR14MB3078.namprd14.prod.outlook.com (2603:10b6:a03:15b::12) by CY8PR14MB6243.namprd14.prod.outlook.com (2603:10b6:930:9a::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5676.20; Mon, 10 Oct 2022 14:11:44 +0000 Received: from BYAPR14MB3078.namprd14.prod.outlook.com ([fe80::246d:900d:2887:a1d1]) by BYAPR14MB3078.namprd14.prod.outlook.com ([fe80::246d:900d:2887:a1d1%5]) with mapi id 15.20.5709.015; Mon, 10 Oct 2022 14:11:44 +0000 From: Richard OGrady To: Michael Olbrich Thread-Topic: [ptxdist] pkg-config-wrapper Thread-Index: AQHY2PtMpL6SRDC2tkGfqgW07fX0Na4CjTuAgABJ5PCAADnbAIAEnzzQ Date: Mon, 10 Oct 2022 14:11:43 +0000 Message-ID: References: <20221007073705.GJ26936@pengutronix.de> <20221007152838.GK26936@pengutronix.de> In-Reply-To: <20221007152838.GK26936@pengutronix.de> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=grayhill.com; x-ms-publictraffictype: Email x-ms-traffictypediagnostic: BYAPR14MB3078:EE_|CY8PR14MB6243:EE_ x-ms-office365-filtering-correlation-id: 2f35f002-d5d5-4199-d5bd-08daaac95c27 x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: YRcQXD0B/fngRmGSrrpZtU2scp4Fw5Do6koV02QSORu9aA30rLzlAJw/HrpkH2cJGFBw4RVIeoaFVLIgBmqmeezqb09LyUzpsosR5OIxwKM0gXdlewDE9k1Dyvlug/FcqULX3cSxt9OX8I+eSMT2BvaRz1vcnI4NgdRulYg1KVCh6qOBwAXd7vXhXwdCHlTpoeep51/Bzyu7ivTcx9EzQxy4HqF8QJ6F/0Id9Cjs7yNATpbi255xIPGX10ip3Yjqowr7ul2Eiayuy9wOzhIVm4t/gSkHsriCeWDu5BKrkfKA0ZsRp5DysdGbv74Fc98+x5nowGK2O2QVtTr/xGHys/Dp17Tu7+O4FRuqDypJVSvJ01eST/lGDvEbgRSbWeCEydSyi4ciw53CGteaV7owltxw6h9QpqZGAi2fBXGILneiIxMlO/S3ZW2VU6vnkFIIXlvXUhoifY2ppsiHvha8quv0IhCtZht7gwNjLE2jNjcqfSbb0VcO4tEJbDgxS/gdE65b0i8ETag06jb2NsA1oIqHNGHduTYjCJyZHcBSXmwDM5mJj622xf73DPOMYuVOTms8/tY3HmTTICujSqaJI2GQOvAFMUs/c3mDxviduoNST+nty0qoSx1K1yFcKqpCjb5IK4KSglna60luF6lA1tDR1Y2/abeFF4JcAeyXwbp3HgAS1yonhtXLHunemK5RQlpEdkIsWbPAeGLd3wchnKx94yZNGNYNMqJx9NRAlpy92Ak7/PgIVlnqyF6FHXNwEsPkc89uil+8bXnxbZUJcw== x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:BYAPR14MB3078.namprd14.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230022)(4636009)(396003)(376002)(346002)(366004)(39840400004)(136003)(451199015)(66476007)(38100700002)(122000001)(5660300002)(33656002)(66946007)(86362001)(4326008)(450100002)(76116006)(55016003)(41300700001)(478600001)(64756008)(66556008)(52536014)(8676002)(38070700005)(66446008)(83380400001)(6916009)(316002)(8936002)(55236004)(53546011)(2906002)(186003)(26005)(71200400001)(6506007)(7696005)(9686003); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?t0M4gQxgsQoRTW7YeECxw6Gaj2USmh1JDZ+Msokt3CI0mkR0xnZOhuuoLQ/U?= =?us-ascii?Q?lV73NTrSZP6/bAUhoNjDLGmGEsZ62m7tUZnCQmICeIjhSodIks/w1VNvQPs1?= =?us-ascii?Q?9S0AA7lXVQD23rExNnyJAJdaCE2ZuExD/+xEiDc8c3Lo/s5yKweWZCUdiyN6?= =?us-ascii?Q?buMxjl/pBd2m4Q/2RIm+neN2kqmRm6pIm/02woTaj6SugFcNfBIH0/fKsZ/+?= =?us-ascii?Q?RL8WJivqjKSE6gBGXqCRHwC95yP3rQM67RhVj3z7G+XtzhtuCwHdYozGHel9?= =?us-ascii?Q?3QOixT3rAjxNOcbKm5RBE0oCysBNJOCXH/L645R5WqKzPMZcPwS9Yir7MpbC?= =?us-ascii?Q?DBVH6+1QlmhHsqYOk4t5UVEYERXAHkngxM86qvMaDMKb8aowxve6v4a09mKS?= =?us-ascii?Q?wQVcsM+cTvztyA5Po5eKiQ67cB2DQzsk8pKckbd7Fdvbhr3Jq2NW3F5MwImP?= =?us-ascii?Q?9OEiwqE8L7otZX8GIYEeeZM6cyM9uyIFFcjXqLGuMIYsKgXDN/Q59Tfx0qfz?= =?us-ascii?Q?w8gP0iDtR6b8+mvy8KgQy5MpM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ZHzluvKy+abD+eDasH2nrdmgY1Z7amcYltBS881Wa6gKWDewkv?= =?us-ascii?Q?GMedydqiY6gsUlmXpQM/45KXIQqQfxMLtf8s/JR4NKnpW0OrctqAIhRNINyV?= =?us-ascii?Q?9tSu8lHp7tH1oJVyPrBF+pUq3FzHjXNSyf0qvHT3?= Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: grayhill.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: BYAPR14MB3078.namprd14.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 2f35f002-d5d5-4199-d5bd-08daaac95c27 X-MS-Exchange-CrossTenant-originalarrivaltime: 10 Oct 2022 14:11:43.6984 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 425653eb-8a0a-4fed-a37b-bb46c02c9c12 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: 8VMzC6eB6X4Eoq7AY0fr4W/iJYzWwkfXaFVQO2rk+IJ8ipljT4DuhbVe/6lE6cyskEhYb19XKofrqIk8QZUcRDbISF9xBMPWmlKSsVZJc6Q= X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY8PR14MB6243 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.9 required=4.0 tests=AWL,BAYES_00, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,SPF_PASS autolearn=ham autolearn_force=no version=3.4.2 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 > -----Original Message----- > From: Michael Olbrich > Sent: Friday, October 7, 2022 10:29 AM > To: Richard OGrady > Cc: ptxdist@pengutronix.de > Subject: Re: [ptxdist] pkg-config-wrapper >=20 > 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} " =3D~ " ${pkg} " && ! "${pkg}" =3D~ '-un= installed' ]]; 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 dur= ing 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. >=20 > When you build gstreamer2-imx, then libimxdmabuffer should be in PKGCONFI= G_WHITELIST_TARGET. > But please note, that PKGCONFIG_WHITELIST_TARGET does not contain the ptx= dist package names but > the .pc file names without the .pc suffix. > And the .pkgconfig of libimxdmabuffer should contain something. Is the fi= le empty or is it not > generated at all? What's the output of: >=20 > find platform-/packages/libimxdmabuffer-/ -name *= .pc >=20 > Replace the path with the directory that is filled by libimxdmabuffer. >=20 > Michael >=20 That is the problem. The .pc file did not exist. That package is a waf co= nfigure/build/install. =20 To fix I needed to explicitly add --destdir to the install command. It wor= ks now. Thank you. Rich OGrady