From mboxrd@z Thu Jan 1 00:00:00 1970 Delivery-date: Fri, 08 Dec 2023 08:38:10 +0100 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 1rBVR3-008JYm-2A for lore@lore.pengutronix.de; Fri, 08 Dec 2023 08:38:10 +0100 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 1rBVR4-0008P6-0p; Fri, 08 Dec 2023 08:38:10 +0100 Received: from mout.kundenserver.de ([212.227.126.133]) by metis.whiteo.stw.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1rBVQf-0008Ow-Du for ptxdist@pengutronix.de; Fri, 08 Dec 2023 08:37:46 +0100 Received: from Laptop-RR ([93.203.105.231]) by mrelayeu.kundenserver.de (mreue009 [212.227.15.167]) with ESMTPSA (Nemesis) id 1MZkxj-1qhVZ11ZSh-00Wm8E for ; Fri, 08 Dec 2023 08:37:44 +0100 Date: Fri, 8 Dec 2023 08:37:14 +0100 From: ruggero To: ptxdist@pengutronix.de Message-ID: <20231208083714.0991e973@Laptop-RR> Organization: AtB Biomag X-Mailer: Claws Mail 4.2.0 (GTK 3.24.38; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Provags-ID: V03:K1:VEL3SyrSHqyuBhsYrCSZ193FZ5Ye8L9aYsKPN4kJ++ev8ZXfZfq h9SNVwRoZOiEzbLHxgZsNXXGjHJv4d5xmaNJL/bdEMOu2rAHLjniToKhjew0eEvCyTLoygJ Z2ByzsaJUNZyGjKwKA/M7JYt6iblKiCyt8BJbhwMABU1k1aM9yqYftpwxS2A/BU1AEM/+qW HYZgIqYxWkC41Zs7tsCYA== UI-OutboundReport: notjunk:1;M01:P0:KXs/PkPfdTE=;sOEejS7U9+RfGtDHmpcT7CUZdaH ZXFHPgsvvQpyvHwnjRUGZKVwpfXTdrd9DjDKfC6YtN/xDTTa2pK79v7Ev1k5GQAleBFMQjFvs URH5/fEarDS3J//7IwXNREDoIigyGVtucRAixfLdyA7wBhWTil4/ra26PBPqSvoTaHimx+VUD CccMpX6hXhrjbYiRjUkG3RQU6dJbRVVBuhA6FV2Wnf93EpqQE9w54h0jiFurRJFR6nyCeTVHM /kIAzvwveH9x+OA3RNBR2RmC7hTZldKPfLP7/kvERqkHR7e0MF7nWbAy776xlvh2u4a75/eBU 9jOLom6JvTom0LLkJDSPpMpbLcU2YmlczoL8dKv9n4CS0VLeyAH3F/+C4OBEdt9RugpTcYIFz rvQQadTPd/Mc9ZvUIwdqGzeF39JqdyFABFI7pAIX5onSIkgzTIslnRYiigloiXRK8r1PxFNw6 Ea+UtH9+qE0x3RXsjfKHHwP0Z0ER1cUMzYGR/EAmkRdDaxYTHlDP1rQuMdCRClmDj/NmaFKRb mRHPmNcspbFp6TU3dkyiCpEgbM0tfafReyFtUarXdl2hiPDY+QeV4BkRyO0bWzrAvv8EciaR5 PXwaQ6YaCYOTEIyzQZeBjec4j9vnNY14Kshi5yl1M+zbVrjBjHQvA9LfgC9nczXEaL1ltv8Pq fyWVRvcNQg6ooeqjABZ+2gcrKfIjin5xAnrw4RqbT+qduYINj7UGhRDV41SP9S1kxwMVeIsNy Zjt251B3Z9pGT8Ptvp6ZsGIA3dIZOsOch6EzM/LdKBY/xt4/tB1rS8HMNZgXzL/fjhP6VEw3z rRflI7FwdiuBUQvpSEP0oudNo8fiv4Rr79iuYdJwfbpzUV7NgmiRtVKUbN7EOFpLgphkOZkY1 OXejbs9Jt8cgawg== 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=-1.9 required=4.0 tests=BAYES_00, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.2 Subject: [ptxdist] Problems compiling package dbus with ptxdist 2023.11.0 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.whiteo.stw.pengutronix.de); SAEximRunCond expanded to false Hello everybody, I hope I'm posting on the right mailing list - if not, please redirect me. I'm having a problem while migrating from ptxdist.2023.09.0 to ptxdist.2023.11.0 Package dbus fails to install. The relevant messages are the following: make: *** [/usr/local/lib/ptxdist-2023.10.0/rules/post/ptxd_make_world_install.make:41: /...../platform-phyFLEX-i.MX6/state/dbus.install] Error 1 Traceback (most recent call last): File "/...../platform-phyFLEX-i.MX6/build-target/dbus-1.15.8/meson_post_install.py", line 106, in post_install_exe() File ".......x/platform-phyFLEX-i.MX6/build-target/dbus-1.15.8/meson_post_install.py", line 95, in post_install_exe os.chown(exe_path, 0, grp.getgrnam(dbus_user).gr_gid) ^^^^^^^^^^^^^^^^^^^^^^^ KeyError: "getgrnam(): name not found: 'messagebus'" It looks like, that a python script now takes care of some phasis of the installation, and the python script fails. The same problem occurs also migrating from ptxdist.2023.09.0 to ptxdist.2023.10.0 (where the new version of dbus with the meson installer was introduced), and migrating form ptxdist.2023.09.0 to ptxdist.2023.12.0 (the very last published version). I did some investigations: The installer calls the python script meson_post_install.py. The python scripts uses the native host python, since the build-host python will be compiled later. The relevant part of the failing script is the following: def post_install_exe(): # Setuid, chmod and chown for dbus-daemon-launch-helper daemon_launch_helper = get_target('dbus-daemon-launch-helper') if daemon_launch_helper: import grp exe_name =os.path.basename(daemon_launch_helper['install_filename'][0]) exe_path = abs_libexecdir / exe_name dbus_user = get_option('dbus_user') ####### dbus_user is 'messagebus' if os.getuid() == 0: os.chown(exe_path, 0, grp.getgrnam(dbus_user).gr_gid) ####<<<--- error occurs here os.chmod(exe_path, stat.S_ISUID | stat.S_IXUSR | stat.S_IXGRP) else: print('Not installing {0} binary setuid!'.format(exe_path)) print('You\'ll need to manually set permissions to root:{0} and permissions 4750'.format(dbus_user) ) The problem seems to be that grp.getgrnam(dbus_user) search on the host native /etc/group, and not in the target /etc/group (that is still to be generated), and I do not have a messagebus user [and nobody can say that my messagebus has the same gid as the target]. Even if I manually targetinstall rootfs (it provides root/etc/group) and host-python, the error persists: the script continues to read the host native /etc/group (retrieving the GroupID of my user succeeds). Any opinion / suggestion? Ruggero