[pkg-ntp-maintainers] Bug#691672: Bug#691672: Debian Wheezy (testing) ntp is build without ppsapi

Ulrich Zehl ulrich-debian at topfen.net
Wed Aug 28 18:17:36 UTC 2013


On Sun, Oct 28, 2012 at 12:35:55PM +0100, Kurt Roeckx wrote:
> 
> Do you know if the ppsapi has been added to the standard kernel,
> and that it's enabled in Debian by default?

According to http://www.linuxpps.org/wiki/index.php/LinuxPPS_installation:

| As of kernel 2.6.34 there is no need for patching to get basic LinuxPPS
| support working. You can use kernel.org 2.6.34 directly.

It is enabled by default in wheezy and jessie kernels:

$ grep PPS linux-3.2.46/debian/config/config | grep -v ^#
CONFIG_PPS=m
CONFIG_PPS_CLIENT_LDISC=m
CONFIG_PPS_CLIENT_PARPORT=m

$ grep PPS /boot/config-3.2.0-4-amd64 | grep -v ^#
CONFIG_PPS=m
CONFIG_PPS_CLIENT_LDISC=m
CONFIG_PPS_CLIENT_PARPORT=m

$ grep PPS /boot/config-3.10-2-amd64 | grep -v ^#
CONFIG_PPS=m
CONFIG_PPS_CLIENT_LDISC=m
CONFIG_PPS_CLIENT_PARPORT=m

Therefore, please enable PPS support in ntp by default.

All that is needed is a build dependency on pps-tools so that
/usr/include/sys/timepps.h is installed, which ntp's configure uses to
detect PPS support.

A patch is attached for your convenience (note that it also marks #241548
as closeed, because the Oncore driver is now automatically enabled via
--enable-all-clocks).

Ulrich


diff -urN ntp-4.2.6.p5+dfsg.orig/debian/changelog ntp-4.2.6.p5+dfsg/debian/changelog
--- ntp-4.2.6.p5+dfsg.orig/debian/changelog	2013-05-20 16:18:52.000000000 +0200
+++ ntp-4.2.6.p5+dfsg/debian/changelog	2013-08-28 20:14:51.136458932 +0200
@@ -1,3 +1,10 @@
+ntp (1:4.2.6.p5+dfsg-4) UNRELEASED; urgency=low
+
+  * Enable PPS support by listing pps-tools as build dependency
+    (Closes: #691672, #241548)
+
+ -- Ulrich Zehl <ulrich-debian at topfen.net>  Wed, 28 Aug 2013 19:55:54 +0200
+
 ntp (1:4.2.6.p5+dfsg-3) unstable; urgency=low
 
   * Look for <openssl/opensslv.h> rather than <openssl/opensslconf.h>, which
diff -urN ntp-4.2.6.p5+dfsg.orig/debian/control ntp-4.2.6.p5+dfsg/debian/control
--- ntp-4.2.6.p5+dfsg.orig/debian/control	2013-05-20 16:13:34.000000000 +0200
+++ ntp-4.2.6.p5+dfsg/debian/control	2013-08-28 20:14:51.260458474 +0200
@@ -3,7 +3,7 @@
 Priority: optional
 Maintainer: Debian NTP Team <pkg-ntp-maintainers at lists.alioth.debian.org>
 Uploaders: Bdale Garbee <bdale at gag.com>, Peter Eisentraut <petere at debian.org>, Kurt Roeckx <kurt at roeckx.be>
-Build-Depends: autotools-dev, debhelper (>= 6), libedit-dev, libcap2-dev [linux-any], libssl-dev (>= 1.0.0e-1), autogen (>= 1:5.11)
+Build-Depends: autotools-dev, debhelper (>= 6), libedit-dev, libcap2-dev [linux-any], libssl-dev (>= 1.0.0e-1), autogen (>= 1:5.11), pps-tools
 Build-Conflicts: libavahi-compat-libdnssd-dev, libwww-dev, libwww-ssl-dev
 Standards-Version: 3.9.3
 Homepage: http://support.ntp.org/



More information about the pkg-ntp-maintainers mailing list