From mboxrd@z Thu Jan 1 00:00:00 1970 Delivery-date: Thu, 08 Jul 2021 07:00:14 +0200 Received: from metis.ext.pengutronix.de ([2001:67c:670:201:290:27ff:fe1d:cc33]) by lore.white.stw.pengutronix.de with esmtp (Exim 4.92) (envelope-from ) id 1m1M90-0001Wx-34 for lore@lore.pengutronix.de; Thu, 08 Jul 2021 07:00: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 1m1M8z-0002gw-RW; Thu, 08 Jul 2021 07:00: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 1m1M8O-0002go-KQ for ptxdist@pengutronix.de; Thu, 08 Jul 2021 06:59:36 +0200 Received: from mol by ptx.hi.pengutronix.de with local (Exim 4.92) (envelope-from ) id 1m1M8O-0000uK-BQ for ptxdist@pengutronix.de; Thu, 08 Jul 2021 06:59:36 +0200 Date: Thu, 8 Jul 2021 06:59:36 +0200 From: Michael Olbrich To: ptxdist@pengutronix.de Message-ID: <20210708045936.GK11231@pengutronix.de> Mail-Followup-To: ptxdist@pengutronix.de References: <20210622163504.11158-1-jon@ringle.org> <20210625094053.GA4015839@pengutronix.de> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: X-Sent-From: Pengutronix Hildesheim X-URL: http://www.pengutronix.de/ X-IRC: #ptxdist @freenode X-Accept-Language: de,en X-Accept-Content-Type: text/plain X-Uptime: 06:57:08 up 140 days, 8:21, 95 users, load average: 0.02, 0.05, 0.08 User-Agent: Mutt/1.10.1 (2018-07-13) Subject: Re: [ptxdist] [PATCH] host-systemd: Add option to install dev files 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 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit 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 Wed, Jul 07, 2021 at 05:06:56PM -0400, Jon Ringle wrote: > On Fri, Jun 25, 2021 at 5:41 AM Michael Olbrich > wrote: > > > On Tue, Jun 22, 2021 at 04:35:04PM +0000, jon@ringle.org wrote: > > > From: Jon Ringle > > > > > > Doing a full install that include dev files is > > > helpful if a project needs this support. > > > > > > I created a host-sdbus-cpp project that depends > > > on libsystemd. The -Drootprefix=/ was required > > > to have cmake pkg-config work properly. > > > > > > Signed-off-by: Jon Ringle > > > --- > > > rules/host-systemd.in | 7 +++++++ > > > rules/host-systemd.make | 7 +++++++ > > > 2 files changed, 14 insertions(+) > > > > > > diff --git a/rules/host-systemd.in b/rules/host-systemd.in > > > index f80d9de10..828694f80 100644 > > > --- a/rules/host-systemd.in > > > +++ b/rules/host-systemd.in > > > @@ -7,3 +7,10 @@ config HOST_SYSTEMD > > > select HOST_GPERF > > > select HOST_UTIL_LINUX_NG > > > select HOST_LIBCAP > > > + > > > +config HOST_SYSTEMD_INSTALL_DEV > > > + bool > > > + default n > > > + help > > > + Install host systemd development headers/libs > > > + > > > diff --git a/rules/host-systemd.make b/rules/host-systemd.make > > > index 42409d7b5..58b44a683 100644 > > > --- a/rules/host-systemd.make > > > +++ b/rules/host-systemd.make > > > @@ -20,6 +20,7 @@ HOST_SYSTEMD_CONF_TOOL := meson > > > HOST_SYSTEMD_CONF_OPT := \ > > > $(HOST_MESON_OPT) \ > > > -Dprefix=/usr \ > > > + -Drootprefix=/ \ > > > > This breaks hwdb: The path for the output file is hardcoded as > > "${destdir}${rootprefix}/lib/udev/hwdb.bin" > > > > This breaks hwdb for the host package? > > > > Hmmm, maybe we could add '/usr' to the destdir. Please try that. This is > > the '--root' argument the systemd-hwdb package. > > If it works then the systemd-hwdb package should generate a hwdb that is > > about 10MB in size. > > > > If it works, remove the prefix instead of adding the rootprefix. > > > > > I'm trying to work out how the systemd-hwdb package relates to the > host-systemd package... host-systemd provides the systemd-hwdb host tool that the systemd-hwdb package uses to generate the hwdb database at build-time. The (relative) path, where the database is created is hardcoded and defined by the rootprefix. 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 | _______________________________________________ ptxdist mailing list ptxdist@pengutronix.de To unsubscribe, send a mail with subject "unsubscribe" to ptxdist-request@pengutronix.de