gpsd-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH 3/3] SConstruct: Use 'target' option to decide whenewer to re


From: Gary E. Miller
Subject: Re: [PATCH 3/3] SConstruct: Use 'target' option to decide whenewer to restart systemd
Date: Tue, 4 Feb 2020 14:16:43 -0800

Yo Ladislav!

On Tue, 4 Feb 2020 01:37:06 +0100
Ladislav Michl <address@hidden> wrote:

> > I have updated "scons -h" to try to make the "target" and "sysroot"
> > options more clear.  
> 
> Typo "toolchaons".

Thanks.  Fix pushed.

> And it is really directory? Seems to be prefix:

Can you cite a toolchain that uses it as a prefix?  Is so, please suggest
improved help text.

> Yes, that is a valid point. I just didn't want touch too much, so I
> used scons option "target". It is already used the same way when
> deciding time_t size (SConstruct reads):
>     if env['target']:
>         announce("Not checking sizeof(time_t) when cross-compiling")
>         sizeof_time_t = 8

Once again, not necessarily cross-compiling.  Just as likely to be
a secondary run environment.

> > Maybe gpsd needs an "I am cross-compiling" option?  
> 
> I'd rather avoid adding new options, since daemon reaload is meant
> to ease development here, so (mis)using 'target' seem less evil
> thing to do.

I also avoid new options, but it is better than mis using existing ones.

Why do you care the "systemd reload" gets run?  Zero side effects.

> Searching for cross compilation using scons I came to
> https://github.com/SCons/scons/wiki/PlatformToolConfig
> Is it still only a draft?

I have no idea.  In this case, we are talking about the gpsd SConstruct,
so that does not apply.

> > As it stands now, if systemd if not found, or the scons options
> > systemd=False is set, then the "systemctl daemon-reload" is not run.
> > 
> > I assume that you want systemd=True, so that the systemd files get
> > installed in DESTDIR.  But you do not want "systemctl
> > daemon-reload" to run.  
> 
> Yes, that is my use case.

Why do you care?  Zero side effects.

> > Reloading the daemon is benign, having zero bad side effects.  But
> > for OCD purposes, maybe improving the situtation is worth effort.  
> 
> It does not happen at all, running scons as ordinary user. I guess
> it should also not happen when installing to DESTDIR, because then
> nothing changes for systemd.

Once again, what's the problem?

RGDS
GARY
---------------------------------------------------------------------------
Gary E. Miller Rellim 109 NW Wilmington Ave., Suite E, Bend, OR 97703
        address@hidden  Tel:+1 541 382 8588

            Veritas liberabit vos. -- Quid est veritas?
    "If you can't measure it, you can't improve it." - Lord Kelvin

Attachment: pgphnrAfW3x9f.pgp
Description: OpenPGP digital signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]