Bug List: (This bug is not in your last search results)   Show last search results      Search page      Enter new bug
Bug#: 119982
Alias:
Product:
Component:
Status: RESOLVED
Resolution: FIXED
Assigned To: Gentoo Games <games@gentoo.org>
Hardware:
OS:
Version:
Priority:
Severity:
Reporter: Kenton Groombridge <kenton.groombridge@us.army.mil>
Add CC:
CC:
URL:
Summary:
Status Whiteboard:
Keywords:

Filename Description Type Creator Created Size Actions
daphne-0.99.7.ebuild daphne-0.99.7.ebuild text/plain Jesse D. Guardiani 2006-02-04 13:42 0000 1.89 KB Details
daphne-0.99.7.ebuild daphne-0.99.7.ebuild text/plain Tristan Heaven 2006-12-01 13:20 0000 1.60 KB Details
daphne-0.99.7-gcc41.patch daphne-0.99.7-gcc41.patch patch Tristan Heaven 2006-12-01 13:21 0000 522 bytes Details | Diff
daphne-0.99.7-exec-stack.patch daphne-0.99.7-exec-stack.patch patch Tristan Heaven 2006-12-01 13:21 0000 360 bytes Details | Diff
Create a New Attachment (proposed patch, testcase, etc.) View All

Bug 119982 depends on: Show dependency tree
Bug 119982 blocks:
Votes: 0    Show votes for this bug    Vote for this bug

Additional Comments: (this is where you put emerge --info)


Not eligible to see or edit group visibility for this bug.






View Bug Activity   |   Format For Printing   |   XML   |   Clone This Bug


Description:   Opened: 2006-01-22 14:20 0000
Kindly request version bump for games-emulation/daphne.

The newest version, 0.99.7, adds support for -homedir so that the daphne
directory with the roms, framefile, etc can be located in a users home
directory so they can maintain it themselves.

I have used the ebuild from the previous daphne with some success,
unfortunately I can't get hardware acceleration to work.  I have to use the
switch -nohwaccel in order to make it run.  My other system works perfect with
hardware acceleration.  Hardware wise, it is nearly identical, but software
wise it is running Gentoo stable and mine is running Gentoo testing with
modular X.

Here is the output from attempts to run with hardware acceleration:

buttercup ~ $ daphne lair vldp  -framefile lair.txt -homedir
/home/kgroombr/daphne
Console initialised.

Initializing sound system ...
No joysticks detected
Loading /usr/share/games/daphne/roms/lair/dl_f2_u1.bin ... 8192 bytes read into
memory
Loading /usr/share/games/daphne/roms/lair/dl_f2_u2.bin ... 8192 bytes read into
memory
Loading /usr/share/games/daphne/roms/lair/dl_f2_u3.bin ... 8192 bytes read into
memory
Loading /usr/share/games/daphne/roms/lair/dl_f2_u4.bin ... 8192 bytes read into
memory
Framefile parse succeeded. Video/Audio directory is:
/mnt/dvd/Daphne/laserdisc/dlair/
YUV overlay is hardware accelerated.
X Error of failed request:  BadMatch (invalid parameter attributes)
  Major opcode of failed request:  141 (XVideo)
  Minor opcode of failed request:  19 ()
  Serial number of failed request:  28
  Current serial number in output stream:  29

Also, in order to make it build properly, I edited the ebuild to only use:

DFLAGS="--param max-inline-insns-single=5000"

It seems that optimizations break daphne quite easily as stated by bug reports
posted on the daphne forum.

Output from emerge info:

Portage 2.1_pre3-r1 (default-linux/x86/2005.0, gcc-3.4.5, glibc-2.3.6-r2,
2.6.15-ck2 i686)
=================================================================
System uname: 2.6.15-ck2 i686 Unknown CPU Typ
Gentoo Base System version 1.12.0_pre15
dev-lang/python:     2.4.2
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.59-r7
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1
sys-devel/binutils:  2.16.1-r1
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r3
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -pipe -march=athlon-xp -fomit-frame-pointer -mmmx -msse -m3dnow
-mfpmath=sse"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.5/env
/usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/kde/3/share/config
/usr/share/X11/xkb /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -pipe -march=athlon-xp -fomit-frame-pointer -mmmx -msse -m3dnow
-mfpmath=sse"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks sandbox sfperms strict"
GENTOO_MIRRORS="http://mirror.datapipe.net/gentoo
http://gentoo.chem.wisc.edu/gentoo/ http://gentoo.osuosl.org/
http://mirror.phy.olemiss.edu/mirror/gentoo
http://gentoo.mirrors.easynews.com/linux/gentoo/"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 3dnow 3dnowext S3TC X a52 aac acl acpi alsa apache2 arts asf audiofile
berkdb bitmap-fonts bzip2 cddb cdio cdparanoia cdr crypt css cups curl dga
dlloader dvd dvdr dvdread eds emboss emoticon encode exif fam fame ffmpeg
firefox flac foomaticdb freetype gdbm gif gimp glut gstreamer gtk gtk2 ieee1394
imagemagick imlib imlib2 iproute2 jack java joystick jpeg jpeg2k kde libwww
live logitech-mouse lzo mad mikmod mjpeg mmx mmxext motif mozsvg mp3 mpeg mpeg4
mplayer musicbrainz nas ncurses network nforce2 nls nntp nomalloccheck nptl
nptlonly nsplugin nspr nvidia ogg oggvorbis openal opengl pam pcre pdf pdflib
perl png python qt quicktime readline real rtc samba scanner sdl slang snmp
spell sse ssl subtitles svg svga sysfs tcltk tcpd theora tiff transcode
truetype truetype-fonts type1 type1-fonts udev unicode urandom usb userlocales
v4l2 vcd vorbis win32codecs wmf xine xml2 xmms xpm xrandr xscreensaver xv xvid
xvmc zlib zvbi elibc_glibc kernel_linux userland_GNU"
Unset:  ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS

------- Comment #1 From Kenton Groombridge 2006-01-24 06:05:04 0000 -------
I wanted to add, that I have the same problems with daphne 0.99.6 as I do with
0.99.7 (have to change the DFLAGS, and I also get the BADMATCH), just in case
you might think these are newly added problems with the new version.

------- Comment #2 From Jesse D. Guardiani 2006-02-04 13:39:42 0000 -------
(In reply to comment #1)
> I wanted to add, that I have the same problems with daphne 0.99.6 as I do with
> 0.99.7 (have to change the DFLAGS, and I also get the BADMATCH), just in case
> you might think these are newly added problems with the new version.
> 

I hacked up an ebuild for 0.99.7 based on the 0.99.6 ebuild. I'm not quite sure
what you guys did with DFLAGS, but when I added this to the ebuild:
  DFLAGS="--param max-inline-insns-single=5000"
It compiled, but nothing would play. It would hang. Then I noticed that DFLAGS
in the Daphne Makefile was being overwritten with CFLAGS using sed. So I added
this instead of the above DFLAGS line:
  CFLAGS="--param max-inline-insns-single=5000"

Now my games run, but they're so slow it's unplayable. Particularly, it seems
to take about 5 seconds to load each Mpeg file. Here are a few of my libraries:

media-libs/libsdl-1.2.9-r1
x11-base/xorg-x11-6.8.2-r6
# emerge --info
Portage 2.0.54 (default-linux/x86/2005.0, gcc-3.3.6, glibc-2.3.5-r1,
2.6.13-gentoo i686)
=================================================================
System uname: 2.6.13-gentoo i686 Intel(R) Celeron(R) CPU 2.93GHz
Gentoo Base System version 1.6.13
distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632)
[enabled]
ccache version 2.3 [disabled]
dev-lang/python:     2.3.5-r2, 2.4.2
sys-apps/sandbox:    1.2.12
sys-devel/autoconf:  2.13, 2.59-r6
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1
sys-devel/binutils:  2.15.92.0.2-r10
sys-devel/libtool:   1.5.18-r1
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=i686 -mcpu=pentium3 -fomit-frame-pointer -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.4/env
/usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3/share/config
/usr/lib/X11/xkb /usr/lib/mozilla/defaults/pref /usr/local/vpopmail/domains
/usr/local/vpopmail/etc /usr/share/config /var/qmail/alias /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/rc.d /etc/terminfo /etc/wget /etc/env.d"
CXXFLAGS="-O2 -march=i686 -mcpu=pentium3 -fomit-frame-pointer -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig buildpkg distcc distlocks fixpackages sandbox sfperms
strict"
GENTOO_MIRRORS="http://distfiles.gentoo.org
http://distro.ibiblio.org/pub/linux/distributions/gentoo"
MAKEOPTS="-j5"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 X aalib acl aim alsa apm arts audiofile avi berkdb bitmap-fonts bonobo
bzip2 cdb cdr clearpasswd crypt cups curl dts dvd eds emboss encode esd
ethereal exif expat fam ffmpeg firebird flac foomaticdb fortran gd gdbm geoip
ggi gif glut gmp gnome gphoto2 gpm gstreamer gtk gtk2 gtkhtml guile icq idn
imagemagick imap imlib ipalias ipv6 java jpeg junit kde lcms ldap libcaca
libg++ libwww lirc mad maildir mhash mikmod mmx mng motif mozilla mp3 mpeg mpi
msn mysql mythtv nas ncurses nls nptl nptlonly ogg oggvorbis openal opengl
oscar oss pam pcre pdflib perl png postgres ppds python qt quicktime readline
ruby samba sdl slang snmp speex spell sse ssl svga tcltk tcpd tiff truetype
truetype-fonts type1-fonts udev usb vhosts vim-with-x vorbis wmf wxwindows xine
xml xml2 xmms xv xvid yahoo zlib userland_GNU kernel_linux elibc_glibc"
Unset:  ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS

Any hints?

------- Comment #3 From Jesse D. Guardiani 2006-02-04 13:42:42 0000 -------
Created an attachment (id=78896) [details]
daphne-0.99.7.ebuild

------- Comment #4 From Tristan Heaven 2006-12-01 13:20:11 0000 -------
Created an attachment (id=103157) [details]
daphne-0.99.7.ebuild

Does this work?

------- Comment #5 From Tristan Heaven 2006-12-01 13:21:01 0000 -------
Created an attachment (id=103158) [details]
daphne-0.99.7-gcc41.patch

------- Comment #6 From Tristan Heaven 2006-12-01 13:21:22 0000 -------
Created an attachment (id=103159) [details]
daphne-0.99.7-exec-stack.patch

------- Comment #7 From James L. Hammons 2006-12-27 11:17:38 0000 -------
Verified the 0.99.7 ebuild with the patches works correctly. Nice work. ;-)

------- Comment #8 From Tristan Heaven 2006-12-27 16:14:55 0000 -------
thanks

Bug List: (This bug is not in your last search results)   Show last search results      Search page      Enter new bug