pkgsrc-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: pkg/47149 (net/ntp4 fails to ntp.conf)
The following reply was made to PR pkg/47149; it has been noted by GNATS.
From: =?ISO-2022-JP?B?GyRCQFA6amZGQkAbKEI=?= <zakinko%snowrabbit.org@localhost>
To: gnats-bugs%netbsd.org@localhost
Cc:
Subject: Re: pkg/47149 (net/ntp4 fails to ntp.conf)
Date: Fri, 2 Nov 2012 19:10:21 +0900
--f46d04339cdeecdb5004cd8057bb
Content-Type: text/plain; charset=ISO-8859-1
pkg/47149 should not be closed.
pkg/47149 issues the original ntp4 configure bug (So, NTP4 team should
fix it ;-).
"/etc/ntp.conf" path is hard-coded in ntp4 source codes though pkgsrc
does not modify the path of them.
Pkgsrc "/etc/rc.d" scripts check the existence of
@PKG_SYSCONFDIR@/ntp.conf but /usr/pkg/bin/*ntp* tries to read
/etc/ntp.conf since it is hard-coded. This causes WARNING of rc.d
scripts.
./files/ntpd.sh:required_
files="@PKG_SYSCONFDIR@/ntp.conf"
./files/ntpdate.sh: ' <@PKG_SYSCONFDIR@/ntp.conf`
The following patches (SHAR) fix the hard-conding but the
corresponding configure fixes must be needed.
echo x - patches/patch-za
sed 's/^X//' >patches/patch-za << 'END-of-patches/patch-za'
X--- include/ntp_config.h 2006-12-28 21:03:04.000000000 +0900
X+++ include/ntp_config.h 2012-11-02 18:25:44.000000000 +0900
X@@ -3,7 +3,7 @@
X */
X #ifndef CONFIG_FILE
X # ifndef SYS_WINNT
X-# define CONFIG_FILE "/etc/ntp.conf"
X+# define CONFIG_FILE "@PKG_SYSCONFDIR@/ntp.conf"
X # else /* SYS_WINNT */
X # define CONFIG_FILE "%windir%\\system32\\drivers\\etc\\ntp.conf"
X # define ALT_CONFIG_FILE "%windir%\\ntp.conf"
END-of-patches/patch-za
echo x - patches/patch-zb
sed 's/^X//' >patches/patch-zb << 'END-of-patches/patch-zb'
X--- ntpd/ntpdbase-opts.def 2008-03-22 20:03:22.000000000 +0900
X+++ ntpd/ntpdbase-opts.def 2012-11-02 18:26:13.000000000 +0900
X@@ -74,7 +74,7 @@
X descrip = "configuration file name";
X doc = <<- _EndOfDoc_
X The name and path of the configuration file,
X- /etc/ntp.conf
X+ @PKG_SYSCONFDIR@/ntp.conf
X by default.
X _EndOfDoc_;
X };
X@@ -104,7 +104,7 @@
X This is the same operation as the
X driftfile driftfile
X configuration specification in the
X- /etc/ntp.conf
X+ @PKG_SYSCONFDIR@/ntp.conf
X file.
X _EndOfDoc_;
X };
X
END-of-patches/patch-zb
echo x - patches/patch-zc
sed 's/^X//' >patches/patch-zc << 'END-of-patches/patch-zc'
X--- ntpd/ntpd-opts.texi 2009-12-08 22:13:11.000000000 +0900
X+++ ntp-4.2.4p8.new/ntpd/ntpd-opts.texi 2012-11-02
18:32:24.000000000 +0900
X@@ -200,7 +200,7 @@
X
X This is the ``configuration file name'' option.
X The name and path of the configuration file,
X-/etc/ntp.conf
X+@PKG_SYSCONFDIR@/ntp.conf
X by default.
X
X @node ntpd debug-level
X@@ -247,7 +247,7 @@
X This is the same operation as the
X driftfile driftfile
X configuration specification in the
X-/etc/ntp.conf
X+@PKG_SYSCONFDIR@/ntp.conf
X file.
X
X @node ntpd panicgate
END-of-patches/patch-zc
echo x - patches/patch-zd
sed 's/^X//' >patches/patch-zd << 'END-of-patches/patch-zd'
X--- ntpd/ntpd.1 2009-12-08 22:13:11.000000000 +0900
X+++ ntp-4.2.4p8.new/ntpd/ntpd.1 2012-11-02 18:32:29.000000000 +0900
X@@ -59,7 +59,7 @@
X configuration file name.
X .sp
X The name and path of the configuration file,
X-/etc/ntp.conf
X+@PKG_SYSCONFDIR@/ntp.conf
X by default.
X .TP
X .BR \-d ", " \--debug-level
X@@ -84,7 +84,7 @@
X This is the same operation as the
X driftfile driftfile
X configuration specification in the
X-/etc/ntp.conf
X+@PKG_SYSCONFDIR@/ntp.conf
X file.
X .TP
X .BR \-g ", " \--panicgate
END-of-patches/patch-zd
echo x - patches/patch-ze
sed 's/^X//' >patches/patch-ze << 'END-of-patches/patch-ze'
X--- ntpd/ntpdsim-opts.texi 2009-12-08 22:13:15.000000000 +0900
X+++ ntp-4.2.4p8.new/ntpd/ntpdsim-opts.texi 2012-11-02 18:32:
07.000000000 +0900
X@@ -216,7 +216,7 @@
X
X This is the ``configuration file name'' option.
X The name and path of the configuration file,
X-/etc/ntp.conf
X+@PKG_SYSCONFDIR@/ntp.conf
X by default.
X
X @node ntpdsim phasenoise
X@@ -270,7 +270,7 @@
X This is the same operation as the
X driftfile driftfile
X configuration specification in the
X-/etc/ntp.conf
X+@PKG_SYSCONFDIR@/ntp.conf
X file.
X
X @node ntpdsim panicgate
X
END-of-patches/patch-ze
echo x - patches/patch-zf
sed 's/^X//' >patches/patch-zf << 'END-of-patches/patch-zf'
X--- ntpd/ntpdsim.1 2009-12-08 22:13:14.000000000 +0900
X+++ ntp-4.2.4p8.new/ntpd/ntpdsim.1 2012-11-02 18:32:16.000000000 +0900
X@@ -64,7 +64,7 @@
X configuration file name.
X .sp
X The name and path of the configuration file,
X-/etc/ntp.conf
X+@PKG_SYSCONFDIR@/ntp.conf
X by default.
X .TP
X .BR \-C " \fIstring\fP, " \--phasenoise "=" \fIstring\fP
X@@ -94,7 +94,7 @@
X This is the same operation as the
X driftfile driftfile
X configuration specification in the
X-/etc/ntp.conf
X+@PKG_SYSCONFDIR@/ntp.conf
X file.
X .TP
X .BR \-g ", " \--panicgate
END-of-patches/patch-zf
exit
--
Network Science (and Service) Research Group
http://www.nsrg.fml.org/
Ishizaki Showta
zakinko%snowrabbit.org@localhost
--f46d04339cdeecdb5004cd8057bb
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
pkg/47149 should not be closed.<br>
<br>
pkg/47149 issues the original ntp4 configure bug (So, NTP4 team should<br>
fix it ;-).<br>
<br>
"/etc/ntp.conf" path is hard-coded in ntp4 source codes though pk=
gsrc<br>
does not modify the path of them.<br>
<br>
Pkgsrc "/etc/rc.d" scripts check the existence of<br>
@PKG_SYSCONFDIR@/ntp.conf but /usr/pkg/bin/*ntp* tries to read<br>
/etc/ntp.conf since it is hard-coded. This causes WARNING of rc.d<br>
scripts.<br>
<br>
=A0 ./files/ntpd.sh:required_<div id=3D":j0">files=3D"@PKG_SYSCONFDIR@=
/ntp.conf"<br>
=A0 ./files/ntpdate.sh: =A0 =A0 =A0 =A0 =A0 =A0 ' <@PKG_SYSCONFDIR@/=
ntp.conf`<br>
<br>
The following patches (SHAR) fix the hard-conding but the<br>
corresponding configure fixes must be needed.<br>
<br>
<br>
<br>
echo x - patches/patch-za<br>
sed 's/^X//' >patches/patch-za << 'END-of-patches/patc=
h-za'<br>
X--- include/ntp_config.h =A0 =A0 =A0 2006-12-28 21:03:04.000000000 +0900<b=
r>
X+++ include/ntp_config.h =A0 =A0 =A0 2012-11-02 18:25:44.000000000 +0900<b=
r>
X@@ -3,7 +3,7 @@<br>
X =A0*/<br>
X #ifndef CONFIG_FILE<br>
X # ifndef SYS_WINNT<br>
X-# =A0define =A0 =A0 CONFIG_FILE "/etc/ntp.conf"<br>
X+# =A0define =A0 =A0 CONFIG_FILE "@PKG_SYSCONFDIR@/ntp.conf"<br>
X # else /* SYS_WINNT */<br>
X # =A0define =A0 =A0 CONFIG_FILE =A0 =A0 "%windir%\\system32\\drivers=
\\etc\\ntp.conf"<br>
X # =A0define =A0 =A0 ALT_CONFIG_FILE "%windir%\\ntp.conf"<br>
END-of-patches/patch-za<br>
echo x - patches/patch-zb<br>
sed 's/^X//' >patches/patch-zb << 'END-of-patches/patc=
h-zb'<br>
X--- ntpd/ntpdbase-opts.def =A0 =A0 2008-03-22 20:03:22.000000000 +0900<br>
X+++ ntpd/ntpdbase-opts.def =A0 =A0 2012-11-02 18:26:13.000000000 +0900<br>
X@@ -74,7 +74,7 @@<br>
X =A0 =A0 descrip =A0 =3D "configuration file name";<br>
X =A0 =A0 doc =3D <<- =A0_EndOfDoc_<br>
X =A0 =A0 =A0 The name and path of the configuration file,<br>
X- =A0 =A0 =A0/etc/ntp.conf<br>
X+ =A0 =A0 =A0@PKG_SYSCONFDIR@/ntp.conf<br>
X =A0 =A0 =A0 by default.<br>
X =A0 =A0 =A0 _EndOfDoc_;<br>
X };<br>
X@@ -104,7 +104,7 @@<br>
X =A0 =A0 =A0 This is the same operation as the<br>
X =A0 =A0 =A0 driftfile driftfile<br>
X =A0 =A0 =A0 configuration specification in the<br>
X- =A0 =A0 =A0/etc/ntp.conf<br>
X+ =A0 =A0 =A0@PKG_SYSCONFDIR@/ntp.conf<br>
X =A0 =A0 =A0 file.<br>
X =A0 =A0 =A0 _EndOfDoc_;<br>
X };<br>
X<br>
END-of-patches/patch-zb<br>
echo x - patches/patch-zc<br>
sed 's/^X//' >patches/patch-zc << 'END-of-patches/patc=
h-zc'<br>
X--- ntpd/ntpd-opts.texi =A0 =A0 =A0 =A02009-12-08 22:13:11.000000000 +0900=
<br>
X+++ ntp-4.2.4p8.new/ntpd/ntpd-opts.texi =A0 =A0 =A0 =A02012-11-02 18:32:24=
.000000000 +0900<br>
X@@ -200,7 +200,7 @@<br>
X<br>
X This is the ``configuration file name'' option.<br>
X The name and path of the configuration file,<br>
X-/etc/ntp.conf<br>
X+@PKG_SYSCONFDIR@/ntp.conf<br>
X by default.<br>
X<br>
X @node ntpd debug-level<br>
X@@ -247,7 +247,7 @@<br>
X This is the same operation as the<br>
X driftfile driftfile<br>
X configuration specification in the<br>
X-/etc/ntp.conf<br>
X+@PKG_SYSCONFDIR@/ntp.conf<br>
X file.<br>
X<br>
X @node ntpd panicgate<br>
END-of-patches/patch-zc<br>
echo x - patches/patch-zd<br>
sed 's/^X//' >patches/patch-zd << 'END-of-patches/patc=
h-zd'<br>
X--- ntpd/ntpd.1 =A0 =A0 =A0 =A02009-12-08 22:13:11.000000000 +0900<br>
X+++ ntp-4.2.4p8.new/ntpd/ntpd.1 =A0 =A0 =A0 =A02012-11-02 18:32:29.0000000=
00 +0900<br>
X@@ -59,7 +59,7 @@<br>
X configuration file name.<br>
X .sp<br>
X The name and path of the configuration file,<br>
X-/etc/ntp.conf<br>
X+@PKG_SYSCONFDIR@/ntp.conf<br>
X by default.<br>
X .TP<br>
X .BR \-d ", " \--debug-level<br>
X@@ -84,7 +84,7 @@<br>
X This is the same operation as the<br>
X driftfile driftfile<br>
X configuration specification in the<br>
X-/etc/ntp.conf<br>
X+@PKG_SYSCONFDIR@/ntp.conf<br>
X file.<br>
X .TP<br>
X .BR \-g ", " \--panicgate<br>
END-of-patches/patch-zd<br>
echo x - patches/patch-ze<br>
sed 's/^X//' >patches/patch-ze << 'END-of-patches/patc=
h-ze'<br>
X--- ntpd/ntpdsim-opts.texi =A0 =A0 2009-12-08 22:13:15.000000000 +0900<br>
X+++ ntp-4.2.4p8.new/ntpd/ntpdsim-opts.texi =A0 =A0 2012-11-02 18:32:<a hre=
f=3D"tel:07.000000000" value=3D"+817000000000">07.000000000</a> +0900<br>
X@@ -216,7 +216,7 @@<br>
X<br>
X This is the ``configuration file name'' option.<br>
X The name and path of the configuration file,<br>
X-/etc/ntp.conf<br>
X+@PKG_SYSCONFDIR@/ntp.conf<br>
X by default.<br>
X<br>
X @node ntpdsim phasenoise<br>
X@@ -270,7 +270,7 @@<br>
X This is the same operation as the<br>
X driftfile driftfile<br>
X configuration specification in the<br>
X-/etc/ntp.conf<br>
X+@PKG_SYSCONFDIR@/ntp.conf<br>
X file.<br>
X<br>
X @node ntpdsim panicgate<br>
X<br>
END-of-patches/patch-ze<br>
echo x - patches/patch-zf<br>
sed 's/^X//' >patches/patch-zf << 'END-of-patches/patc=
h-zf'<br>
X--- ntpd/ntpdsim.1 =A0 =A0 2009-12-08 22:13:14.000000000 +0900<br>
X+++ ntp-4.2.4p8.new/ntpd/ntpdsim.1 =A0 =A0 2012-11-02 18:32:16.000000000 +=
0900<br>
X@@ -64,7 +64,7 @@<br>
X configuration file name.<br>
X .sp<br>
X The name and path of the configuration file,<br>
X-/etc/ntp.conf<br>
X+@PKG_SYSCONFDIR@/ntp.conf<br>
X by default.<br>
X .TP<br>
X .BR \-C " \fIstring\fP, " \--phasenoise "=3D" \fIstri=
ng\fP<br>
X@@ -94,7 +94,7 @@<br>
X This is the same operation as the<br>
X driftfile driftfile<br>
X configuration specification in the<br>
X-/etc/ntp.conf<br>
X+@PKG_SYSCONFDIR@/ntp.conf<br>
X file.<br>
X .TP<br>
X .BR \-g ", " \--panicgate<br>
END-of-patches/patch-zf<br>
exit</div><br>-- <br><span style=3D"border-collapse:separate;color:rgb(0,0,=
0);font-family:'MS PGothic';font-size:11px;font-style:normal;font-v=
ariant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;t=
ext-indent:0px;text-transform:none;white-space:normal;word-spacing:0px"><sp=
an style=3D"font-size:13px;line-height:16px;text-align:left"><span class=3D=
"st">Network Science (and Service) Research Group<br>
<a href=3D"http://www.nsrg.fml.org/">http://www.nsrg.fml.org/</a><br></span=
>Ishizaki Showta <br><a href=3D"mailto:zakinko%snowrabbit.org@localhost"
>target=3D"_b=
lank">zakinko%snowrabbit.org@localhost</a> <br></span></span><br>
--f46d04339cdeecdb5004cd8057bb--
Home |
Main Index |
Thread Index |
Old Index