Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 15876 - mjpegtools does not build without svgalib
Summary: mjpegtools does not build without svgalib
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Martin Holzer (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-02-17 18:24 UTC by Russell Cloran
Modified: 2003-02-20 17:01 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 Russell Cloran 2003-02-17 18:24:31 UTC
mjpegtools requires svgalib to build correctly (libvga), but there is no
explicit depend.

Reproducible: Always
Steps to Reproduce:
1. emerge unmerge svgalib
2. emerge mjpegtools
3.

Actual Results:  
compile stops when trying to link to libvga

Expected Results:  
compile should complete cleanly!

zazu tmp # emerge info
Portage 2.0.46-r12 (default-x86-1.4, gcc-3.2.2, glibc-2.3.1-r3)
=================================================================
System uname: 2.4.20-gentoo-r1 i686 Intel(R) Pentium(R) 4 CPU 1.70GHz
GENTOO_MIRRORS="ftp://146.231.125.78 ftp://ftp.is.co.za/linux/distributions/gentoo
ftp://gentoo.oregonstate.edu/
ftp://www.ibiblio.org/pub/Linux/distributions/gentoo"CONFIG_PROTECT="/etc
/var/qmail/control /usr/share/config /usr/kde/2/share/config
/usr/kde/3/share/config /usr/X11R6/lib/X11/xkb /opt/jakarta/tomcat/conf"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
PORTDIR="/usr/portage"
DISTDIR="/usr/portage/distfiles"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR_OVERLAY=""
USE="x86 3dnow avi crypt encode gif jpeg libg++ libwww mmx mpeg ncurses pdflib png
spell truetype xml2 xmms xv zlib readline svga java X sdl tcpd pam ssl perl python
esd imlib oggvorbis gtk opengl aalib acpi alsa apache2 -apm -arts -berkdb -cups
-gdbm -gnome gphoto2 -gpm gtk2 jikes -kde maildir -mikmod -motif mozilla -nls
-oss pic -qt -qtmt -quicktime samba -slang sse usb"
COMPILER="gcc3"
CHOST="i686-pc-linux-gnu"
CFLAGS="-march=pentium4 -O3 -pipe -fomit-frame-pointer"
CXXFLAGS="-march=pentium4 -O3 -pipe -fomit-frame-pointer"
ACCEPT_KEYWORDS="x86 ~x86"
MAKEOPTS="-j2"
AUTOCLEAN="yes"
SYNC="rsync://rsync.rucus.ru.ac.za/gentoo-portage"
FEATURES="sandbox ccache"
Comment 1 foser (RETIRED) gentoo-dev 2003-02-18 08:27:17 UTC
why do i get this bug, i havent ever touched mjpegtools.
Comment 2 Martin Holzer (RETIRED) gentoo-dev 2003-02-18 16:10:17 UTC
fixed in cvs

Comment 3 Aron Griffis (RETIRED) gentoo-dev 2003-02-20 11:55:33 UTC
The problem here is that the user has USE=svga (this is the default on x86).
sdl will use svgalib when available, and mjpegtools will use sdl.

I think that this would have worked if you did

   emerge unmerge svgalib
   emerge libsdl
   emerge mjpegtools

So we have a user error here.  You have svga in your USE but you're
trying to remove svgalib from the system.  Granted, the dep system can solve
this for you if we add the dependency to mjpegtools, but that is wrong 
because mjpegtools only needs svgalib if you also have USE=sdl.

I would like this ebuild reverted to its previous state.  There's no reason 
for this ebuild to depend directly on svgalib.  Otherwise we should update
all the other ebuilds that use sdl to also depend on svgalib (conditionally on 
USE="sdl svga").

Aron

P.S. This isn't just a gratuitous change for me.  svgalib doesn't work on 
alpha, and depending on svgalib in mjpegtools breaks mjpegtools for alpha.
Comment 4 Aron Griffis (RETIRED) gentoo-dev 2003-02-20 17:01:13 UTC
For the moment I just made svgalib depend on USE=svga since that's easiest.
It seems like a half-way fix to me but it will suffice.