From owner-freebsd-stable@freebsd.org Sun Aug 16 07:10:56 2015 Return-Path: Delivered-To: freebsd-stable@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 1C84F9B9DD0 for ; Sun, 16 Aug 2015 07:10:56 +0000 (UTC) (envelope-from matthew@FreeBSD.org) Received: from smtp.infracaninophile.co.uk (smtp.infracaninophile.co.uk [IPv6:2001:8b0:151:1:3cd3:cd67:fafa:3d78]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.infracaninophile.co.uk", Issuer "infracaninophile.co.uk" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id B062616A6 for ; Sun, 16 Aug 2015 07:10:55 +0000 (UTC) (envelope-from matthew@FreeBSD.org) Received: from liminal.local ([192.168.100.2]) (authenticated bits=0) by smtp.infracaninophile.co.uk (8.15.2/8.15.2) with ESMTPSA id t7G7AniV004248 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NO) for ; Sun, 16 Aug 2015 08:10:50 +0100 (BST) (envelope-from matthew@FreeBSD.org) Authentication-Results: smtp.infracaninophile.co.uk; dmarc=none header.from=FreeBSD.org DKIM-Filter: OpenDKIM Filter v2.10.3 smtp.infracaninophile.co.uk t7G7AniV004248 Authentication-Results: smtp.infracaninophile.co.uk/t7G7AniV004248; dkim=none; dkim-atps=neutral X-Authentication-Warning: lucid-nonsense.infracaninophile.co.uk: Host [192.168.100.2] claimed to be liminal.local Subject: Re: 10.2: ntp update breaks DCF77 clock To: freebsd-stable@freebsd.org References: From: Matthew Seaman X-Enigmail-Draft-Status: N1110 Message-ID: <55D03771.9000605@FreeBSD.org> Date: Sun, 16 Aug 2015 08:10:41 +0100 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:38.0) Gecko/20100101 Thunderbird/38.2.0 MIME-Version: 1.0 In-Reply-To: Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="D4rco389VCFWDJxRvUfDkph6wRknH9mLL" X-Virus-Scanned: clamav-milter 0.98.7 at lucid-nonsense.infracaninophile.co.uk X-Virus-Status: Clean X-Spam-Status: No, score=-2.9 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00 autolearn=ham autolearn_force=no version=3.4.1 X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on lucid-nonsense.infracaninophile.co.uk X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 16 Aug 2015 07:10:56 -0000 This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --D4rco389VCFWDJxRvUfDkph6wRknH9mLL Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable On 15/08/2015 16:46, Christian Weisgerber wrote: > The ntp code is not very transparent, but I think the root cause > are the ntp/config.h changes that came with the 4.2.8p3 update. A > number of previously disabled obscure clock drivers were enabled, > but crucially CLOCK_RAWDCF was disabled, and this is the PARSE > subdriver needed to use the popular DCF77 serial receivers. >=20 > Frankly, it looks like we used to have a carefully considered > selection of clock drivers which has been blindly splattered with > the upstream defaults in the last update. Hmmm.... I suggest raising a PR with patches to revert the changes in the set of enabled clock drivers (or merge with the current list). It's not going to get you a working DCF77 receiver in a -RELEASE version any time soon, I'm afraid, as you'll have to wait until the next release for the changes to percolate down, but having a sensible list of enabled clock drivers in base is definitely a good move. For a more timely solution[*], it looks like the ports is your best option. By default the net/ntp port disables all of the clock drivers, but allows you to configure the port to enable whatever drivers you want. If you built your own package it would be simple to get the right support compiled in. However, that won't help if you're determined to use pre-built packages only, in which case there would need to be a slave port with enabled clock drivers. That's something you could certainly argue for; This is a symptom of the current state of the ports tree -- we've switched over to pkg(8), but we're still working through a lot of changes to fully enable pkg capabilities. A lot of the functionality still only really works if you build your own ports. There are changes planned, like sub-packages and package flavours which should help, but in the case of net/ntp where clock drivers are compiled into the main binary unfortunately those won't apply. If NTP clock drivers were implemented as loadable modules it would be a lot easier... Cheers, Matthew [*] Pun unintentional. --D4rco389VCFWDJxRvUfDkph6wRknH9mLL Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG/MacGPG2 v2.0.20 (Darwin) iQJ8BAEBCgBmBQJV0Dd4XxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w ZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXQ2NTNBNjhCOTEzQTRFNkNGM0UxRTEzMjZC QjIzQUY1MThFMUE0MDEzAAoJELsjr1GOGkAT1bcP/2KEvDKrEAFN/viTlvPFysFB awox39wLxuR9Goil8EXMOI61+vFV88TKna6M2KbwX+KiyBJiFxMvJxrAe4wps0TV faX1lYEvN/INTXyqBqe0xd1VNIWtUomLt17ikgd7hPf26L/RA5S7UMeN22A2yS9j VFt0Z/pGnRmuMyWXspX03s+rn/UyTd9F/XxupcLcudjDIDy4fZ3KoggB0m1yWQ9e HipaJcVrOa0xHTpIQX2DU0mLtm622uNeUvb+V5amgp8emRMng+eMnu9QTNc/q8Do M5XcjyU+jHzkyVJ+a1ITFkghIQvQ1dGXTpsKKVeqt8SNErpU0JbjLpXwNGPse0q/ vCJLYuzClADhbBTICBPCSvmuNajm8SKDIMEm5JaKeTa4Ls+mgGaKlA0+zO2TQd/+ Ijm8BKhfipgcl/058CN1bs9yx6cTWYydiqJIJ0gBZPr/ob+Imcuoms83GRJAEWMK p40Dj+XestMZYhHCu4/EHn2RNHOUmkt2gDixkpH/Md4jbZHqP0do9DH0WF4J1xBd 2zYQHQbzM5ajPBOHposcQ+FIrEOQKRh2ktcsMtQyqobzKs8+knfvfi/aQTU/OJ7H 30uexP9eTWn3V5YsiyKaEeQKuc7hYLvufiO6hwzQluZ0KVWy0wKF67ocdY/IBea+ dzfmjSdpnY7r5V4fyi+r =17Iy -----END PGP SIGNATURE----- --D4rco389VCFWDJxRvUfDkph6wRknH9mLL--