Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 17 May 2015 17:53:52 -0700
From:      Cy Schubert <Cy.Schubert@komquats.com>
To:        Andrew Turner <andrew@fubar.geek.nz>
Cc:        Cy Schubert <cy@FreeBSD.org>, src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   Re: svn commit: r282415 - head/usr.sbin/ntp
Message-ID:  <201505180053.t4I0rqv4020640@slippy.cwsent.com>
In-Reply-To: Message from Andrew Turner <andrew@fubar.geek.nz> of "Sun, 17 May 2015 19:08:10 %2B0100." <20150517190810.4006b7bb@bender.Home>

next in thread | previous in thread | raw e-mail | index | archive | help
In message <20150517190810.4006b7bb@bender.Home>, Andrew Turner writes:
> On Mon, 4 May 2015 12:42:53 +0000 (UTC)
> Cy Schubert <cy@FreeBSD.org> wrote:
> 
> > Author: cy
> > Date: Mon May  4 12:42:52 2015
> > New Revision: 282415
> > URL: https://svnweb.freebsd.org/changeset/base/282415
> > 
> > Log:
> >   Restore CPU dependent compile time conditionals.
> >   
> >   MFC after:	1 month (with r281143 and r282408)
> 
> Do you have any plans on fixing this before you MFC it? Specifically:
>  * sizeof(char *) == 8 on arm64, powerpc64, and mips64
>  * sizeof(long) == 8 on arm64, powerpc64, and mips64
>  * sizeof(time_t) == 8 on arm, arm64, powerpc64, mips, and mips64
>  * STR_SYSTEM is incorrect on arm, arm64, powerpc64, mips, and mips64,
>    however this is now less broken as it was previously also broken on
>    i386, and sparc64.
> 
> This change is only correct for amd64, i386, and sparc64.

That is correct.

> 
> I suspect all of the above will also be relevant on ia64. We still have
> support in 10-STABLE for this so should be fixed before an MFC.

We should support ia64 at least until it's no longer supported in -stable.

> 
> I have heard reports that NTP is broken on some of the above platforms
> so they don't keep very accurate time. Can you fix this, or revert this
> change until a fix can be written.

Unfortunately -stable is currently as broken as it is in -current. The 
quick fix is to add all supported platforms. The other unfortunate fact is 
that, scanning the tree for other examples there's more code as broken as 
this is. I propose:

1. Fix NTP -- I will do this. I have some free time coming up this week to
   focus on this.
2. Identify other parts of the tree needing a little love and either putting
   it up on the wiki or in phabricator.
3. Fix #2 (either me or others as we see fit).

Alternatively, a common solution for all parts of the tree, if possible. 
This is probably a long term solution though. (The purist in me prefers 
this but I am practical too.)


-- 
Cheers,
Cy Schubert <Cy.Schubert@komquats.com> or <Cy.Schubert@cschubert.com>
FreeBSD UNIX:  <cy@FreeBSD.org>   Web:  http://www.FreeBSD.org

	The need of the many outweighs the greed of the few.





Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201505180053.t4I0rqv4020640>