Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 1952 - incorrect dependencies for DirectFB
Summary: incorrect dependencies for DirectFB
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Seemant Kulleen (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-04-20 14:05 UTC by Adam M.
Modified: 2003-02-04 19:42 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
my proposed patch (DirectFB-0.9.9-r2.patch,443 bytes, patch)
2002-04-21 21:30 UTC, Adam M.
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Adam M. 2002-04-20 14:05:59 UTC
On my system, the DirectFB package would not build properly because libmpeg3 did not exist. However, it was not a dependency as far as portage was concerned. I believe this to be an error in the .ebuild file.
If it's helpful, my USE string is:
"-3dfx 3dnow -afs alsa -apm -arts avi bonobo crypt cups dga directfb dvd esd fbcon gif gnome gpm gtk imlib -ipv6 jpeg -kde -matrox mmx mozilla mpeg ncurses oggvorbis opengl oss pam -pcmcia -pda png readline samba sdl -snmp -socks5 spell ssl truetype -voodoo3 X xmms
And after 'emerge system' and building the kernel, I had just done the following:
emerge lynx alsa-driver alsa-utils proftpd bind gnome mozilla nautilus gaim; emerge xmms xine-lib xine-ui (each on separate lines, I'd fix it here, but Lynx's textarea editor doesn't seem to let me move lines, or I don't know how). I believe it failed on 'xine-lib'. It tried to build DirectFB as a dependency, but the DirectFB build failed because it couldn't find libmpeg3.
To resolve the problem, I manually executed 'emerge libmpeg3' and retried. It worked that time.
Comment 1 Matthew Kennedy (RETIRED) gentoo-dev 2002-04-21 20:32:23 UTC
I can't reproduce this problem on my machine.

Would you send me the full output of the emerge which caused the problem? eg.

emerge DirectFB &>/tmp/emerge-DirectFB.log

and

emerge xine-lib &>/tmp/emerge-xine-lib.log
Comment 2 Adam M. 2002-04-21 21:09:26 UTC
I was able to reproduce the bug by doing the following:

emerge -C libmpeg3; emerge DirectFB

the build fails because libmpeg3 is not found. Note that I have "mpeg" in my USE
string. I believe the bug to be the following (taken from the DirectFB .ebuild):

There is this block:
  use mpeg \
    && myconf="${myconf} --with-libmpeg3=/usr/include/libmpeg3" \
    || myconf="${myconf} --disable-libmpeg3"

But there is no corresponding entry in the DEPENDS string.
Thus, the problem would not be reproduced unless you also had "mpeg" in your USE
string.

Adding the following line to the DEPENDS section resolves the problem:
mpeg? ( media-libs/libmpeg3 )

It then correctly detects libmpeg3 as a dependency and builds it prior to
attempting to build DirectFB.

I wouldn't be surprised, however, if the current version of DirectFB only worked
with a particular version of libmpeg3, so I can't say that the addition of that
line is entirely correct. It might be prudent to research the specific version
and use >=media-libs/libmpeg3-VERSION instead.

Hope this helps!
Comment 3 Adam M. 2002-04-21 21:17:59 UTC
I would have attached my proposed patch, but for some reason Bugzilla keeps
saying that I haven't attached a file, or it's empty... should be simple to
fix, though.
Comment 4 Matthew Kennedy (RETIRED) gentoo-dev 2002-04-21 21:21:09 UTC
See bug #71 for a attachment work around. i'd still like to se your diff.
Comment 5 Adam M. 2002-04-21 21:30:39 UTC
Created attachment 634 [details, diff]
my proposed patch

Nothing major...
Comment 6 Adam M. 2002-04-21 21:32:06 UTC
I hope I did that correctly... first time using diff to create a patch :)
Comment 7 Matthew Kennedy (RETIRED) gentoo-dev 2002-04-21 21:38:33 UTC
okay thanks
Comment 8 Seemant Kulleen (RETIRED) gentoo-dev 2002-04-27 14:50:44 UTC
matt, trade you this for an abiword buf report
Comment 9 Seemant Kulleen (RETIRED) gentoo-dev 2002-04-27 19:47:06 UTC
You know what, when I upgraded to DirectFB-0.9.9, I added that, so the ebuild has
actually been correct for a while. Meanwhile, I have added DirectFB-0.9.10 into
portage as well, but it is masked.  I don't suppose you'd be willing to test it,
would you?