Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 142100 - frozen-bubble needs sdl-image built with USE="gif png"
Summary: frozen-bubble needs sdl-image built with USE="gif png"
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Games (show other bugs)
Hardware: All Linux
: High normal
Assignee: Gentoo Games
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-07-29 09:18 UTC by Mark Glines
Modified: 2006-07-30 00:07 UTC (History)
0 users

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


Attachments
sanity check: die if sdl-image was built wrongly (frozen-bubble_check_sdl-image_USE_flags.diff,662 bytes, patch)
2006-07-29 09:32 UTC, Mark Glines
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Mark Glines 2006-07-29 09:18:58 UTC
For some stupid reason, I had gif support disabled in my USE-flags.  As a result, frozen-bubble crashed with the same error as bug #58278, from a couple of years ago.  (Note: that bug was marked as INVALID because of some USE=ithreads paranoia, and apparently was never debugged properly.  frozen-bubble works fine with or without ithreads, here, and the error message "Unsupported image format" seems like a dead giveaway to me.)

In order to run properly, frozen-bubble requires a properly built sdl-image, with gif and png support.  I'll attach a patch to add a sanity-check to the ebuild, shortly.

paranoid@tweet ~ $ frozen-bubble
        [[ Frozen-Bubble-1.0.0 ]]

  http://www.frozen-bubble.org/

  Copyright (c) 2000, 2001, 2002, 2003 Guillaume Cottenceau.
  Artwork: Alexis Younes <73lab at free.fr>
           Amaury Amblard-Ladurantie <amaury at linuxfr.org>
  Soundtrack: Matthias Le Bidan <matthias.le_bidan at caramail.com>
  Design & Programming: Guillaume Cottenceau <guillaume.cottenceau at free.fr>
  Level Editor: Kim and David Joham <[k|d]joham at yahoo.com>

  Sponsored by MandrakeSoft <http://www.mandrakesoft.com/>

  This program is free software; you can redistribute it and/or modify
  it under the terms of the GNU General Public License version 2, as
  published by the Free Software Foundation.

[SDL Init] ALSA lib pcm_dmix.c:864:(snd_pcm_dmix_open) unable to open slave
ALSA lib pcm_dmix.c:864:(snd_pcm_dmix_open) unable to open slave
[Graphics.SDL::Surface::new failed. Unsupported image format at /usr/lib/perl5/vendor_perl/5.8.8/i686-linux-thread-multi/SDL/Surface.pm line 50.

Addicted for 0s.


Portage 2.1.1_pre4 (hardened/x86/2.6, gcc-3.4.6, glibc-2.3.6-r4, 2.6.16-ck10 i686)
=================================================================
System uname: 2.6.16-ck10 i686 AMD Athlon(tm) MP 1700+
Gentoo Base System version 1.12.1
ccache version 2.4 [enabled]
app-admin/eselect-compiler: [Not Present]
dev-lang/python:     2.3.5-r2, 2.4.3-r1
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     2.4-r2
dev-util/confcache:  [Not Present]
sys-apps/sandbox:    1.2.18.1
sys-devel/autoconf:  2.13, 2.60
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2
sys-devel/binutils:  2.17
sys-devel/gcc-config: 1.3.13-r2
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r5
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=athlon-xp -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/lib/mozilla/defaults/pref /usr/share/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c"
CXXFLAGS="-O2 -march=athlon-xp -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig ccache distlocks fixpackages metadata-transfer sandbox sfperms strict"
GENTOO_MIRRORS="http://gentoo.osuosl.org/"
LANG="en_US.utf8"
LC_ALL="en_US.utf8"
MAKEOPTS="-j4"
PKGDIR="/usr/portage//packages/x86/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude='/distfiles' --exclude='/local' --exclude='/packages'"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage/"
PORTDIR_OVERLAY="/usr/local/portage /usr/local/portage-overlay/perl-catalyst"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="3dnow 3dnowext 7zip X a52 aac acpi adns aio alsa amarok amr ao apache2 arts asf async atlas bash-completion berkdb blender-game bzip2 caps cdda cddb cdio cdparanoia cdr cdrom ck-server clamav clamd corba cpudetection cracklib crypt css dga divx4linux dlloader dri dv dvb dvd dvdread effects encode esd ethereal exscalibar fbcon fbdev ffmpeg fftw flac flash gd gdbm glut gnome gtk hardened ifp ipod ipv6 ithreads jack java jpeg kerberos libgda live lzo mad matroska mikmod mmx mmxext mng modperl mozdevelop mozilla moznoirc mozsvg mp3 mp4 mpeg mplayer mpm-worker musicbrainz ncurses netjack network nfsv4 nptl nsplugin ogg opengl pae pam perl pic plugin png pnp postgres ppds readline real sdl slang smp sndfile speex spell sqlite sse ssl subtitles svg tcltk tcpd test theora threads tiff truetype uim unicode usb userlocales uuid vorbis win32codecs x264 x86 xine xinerama xml xml2 xorg xv xvid zlib elibc_glibc input_devices_keyboard input_devices_mouse kernel_linux userland_GNU video_cards_nv"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LDFLAGS, LINGUAS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Mark Glines 2006-07-29 09:32:25 UTC
Created attachment 93014 [details, diff]
sanity check: die if sdl-image was built wrongly

Honestly I'd rather link the user to some HOWTO webpage telling the user to edit /etc/make.conf or add a line to /etc/portage/package.use, but this kind of simple warning seems to be how other ebuilds do it.

Anyway, I tested it with all combinations of "gif" and "png" USE-flags, it only allows frozen-bubble builds when both flags were enabled in sdl-image.

Mark
Comment 2 Mr. Bones. (RETIRED) gentoo-dev 2006-07-30 00:07:08 UTC
in portage.  thanks for the bug report.