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.
<snip> Please send bug reports to: http://bugs.ntp.isc.org, bugs@ntp.org </snip> Do it; thanks.
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.
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"
some man pages are generated locally, some come from upstream in this case, ntpd(1) comes from upstream
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 ?
(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. :)