Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 33126 - net-misc/ntp: missing dependency with dev-libs/elfutils
Summary: net-misc/ntp: missing dependency with dev-libs/elfutils
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High normal
Assignee: SpanKY
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-11-10 01:40 UTC by Federico Zenith
Modified: 2004-02-14 16:11 UTC (History)
2 users (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 Federico Zenith 2003-11-10 01:40:05 UTC
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
Comment 1 SpanKY gentoo-dev 2003-11-10 06:36:23 UTC
fixed in cvs, thanks
Comment 2 Tristan Henderson 2003-11-11 03:59:01 UTC
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)
Comment 3 SpanKY gentoo-dev 2003-11-11 05:47:01 UTC
fixed in cvs
Comment 4 Matt Taylor 2003-11-13 21:16:45 UTC
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.
Comment 5 SpanKY gentoo-dev 2003-11-13 23:58:28 UTC
look at the ebuilds ... make sure you have this in them:
    || (
        dev-libs/elfutils
        dev-libs/libelf
    )
Comment 6 Richard Taylor 2003-11-14 00:18:10 UTC
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.
Comment 7 SpanKY gentoo-dev 2003-11-14 00:24:44 UTC
hmm, i remember trying to setup DEPEND so that the gcc-2.x one came first ... oh well :)

fixed now
Comment 8 Jonathan Hitchcock 2003-11-16 00:41:03 UTC
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?

Comment 9 SpanKY gentoo-dev 2004-02-14 16:11:04 UTC
john: the latest portage should fix that