mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
From: Michael Olbrich <m.olbrich@pengutronix.de>
To: Ladislav Michl <oss-lists@triops.cz>
Cc: ptxdist@pengutronix.de
Subject: Re: [ptxdist] Missing systemd-hwdb dependency?
Date: Fri, 30 Sep 2022 17:43:54 +0200	[thread overview]
Message-ID: <20220930154354.GH19316@pengutronix.de> (raw)
In-Reply-To: <YzcHR5ciXEsHwesZ@lenoch>

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 |



      reply	other threads:[~2022-09-30 15:44 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-09-30 13:55 Ladislav Michl
2022-09-30 15:12 ` Ladislav Michl
2022-09-30 15:43   ` Michael Olbrich [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20220930154354.GH19316@pengutronix.de \
    --to=m.olbrich@pengutronix.de \
    --cc=oss-lists@triops.cz \
    --cc=ptxdist@pengutronix.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox