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
dev-util/darcs doesn't depend on gmp at all, read the ebuilds.
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?
(In reply to comment #2) > Or should darcs depend on gmp? If it links to it? Sure...
Fixed, thanks.