Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 140308 - media-sound/alsa-tools needs to set RDEPEND explicitely
Summary: media-sound/alsa-tools needs to set RDEPEND explicitely
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Sound Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-07-13 23:59 UTC by Marcin Kowalski
Modified: 2006-07-14 14:44 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 Marcin Kowalski 2006-07-13 23:59:48 UTC
as you know DEPEND specifies build dependencies, and RDEPEND - runtime dependencies. this is usually unimportant, but...

i've been deploying a small system via 
ROOT=/somewhere PORTAGE_CONFIGROOT=/somewhere emerge (....) 
it has no gcc, python, etc etc.

usually in this situation DEPEND packages get installed into my normal system (as a build-time dependency), and RDEPEND ones are installed into the target system (as a runtime dependency).

but alsa-tools wants to install automake and libtool into the target system. and i don't think that they are runtime dependencies.

possible fix : when i created RDEPEND variable with contents of DEPEND the problem got solved and alsa-tools didn't need those development packages to run anymore.

so in short i put this into the ebuild
--------------------------
RDEPEND=">=media-libs/alsa-lib-1.0.0
        virtual/alsa
        fltk? ( =x11-libs/fltk-1.1* )
        gtk? ( =x11-libs/gtk+-1.2* )"
--------------------------

before: 
----------------------------------------
[ebuild  N    ] sys-apps/texinfo-4.8-r3 to /mnt/debian/ USE="nls -build -static" 0 kB 
[ebuild  N    ] sys-devel/m4-1.4.4 to /mnt/debian/ USE="nls" 0 kB 
[ebuild  N    ] sys-devel/autoconf-2.60 to /mnt/debian/ USE="-emacs" 0 kB 
[ebuild  N    ] sys-devel/autoconf-2.13 to /mnt/debian/ 0 kB 
[ebuild  N    ] sys-devel/autoconf-wrapper-3.2-r2 to /mnt/debian/ 0 kB 
[ebuild  N    ] sys-devel/gnuconfig-20060227 to /mnt/debian/ 0 kB 
[ebuild  N    ] sys-devel/automake-1.5 to /mnt/debian/ 0 kB 
[ebuild  N    ] sys-devel/automake-1.8.5-r3 to /mnt/debian/ 0 kB 
[ebuild  N    ] sys-devel/automake-1.6.3 to /mnt/debian/ 0 kB 
[ebuild  N    ] sys-devel/automake-1.7.9-r1 to /mnt/debian/ 0 kB 
[ebuild  N    ] sys-devel/automake-1.4_p6 to /mnt/debian/ 0 kB 
[ebuild  N    ] sys-devel/automake-wrapper-1-r1 to /mnt/debian/ 0 kB 
[ebuild  N    ] sys-devel/automake-1.9.6-r2 to /mnt/debian/ 0 kB 
[ebuild  N    ] sys-devel/libtool-1.5.22 to /mnt/debian/ 0 kB 
[ebuild   R   ] media-sound/alsa-tools-1.0.11 to /mnt/debian/ USE="-fltk -gtk" 0 kB 
--------------------------------

after:
--------------------------------
Calculating dependencies ... done!
[ebuild   R   ] media-sound/alsa-tools-1.0.11 to /mnt/debian/ USE="-fltk -gtk" 0 kB 
--------------------------------
hmm maybe texinfo should actually get installed, don't know about that.
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2006-07-14 02:45:01 UTC
eclass-inherited crap getting pulled in...
Comment 2 Marcin Kowalski 2006-07-14 05:24:33 UTC
actually i discovered other packages depending on libtool. 

afaik libtool is only needed during build, right?

using fquery (formerly known as adelie) revealed that packages directly depending on libtool are ccd2iso , pycairo , ccache , fontconfig , libdts , libpng , fftw. after veryfying it looks like only ccd2iso was a false alert. all of these packages want libtool, automake and autoconf as their runtime deps.

it usually happens when ebuild has no RDEPEND defined, it would seem. a possible portage bug?
Comment 3 Jakub Moc (RETIRED) gentoo-dev 2006-07-14 14:34:22 UTC
(In reply to comment #2)

Different ebuild, different bug. And no, it's not a portage bug. You need to state RDEPEND in the ebuilds if any of the inherited eclasses sets its own dependencies.

Comment 4 Diego Elio Pettenò (RETIRED) gentoo-dev 2006-07-14 14:44:50 UTC
Thanks for reporting, the issue is fixed now.