git lesson please

2017-12-12 Thread Hal Murray via devel
devel@ntpsec.org said: > Er, whoops! I broke that as part of my fix for improperly generated files. > Should be fixed now. Thanks. Is there a simple way to do a git pull when I have edits in progress? [murray@hgm raw]$ git pull error: cannot pull with rebase: You have unstaged changes. error:

Re: Bite of the Buildbugs!

2017-12-12 Thread Richard Laager via devel
On 12/12/2017 07:12 PM, Sanjeev Gupta via devel wrote: > As a start, as Richard has already done the work of packaging ntpsec for > Debian, perhaps we could include his "patches" in HEAD? No patching was necessary (for this issue). --prefix=/usr works fine. -- Richard ___

Re: version stuff, autorevision

2017-12-12 Thread Ian Bruene via devel
On 12/12/2017 08:04 PM, Hal Murray via devel wrote: Something broke in my setup and I can't figure out what's going on. Er, whoops! I broke that as part of my fix for improperly generated files. Should be fixed now. -- /"In the end; what separates a Man, from a Slave? Money? Power? No. A

version stuff, autorevision

2017-12-12 Thread Hal Murray via devel
Something broke in my setup and I can't figure out what's going on. I build/test on one system, then scp to other systems so I can build and test there. The scp step skips .git to reduce clutter and save network time. Some of the other systems don't even have git installed. I have a kludge i

Re: Bite of the Buildbugs!

2017-12-12 Thread Sanjeev Gupta via devel
> 2. Provide tools, options and support, for binary downstreams (Debian, > Mint, etc.), to repackage ntpsec components as binaries, integrated with > their install tools. As a start, as Richard has already done the work of packaging ntpsec for Debian, perhaps we could include his "patches" in HEAD

Re: Type for uptime in seconds

2017-12-12 Thread Hal Murray via devel
> I'd just do "typedef uint32_t uptime_t;" somewhere, myself. There isn't a > system type devoted to this sort of thing; closest would be clock_t. The > units for that are not specified, but are often microseconds. Thanks. That's just what I was looking for. I'm running with it. Feels good.

Re: Type for uptime in seconds

2017-12-12 Thread Eric S. Raymond via devel
Hal Murray via devel : > Context is Issue #424 > > It's simple to change the counters to 64 bits. But a few of the relevant > variables are uptime in seconds. Is there a good type to use for them? > time_t is misleading. current_time is seconds since ntpd was started not > seconds since 197

Re: Bite of the Buildbugs!

2017-12-12 Thread Richard Laager via devel
On 12/11/2017 07:45 PM, Gary E. Miller via devel wrote:> Binary distro installs, unexpectedly to some, go into a temporary> location (/var/tmp/XX?). Not that it matters much, but just for clarification... For Debian, the temp location is ./debian/tmp (where . is the source tree). For RedHat, it oft

Type for uptime in seconds

2017-12-12 Thread Hal Murray via devel
Context is Issue #424 It's simple to change the counters to 64 bits. But a few of the relevant variables are uptime in seconds. Is there a good type to use for them? time_t is misleading. current_time is seconds since ntpd was started not seconds since 1970. unsigned long current_time;