Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 169848 - dev-util/darcs missing dev-libs/gmp RDEPEND
Summary: dev-util/darcs missing dev-libs/gmp RDEPEND
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo's Haskell Language team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-03-07 22:40 UTC by Asfand Yar Qazi
Modified: 2007-03-09 04:55 UTC (History)
0 users

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 Asfand Yar Qazi 2007-03-07 22:40:49 UTC
hi,

I installed darcs via binaries, and it pulled in dev-libs/gmp as required.

However, when I do an emerge --depclean, it wants to get rid of dev-libs/gmp even though it needs it.  I repeat - both darcs and libgmp were installed via binaries compiled on another machine.

Thanks


Reproducible: Always

Steps to Reproduce:
1. Install darcs via binaries - dev-libs/gmp will be pulled in
2. Do a emerge --depclean - dev-libs/gmp is displayed as something to be removed
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2007-03-07 22:45:11 UTC
dev-util/darcs doesn't depend on gmp at all, read the ebuilds.

Comment 2 Asfand Yar Qazi 2007-03-09 00:16:54 UTC
Darcs does not directly depend on gmp, but it needs it:


$ ldd /usr/bin/darcs
        libcurl.so.3 => /usr/lib/libcurl.so.3 (0x00002b6d28349000)
        libssl.so.0.9.8 => /usr/lib/libssl.so.0.9.8 (0x00002b6d28486000)
        libcrypto.so.0.9.8 => /usr/lib/libcrypto.so.0.9.8 (0x00002b6d285ce000)
        libdl.so.2 => /lib/libdl.so.2 (0x00002b6d28849000)
        libz.so.1 => /lib/libz.so.1 (0x00002b6d2894d000)
        libncurses.so.5 => /lib/libncurses.so.5 (0x00002b6d28a63000)
        libreadline.so.5 => /lib/libreadline.so.5 (0x00002b6d28bc2000)
        libm.so.6 => /lib/libm.so.6 (0x00002b6d28d00000)
        libgmp.so.3 => /usr/lib/libgmp.so.3 (0x00002b6d28e55000)
        libc.so.6 => /lib/libc.so.6 (0x00002b6d28f95000)
        /lib64/ld-linux-x86-64.so.2 (0x00002b6d2822d000)

The point it that, when installed via binaries, the haskell compiler used to compile darcs, ghc is not installed.  ghc depends on libgmp.  In a compilation build, darcs depends on libgmp through ghc, but if ghc isn't there (like in the case of a binary installation), it doesn't infer the dependancy.

i.e. Portage needs to know that something was pulled in via a binary package, and so even though a link in the chain of dependancies is missing, it should some how account for it and count (in this case) gmp as a dependant of darcs.  That's what this bug is about.

Or should darcs depend on gmp?
Comment 3 Jakub Moc (RETIRED) gentoo-dev 2007-03-09 00:26:52 UTC
(In reply to comment #2)
> Or should darcs depend on gmp?

If it links to it? Sure...
 

Comment 4 Duncan Coutts (RETIRED) gentoo-dev 2007-03-09 04:55:27 UTC
Fixed, thanks.