I "cleaned up" my system and removed some seemingly unused libraries, which caused ntp to complain. Tho concerned libraries are dev-libs/elfutils, and should be added to RDEPEND in the ebuild. Reproducible: Always Steps to Reproduce: 1. emerge depclean -p 2. verify that elfutils is in the list, so you don't harass other packages 3. emerge -C elfutils 4. /etc/init.d/ntp-client (re)start Actual Results: Received following message: * Setting clock via the ntp client 'ntpdate'... ntpdate: error while loading shared libraries: libelf.so.1: cannot open shared object file: No such file or directory * Failed to set clock Expected Results: Start of ntp-client
fixed in cvs, thanks
I don't know whether I should open a new bug for this, but as a result of this dependency ntp no longer builds on my (very old) gentoo-1.2 system: palmer# emerge -p net-misc/ntp These are the packages that I would merge, in order: Calculating dependencies \ !!! all ebuilds that could satisfy "dev-libs/elfutils" have been masked. !!! (dependency required by "net-misc/ntp-4.1.2" [ebuild]) !!! Error calculating dependencies. Please correct. elfutils is masked since it requires glibc-2.3. ntp doesn't seem to require elfutils on my system: palmer # ldd `which ntpdate` libcap.so.1 => /lib/libcap.so.1 (0x40028000) libreadline.so.4.1 => /lib/libreadline.so.4.1 (0x4002b000) libc.so.6 => /lib/libc.so.6 (0x40054000) /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x40000000) palmer # etcat -v net-misc/ntp [ Results for search key : net-misc/ntp ] [ Applications found : 1 ] * net-misc/ntp : [ ] net-misc/ntp-4.1.1b-r6 (0) [ I] net-misc/ntp-4.1.2 (0) (this is an ntp-4.1.2 that was build before the elfutils dependency was added)
fixed in cvs
still get this on a 1.2 system... # emerge -pu world These are the packages that I would merge, in order: Calculating world dependencies - !!! all ebuilds that could satisfy ">=sys-devel/gcc-3.2.1-r6" have been masked. !!! (dependency required by "dev-libs/elfutils-0.89" [ebuild]) !!! Problem with ebuild net-misc/ntp-4.1.2 !!! Possibly a DEPEND/*DEPEND problem. !!! Depgraph creation failed. emerging libelf then trying again still doesn't work.
look at the ebuilds ... make sure you have this in them: || ( dev-libs/elfutils dev-libs/libelf )
I have: || ( dev-libs/elfutils dev-libs/libelf ) in the ntp-4.1.2 but still get the error: !!! Problem with ebuild net-misc/ntp-4.1.2 !!! Possibly a DEPEND/*DEPEND problem. I have found that reversing the order of the conditional depend solves the problem, so: || ( dev-libs/libelf dev-libs/elfutils ) I don't know enough about it to know if this is the right way to fix it, but it works for me.
hmm, i remember trying to setup DEPEND so that the gcc-2.x one came first ... oh well :) fixed now
ntp now wants to install libelf, when I 'emerge -upvD world': [ebuild N ] dev-libs/libelf-0.8.4 +nls However, libelf and elfutils (which I have installed) block each other: [blocks B ] dev-libs/elfutils (from pkg dev-libs/libelf-0.8.4) If I uninstall elfutils, ntp just wants to re-install it (*and* libelf): [ebuild N ] dev-libs/elfutils-0.89 +nls [ebuild N ] dev-libs/libelf-0.8.4 +nls Using 'etcat -d', I find that ntp is the only thing that depends on libelf, and that ntp and prelink are the only things that depend on elfutils. Regardless, however, ntp can't depend on both libelf and elfutils, if they block each other. What Is To Be Done? What does: || ( dev-libs/elfutils dev-libs/libelf ) mean?
john: the latest portage should fix that