Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines
Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.
REPEAT: Do NOT report bugs for outdated packages!
https://wiki.archlinux.org/title/Bug_reporting_guidelines
Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.
REPEAT: Do NOT report bugs for outdated packages!
FS#33124 - [ntp] ntpq depends on libedit
Attached to Project:
Arch Linux
Opened by H.pferd (stosch) - Tuesday, 18 December 2012, 15:04 GMT
Last edited by Gaetan Bisson (vesath) - Sunday, 23 December 2012, 08:20 GMT
Opened by H.pferd (stosch) - Tuesday, 18 December 2012, 15:04 GMT
Last edited by Gaetan Bisson (vesath) - Sunday, 23 December 2012, 08:20 GMT
|
DetailsDescription:
I just did a new installation and after installing ntp I cannot run ntpq for checking the sync status. It gives an error: ntpq: error while loading shared libraries: libedit.so.0: cannot open shared object file: No such file or directory If I install libedit manually it works. I found this forum post, but I think no bug report has been filed: https://bbs.archlinux.org/viewtopic.php?pid=1206824 I am using ntp 4.2.6.p5-12. |
This task depends upon
Closed by Gaetan Bisson (vesath)
Sunday, 23 December 2012, 08:20 GMT
Reason for closing: Fixed
Additional comments about closing: in SVN
Sunday, 23 December 2012, 08:20 GMT
Reason for closing: Fixed
Additional comments about closing: in SVN
All my build chroots (more precisely, virtual machines) have openssh installed by default in addition to [base] and [base-devel], so indeed I missed that dependency.
I don't think that shipping half broken binaries (ntpq with libedit as an optdep) is a good idea. I would do either of the 2 things:
1. If additional functionality provided by readline/libedit is necessary, link against libreadline (not libedit, since not everyone has ssh) via ./configure --with-lineeditlibs=readline and a hard dep on core/readline.
2. If none is necessary, please use ./configure --with-lineeditlibs=no which produces ntpq binary not linked to any line editing lib (even in the presence of openssh).
Thanks,
Leonid.
However, libedit provides features beyond what readline does, which is valuable to those people who actually use the ntpq/ntpdc.
If you are unhappy with the way things are right now, I see no option but to make libedit a hard dependency.
It is only a small library and anyhow Arch always strives to build featureful software rather than slimmed-down software.
Regarding readline vs libedit -- you probably know better, so I trust you on this. But IMHO a binary on which ldd/lddd complains, is broken (that's how I found out about this bugreport). Besides, ntpq/ntptrace in particular is a useful query tool (how do you know that daemon is syncing properly, or determine your stratum?).
Making libedit a hard depdendency is probably the best because this way is simpler... I was also going to suggest splitting ntp in ntpd and ntp-tools, but I guess this is too Debian'ish :)
Although we both find ntpq/ntptrace useful, not everybody running an NTP daemon bothers checking that it runs properly, hence why I made the dependency optional. Anyway, the dependency is small enough that it makes no difference, so I'll make it a full dep (in SVN).
Also, feel free to let us know what you mean by "ldd complains" anytime.
> Although we both find ntpq/ntptrace useful, not everybody running an NTP daemon bothers checking that it runs properly, > hence why I made the dependency optional. Anyway, the dependency is small enough that it makes no difference, so I'll make > it a full dep (in SVN).
Thanks.
> Also, feel free to let us know what you mean by "ldd complains" anytime.
OK, fine, point taken.