From mboxrd@z Thu Jan 1 00:00:00 1970 Delivery-date: Thu, 10 Jul 2025 15:34:09 +0200 Received: from metis.whiteo.stw.pengutronix.de ([2a0a:edc0:2:b01:1d::104]) by lore.white.stw.pengutronix.de with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1uZrPc-00G3RO-2t for lore@lore.pengutronix.de; Thu, 10 Jul 2025 15:34:09 +0200 Received: from localhost ([127.0.0.1] helo=metis.whiteo.stw.pengutronix.de) by metis.whiteo.stw.pengutronix.de with esmtp (Exim 4.92) (envelope-from ) id 1uZrPc-0006ri-J8; Thu, 10 Jul 2025 15:34:08 +0200 Received: from mx08-007fc201.pphosted.com ([91.207.212.40]) by metis.whiteo.stw.pengutronix.de with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1uZrPI-0006mb-6m for ptxdist@pengutronix.de; Thu, 10 Jul 2025 15:33:49 +0200 Received: from pps.filterd (m0456229.ppops.net [127.0.0.1]) by mx08-007fc201.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 56ADXjHL023208; Thu, 10 Jul 2025 15:33:45 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cab.de; h=cc :content-id:content-transfer-encoding:content-type:date:from :in-reply-to:message-id:mime-version:references:subject:to; s= pp-2025; bh=RuVINP1kdsgMcyaKwHeEj3zDZyrC2jUsdnPZFY5p4xo=; b=RflU x1MeAMY6KxucV31TF5LUq6dQtctbPCNLBPtSm6l5UAu4EC8jcYthUP7NfDaBJhLq N45zTiPNK+2mT7IFEPU96KxTKTM1ZB1u+9jhuHz9/4Fg/oJ7TqR8f/RrGgbbFtUH rMi8wxigspDzzhgZzrdcfoOm7C7n6/9cI0ttRUXo8HnTnTPf7cPc26p3L8hVHRc5 Au+SNaMoL5ZqCHSigv7khk5y7cPcQZhNWwUTSR3aB0Da2eT4VCjorq6kX04rj+jJ LNK6ElKubL1NTNGG1bP88vxsRuzLA1YveI8ep3OAtXHuuB+2gmyc0l6w//ghBtkG Fkwafm5+7zYOeram2w== Received: from adranos.cab.de (adranos.cab.de [46.232.229.107]) by mx08-007fc201.pphosted.com (PPS) with ESMTPS id 47qg5msphh-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 10 Jul 2025 15:33:45 +0200 (MEST) Received: from Adranos.cab.de (10.10.1.54) by Adranos.cab.de (10.10.1.54) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1748.10; Thu, 10 Jul 2025 15:34:00 +0200 Received: from Adranos.cab.de ([fe80::9298:8fc8:395c:3859]) by Adranos.cab.de ([fe80::9298:8fc8:395c:3859%7]) with mapi id 15.02.1748.010; Thu, 10 Jul 2025 15:33:59 +0200 To: "ptxdist@pengutronix.de" Thread-Topic: [ptxdist] [PATCH] libgpiod: version bump 2.1.3 -> 2.2.2 Thread-Index: AQHb8NBBzXBRFhd1QEys2bjd+/KC17QrO1sA Date: Thu, 10 Jul 2025 13:33:59 +0000 Message-ID: References: <20250709125101.483148-1-lapeddk@gmail.com> In-Reply-To: <20250709125101.483148-1-lapeddk@gmail.com> Accept-Language: de-DE, en-US Content-Language: de-DE X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.10.3.180] Content-Type: text/plain; charset="us-ascii" Content-ID: <6A8865B6418C134689241D317F95DCDC@cab.de> Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Proofpoint-ORIG-GUID: CKc3R8QFjswChZjAjEIflnp3fCcgMBeH X-Proofpoint-GUID: CKc3R8QFjswChZjAjEIflnp3fCcgMBeH X-Proofpoint-Spam-Details-Enc: AW1haW4tMjUwNzA5MDAwOCBTYWx0ZWRfX6+B9jhGMY9Si xk09XT7QB64rH2bWRex1Fn/GmJsUAGCIhCbmq1rCB7VRq+4WsFxWObBjwd53ovcMcUeQ4dFeLyz YZABHOrMxV7+w3BlFxHBWTLjIcC0yTEQz4aggjMr0oTapLiGadq0K3Lz6OU6U5xY9khrHJrLKOb 14j/9goDSTTA9uCruCDQCmMBp4dWzBOIj1D6AkyYPtBjVBd56lg0svqxEfnKblrhS9Y6+TvkENV CZqUseL6tOQC6rfjBAAQQ/JB5a6UDSJcy/yTcD1nTHqkReKPCvQWad8rSk8WVLVcuWbTnsDNQeC sLCo8r2TjKBFYwL8dtHpGiFtVqMHY9a09ufc7TaxMHJ5MqK49r0xz+4VGabqPYrDa868U2lW3HN SoWvKAB6 X-Authority-Analysis: v=2.4 cv=ba9rUPPB c=1 sm=1 tr=0 ts=686fc139 cx=c_pps a=LmW7qmVeM6tFdl5svFU9Cg==:117 a=LmW7qmVeM6tFdl5svFU9Cg==:17 a=xqWC_Br6kY4A:10 a=kldc_9v1VKEA:10 a=kj9zAlcOel0A:10 a=Wb1JkmetP80A:10 a=NEAV23lmAAAA:8 a=VwQbUJbxAAAA:8 a=pGLkceISAAAA:8 a=9AHDJ80OF26LRJBFQK8A:9 a=CjuIK1q_8ugA:10 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on metis.whiteo.stw.pengutronix.de X-Spam-Level: X-Spam-Status: No, score=-2.6 required=4.0 tests=AWL,BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_VALIDITY_RPBL_BLOCKED, RCVD_IN_VALIDITY_SAFE_BLOCKED,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.2 Subject: Re: [ptxdist] [PATCH] libgpiod: version bump 2.1.3 -> 2.2.2 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: , From: Markus Heidelberg via ptxdist Reply-To: ptxdist@pengutronix.de Cc: Markus Heidelberg , Lars Alex Pedersen 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.whiteo.stw.pengutronix.de); SAEximRunCond expanded to false On Wed, Jul 09, 2025 at 02:51:01PM +0200, Lars Alex Pedersen wrote: > * Revert commit 0b38f33360be9221c1bca62f7023ffdcb9a9c0e5, since it has > been fixed in release 2.2.2. > * Add new options to install the dbus daemon with and without systemd. > * Add gpio in group > * Add gpio-manager user and group >=20 > https://github.com/brgl/libgpiod/blob/v2.2.x/NEWS You could use the official upstream URL instead of the GitHub mirror: https://git.kernel.org/pub/scm/libs/libgpiod/libgpiod.git/tree/NEWS?h=3Dv2.= 2.2 > Signed-off-by: Lars Alex Pedersen > --- > projectroot/etc/group | 2 ++ > projectroot/etc/passwd | 1 + > rules/libgpiod.in | 17 +++++++++++++++++ > rules/libgpiod.make | 28 +++++++++++++++++++++++----- > 4 files changed, 43 insertions(+), 5 deletions(-) >=20 > diff --git a/rules/libgpiod.make b/rules/libgpiod.make > index 6272333b5..44f623b66 100644 > --- a/rules/libgpiod.make > +++ b/rules/libgpiod.make > @@ -14,8 +14,8 @@ PACKAGES-$(PTXCONF_LIBGPIOD) +=3D libgpiod > # > # Paths and names > # > -LIBGPIOD_VERSION :=3D 2.1.3 > -LIBGPIOD_MD5 :=3D dd37487da746569b7311b2c8fd2f907d > +LIBGPIOD_VERSION :=3D 2.2.2 > +LIBGPIOD_MD5 :=3D 11e80ef978c7dbffc6f16dbac412ce42 > LIBGPIOD :=3D libgpiod-$(LIBGPIOD_VERSION) > LIBGPIOD_SUFFIX :=3D tar.gz > LIBGPIOD_URL :=3D https://www.kernel.org/pub/software/libs/libgpiod/$(L= IBGPIOD).$(LIBGPIOD_SUFFIX) > @@ -45,15 +45,18 @@ LIBGPIOD_CONF_OPT :=3D \ > --disable-tests \ > --disable-profiling \ > --disable-examples \ > + --$(call ptx/endis, PTXCONF_LIBGPIOD_DBUS_DAEMON)-bindings-glib \ > + --disable-introspection \ Tab instead of space after "introspection". > + --$(call ptx/endis, PTXCONF_LIBGPIOD_DBUS_DAEMON_SYSTEMD)-systemd \ > + --$(call ptx/endis, PTXCONF_LIBGPIOD_DBUS_DAEMON)-dbus \ It seems to be customary to sort the options to make scripts/configure_helper.py silent, even if this script has a --sort option. > --$(call ptx/endis, PTXCONF_LIBGPIOD_CXX)-bindings-cxx \ > --$(call ptx/endis, PTXCONF_LIBGPIOD_PYTHON3)-bindings-python \ > --disable-bindings-rust > =20 > LIBGPIOD_CONF_ENV :=3D \ > $(CROSS_ENV) \ > - $(if $(PTXCONF_LIBGPIOD_PYTHON3), \ > - ac_cv_path_PYTHON=3D$(CROSS_PYTHON3) \ > - ac_cv_prog_has_python_config=3Dpython$(PYTHON3_MAJORMINOR)-config) Reversion of commit 0b38f33360be9221c1bca62f7023ffdcb9a9c0e5 went wrong, only ac_cv_prog_has_python_config has to be removed, the other lines joined into one. > + systemdsystemunitdir=3D/usr/lib/systemd/system > + =09 Whitespace error introduced, this blank line is superfluous anyway. > =20 > LIBGPIOD_LDFLAGS:=3D -Wl,-rpath-link,$(LIBGPIOD_DIR)/lib/.libs > =20 > @@ -63,6 +66,8 @@ LIBGPIOD_TOOLS-$(PTXCONF_LIBGPIOD_GPIOGET) +=3D gpioget > LIBGPIOD_TOOLS-$(PTXCONF_LIBGPIOD_GPIOSET) +=3D gpioset > LIBGPIOD_TOOLS-$(PTXCONF_LIBGPIOD_GPIOMON) +=3D gpiomon > LIBGPIOD_TOOLS-$(PTXCONF_LIBGPIOD_GPIONOTIFY) +=3D gpionotify > +LIBGPIOD_TOOLS-$(PTXCONF_LIBGPIOD_DBUS_DAEMON) +=3D gpio-manager > +LIBGPIOD_TOOLS-$(PTXCONF_LIBGPIOD_DBUS_DAEMON) +=3D gpiocli > =20 > # ----------------------------------------------------------------------= ------ > # Target-Install > @@ -84,6 +89,19 @@ $(STATEDIR)/libgpiod.targetinstall: > /usr/bin/$$tool); \ > done > =20 > +ifdef PTXCONF_LIBGPIOD_DBUS_DAEMON > + @$(call install_tree, libgpiod, 0, 0, -, /usr/share/dbus-1/interfaces) > + @$(call install_tree, libgpiod, 0, 0, -, /etc/dbus-1/system.d) > + @$(call install_lib, libgpiod, 0, 0, 0644, libgpiodbus) > + @$(call install_lib, libgpiod, 0, 0, 0644, libgpiod-glib) > +endif > +ifdef PTXCONF_LIBGPIOD_DBUS_DAEMON_SYSTEMD > + @$(call install_tree, libgpiod, 0, 0, -, /usr/lib/udev/rules.d) > + @$(call install_alternative, libgpiod, 0, 0, 0644, \ > + /usr/lib/systemd/system/gpio-manager.service) > + @$(call install_link, libgpiod, ../gpio-manager.service, \ > + /usr/lib/systemd/system/multi-user.target.wants/gpio-manager.service) > +endif License information further above has to be extended for the new tools and files. See "COPYING" and grep for "SPDX-License-Identifier" in "dbus" directory. > ifdef PTXCONF_LIBGPIOD_CXX > @$(call install_lib, libgpiod, 0, 0, 0644, libgpiodcxx) > endif >=20 > base-commit: 51f6fea554acb994e4f082af28077e82aab221cc > --=20 > 2.50.0 Do Python bindings build in your setup? Not for me and that was the reason why I didn't yet update to v2.2.x. I didn't have enough time and knowledge to handle this error (the wrong revert has been corrected before invoking "ptxdist compile libgpiod"): make[4]: Entering directory '/home/.../build-target/libgpiod-2.2.2/bindin= gs/python' CFLAGS=3D"-I/home/.../build-target/libgpiod-2.2.2/include/ -I/home/.../bu= ild-target/libgpiod-2.2.2/tests/gpiosim \ -L/home/.../build-target/libgpiod-2.2.2/lib/.libs/ -L/home/.../build-targ= et/libgpiod-2.2.2/tests/gpiosim/.libs/" \ /home/.../sysroot-cross/usr/bin/python3.13 -m build * Creating venv isolated environment... =20 Traceback (most recent call last): File "/home/.../sysroot-host/usr/lib/python3.13/site-packages/build/__m= ain__.py", line 375, in main built =3D build_call( args.srcdir, outdir, distributions, config_settings, not args.no_= isolation, args.skip_dependency_check ) File "/home/.../sysroot-host/usr/lib/python3.13/site-packages/build/__m= ain__.py", line 235, in build_package_via_sdist sdist =3D _build(isolation, builder, outdir, 'sdist', config_settings= , skip_dependency_check) File "/home/.../sysroot-host/usr/lib/python3.13/site-packages/build/__m= ain__.py", line 145, in _build return _build_in_isolated_env(builder, outdir, distribution, config_s= ettings) File "/home/.../sysroot-host/usr/lib/python3.13/site-packages/build/__m= ain__.py", line 109, in _build_in_isolated_env with _IsolatedEnvBuilder() as env: ~~~~~~~~~~~~~~~~~~~^^ File "/home/.../sysroot-host/usr/lib/python3.13/site-packages/build/env= .py", line 107, in __enter__ executable, scripts_dir =3D _create_isolated_env_venv(self._path) ~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^ File "/home/.../sysroot-host/usr/lib/python3.13/site-packages/build/env= .py", line 279, in _create_isolated_env_venv pip_distribution =3D next(iter(metadata.distributions(name=3D'pip', p= ath=3D[purelib]))) # type: ignore[no-untyped-call] StopIteration =20 ERROR=20 make[4]: *** [Makefile:720: all-local] Error 1 I found this related pybuild issue, but didn't get to a solution: https://github.com/pypa/build/issues/266 Markus=