[Buildroot] [PATCH] package/gpsd: do not interact with systemd on install

Thomas Petazzoni thomas.petazzoni at free-electrons.com
Sat May 13 12:58:27 UTC 2017


Hello,

On Sat, 13 May 2017 10:27:36 +0200, Yann E. MORIN wrote:
> When building on a systemd-based host for a systemd-based target, gpsd's
> buildsystem will try to tell systemd to reload the its configuration and
> recreate the entire dependency tree of services.
> 
> Of course, this can not work when run as a user:
>     >>> gpsd 3.16 Installing to target  
>     ==== AUTHENTICATING FOR org.freedesktop.systemd1.reload-daemon ===
>     Authentication is required to reload the systemd state.
>     Authenticating as: root
>     Password:
> 
> In fact, this does not even mean anything in cross-compilation.
> 
> Fortunately, upstream has already fixed their sin, so we backport it
> (tweaked to apply onto 3.16).
> 
> Signed-off-by: "Yann E. MORIN" <yann.morin.1998 at free.fr>
> Cc: Gustavo Zacarias <gustavo at zacarias.com.ar>
> 
> ---
> Note: this was never observed in any of the autobuilders, even those
> running on a systemd-based distro, because in this case stdin is
> redirected and systemctl simply fails, but the construct is just to
> ignore the failure, so the build proceeds; the issue only occurs when
> there is an actual terminal to provide user input... :-/
> ---
>  ...eract-with-systemctl-when-cross-compiling.patch | 41 ++++++++++++++++++++++
>  1 file changed, 41 insertions(+)
>  create mode 100644 package/gpsd/0001-do-not-interact-with-systemctl-when-cross-compiling.patch

Applied to master, thanks.

Thomas
-- 
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com



More information about the buildroot mailing list