From mboxrd@z Thu Jan 1 00:00:00 1970 Delivery-date: Fri, 30 Sep 2022 17:44:14 +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 1oeIBS-001Xfs-Ba for lore@lore.pengutronix.de; Fri, 30 Sep 2022 17:44:14 +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 1oeIBR-0000DE-AV; Fri, 30 Sep 2022 17:44:13 +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 1oeIB9-0000Cr-A3; Fri, 30 Sep 2022 17:43:55 +0200 Received: from mol by ptx.hi.pengutronix.de with local (Exim 4.92) (envelope-from ) id 1oeIB8-000427-Vw; Fri, 30 Sep 2022 17:43:54 +0200 Date: Fri, 30 Sep 2022 17:43:54 +0200 From: Michael Olbrich To: Ladislav Michl Message-ID: <20220930154354.GH19316@pengutronix.de> Mail-Followup-To: Ladislav Michl , ptxdist@pengutronix.de References: 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] Missing systemd-hwdb dependency? 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 On Fri, Sep 30, 2022 at 05:12:07PM +0200, Ladislav Michl wrote: > On Fri, Sep 30, 2022 at 03:55:47PM +0200, Ladislav Michl wrote: > > While updating BSP to current git, build stops there: > > > > ---------------------------- > > target: systemd-hwdb.install > > ---------------------------- > > > > Removing files from sysroot... > > > > install: creating directory '{BSP}/platform-armv7a/packages/systemd-hwdb-1/usr/lib/udev' > > /usr/bin/bash: line 1: {BSP}/platform-armv7a/sysroot-host/bin/systemd-hwdb: No such file or directory > > make: *** [{PTXDIST}/rules/systemd-hwdb.make:26: {BSP}/platform-armv7a/state/systemd-hwdb.install] Error 127 > > > > The systemd-hwdb.install rule needs host-systemd, but that is not selected as > > select SYSTEMD_HWDB if SYSTEMD_UDEV_HWDB && RUNTIME > > is used in rules/systemd.in. > > Removing 'RUNTIME' obviously fixes problem. > > and in fact, it was done this way until 8b17816376e3 > "systemd: move dependencies to the toplevel option" > changed that. Michael? > > > How is that intended to be working? The intention was that systemd only needs systemd-hwdb at runtime and not at build-time. So we have the 'if RUNTIME' here. And systemd-hwdb needs host-systemd, so it selects it. The problem is in the way 'if RUNTIME' is implemented: kconfig runs with RUNTIME. Since systemd-hwdb has no prompt, it is disabled entirely so the build-time dependency systemd-hwdb -> host-systemd is not added :-/. I'll think about this some more, but I think removing the 'if RUNTIME' is the best solution. I'll fix it. 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 |