Arch Linux

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!
Tasklist

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
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Gaetan Bisson (vesath)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:
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
Comment by Gaetan Bisson (vesath) - Tuesday, 18 December 2012, 22:44 GMT
Thanks a lot!

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.
Comment by Leonid Isaev (lisaev) - Friday, 21 December 2012, 10:32 GMT
  • Field changed: Percent Complete (100% → 0%)
Hi,

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.
Comment by Gaetan Bisson (vesath) - Saturday, 22 December 2012, 03:25 GMT
Optional dependencies are not "half-broken" as you seem to imply: most people never run ntpq/ntpdc, and making libedit optional to them makes sense.
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.
Comment by Leonid Isaev (lisaev) - Saturday, 22 December 2012, 04:32 GMT
My only point was that ntp got this new dependency "by accident". So if this was a "good" accident (noone really complained about an extra lib), let's make this new dependency permanent, otherwise, disable the libedit/readline checking at compile time to make PKGBUILD more robust against a particular building environment.

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 :)
Comment by Gaetan Bisson (vesath) - Saturday, 22 December 2012, 05:22 GMT
Yes, the libedit story is a happy accident.

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.
Comment by Leonid Isaev (lisaev) - Sunday, 23 December 2012, 02:40 GMT
> Yes, the libedit story is a happy accident.
> 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.

Loading...