Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 207176 - net-misc/ntp-4.2.4_p4 ntpd ignores -v flag
Summary: net-misc/ntp-4.2.4_p4 ntpd ignores -v flag
Status: RESOLVED UPSTREAM
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: Lowest trivial (vote)
Assignee: SpanKY
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-01-23 16:47 UTC by michael@smith-li.com
Modified: 2008-01-30 02:59 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description michael@smith-li.com 2008-01-23 16:47:23 UTC
From the manpage:
-v [{v|c|n}], --version[={v|c|n}]
              Output version of program and exit.  The default mode is
              `v', a simple version.  The `c' mode will print copyright
              information and `n' will print the full copyright notice.

Actual behavior:
white ~ # ntpd --version=v
ntpd - NTP daemon program - Ver. 4.2.4p4
white ~ # ntpd --version=c
ntpd - NTP daemon program - Ver. 4.2.4p4
ntpd copyright (c) 1970-2007 David L. Mills and/or others, all rights reserved
Automated Options version AO_CURRENT.AO_REVISION, copyright (c) 1999-2007 Bruce Korb

please send bug reports to:  http://bugs.ntp.isc.org, bugs@ntp.org
white ~ # ntpd --version=n
ntpd - NTP daemon program - Ver. 4.2.4p4
ntpd copyright (c) 1970-2007 David L. Mills and/or others, all rights reserved

see html/copyright.html
Automated Options version AO_CURRENT.AO_REVISION, copyright (c) 1999-2007 Bruce Korb

please send bug reports to:  http://bugs.ntp.isc.org, bugs@ntp.org
white ~ # ntpd -vv
white ~ # ntpd -v v
white ~ # ntpd -v c
white ~ # ntpd -v n

Apparently --version works, but -v is entirely ignored. I would expect -vv or -v v to have the same output as --version=v.
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2008-01-23 16:53:04 UTC
<snip>
Please send bug reports to:  http://bugs.ntp.isc.org, bugs@ntp.org
</snip>

Do it; thanks.
Comment 2 michael@smith-li.com 2008-01-24 17:11:26 UTC
This is not an upstream bug -- this is a packaging bug. The problem is not with the upstream software, but rather with whomever is converting the html docs into manpages and -h output.

In fact, ntpd -h gives different output from ntpd --help. I believe the --help output is correct, and the -h output is incorrect. The manpage is also incorrect. -v is for defining ntpd variables, not for --version output.

Please reopen and forward to the appropriate maintainer.
Comment 3 Jeroen Roovers (RETIRED) gentoo-dev 2008-01-24 17:35:09 UTC
The man pages do not originate from upstream:

SRC_URI="http://www.eecis.udel.edu/~ntp/ntp_spool/ntp4/ntp-${PV:0:3}/${MY_P}.tar.gz
    mirror://gentoo/${MY_P}-manpages.tar.bz2"
Comment 4 SpanKY gentoo-dev 2008-01-26 18:43:23 UTC
some man pages are generated locally, some come from upstream

in this case, ntpd(1) comes from upstream
Comment 5 SpanKY gentoo-dev 2008-01-26 18:46:34 UTC
the latest development version of ntpd reads:

- [{v|c|n}], --version[={v|c|n}]
  Output version of program and exit.  The default mode is `v', a simple version.  The `c' mode will print copyright information and `n' will print the full copyright notice.

does that address your issue ?
Comment 6 michael@smith-li.com 2008-01-30 02:59:20 UTC
(In reply to comment #5)
> does that address your issue?

Well, OK, thanks. It seems odd to me that they changed the meaning of -v between versions, but whatever. :)