Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 158336 - GemRB: Infinity Engine Emulator (new package)
Summary: GemRB: Infinity Engine Emulator (new package)
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Games (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: Gentoo Games
URL: http://gemrb.sourceforge.net/
Whiteboard:
Keywords:
: 48942 (view as bug list)
Depends on:
Blocks:
 
Reported: 2006-12-16 17:11 UTC by GNUtoo
Modified: 2009-08-28 11:09 UTC (History)
6 users (show)

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


Attachments
gemrb-0.2.7.ebuild (gemrb-0.2.7.ebuild,641 bytes, text/plain)
2006-12-16 17:12 UTC, GNUtoo
Details
cflags.patch (cflags.patch,861 bytes, patch)
2006-12-16 17:17 UTC, GNUtoo
Details | Diff
sandbox.patch (sandbox.patch,459 bytes, patch)
2006-12-16 17:21 UTC, GNUtoo
Details | Diff
GemRB 0.2.8 ebuild (gemrb-0.2.8.ebuild,1.80 KB, text/plain)
2007-02-27 13:44 UTC, Nick White
Details
Save Home patch for 0.2.8 (0.2.8-save_home.patch,1.21 KB, patch)
2007-02-27 13:45 UTC, Nick White
Details | Diff
Save Home patch for 0.2.8 (0.2.8-save_home.patch,1.21 KB, patch)
2007-02-27 13:45 UTC, Nick White
Details | Diff
Example GemRB config (GemRB.cfg.sample,8.52 KB, text/plain)
2007-02-27 13:47 UTC, Nick White
Details
GemRB 0.2.8 ebuild (gemrb-0.2.8.ebuild,1.80 KB, text/plain)
2007-02-27 14:34 UTC, Nick White
Details
Patch to fix saving in 0.2.8 (0.2.8-save_fix.patch,41.82 KB, patch)
2007-04-25 23:09 UTC, Nick White
Details | Diff
GemRB 0.2.8 ebuild (gemrb-0.2.8.ebuild,1.84 KB, text/plain)
2007-04-25 23:12 UTC, Nick White
Details
the parch of the save-fix-path doesn't wotk with portage(mabe it works only with paludis) (0.2.8-save_fix.patch-5629.out,11.67 KB, text/plain)
2007-05-26 22:51 UTC, GNUtoo
Details
0.2.8-save_fix.patch-5629.out (0.2.8-save_fix.patch-5629.out,11.67 KB, text/plain)
2007-05-26 22:51 UTC, GNUtoo
Details
Patch to fix saving in 0.2.8 (0.2.8-save_fix.patch,41.77 KB, patch)
2007-05-27 21:40 UTC, Nick White
Details | Diff
GemRB 0.2.9 ebuild (gemrb-0.2.9.ebuild,1.40 KB, text/plain)
2007-08-31 18:11 UTC, Nick White
Details
gemrb 0.2.9 make error (gemrb.txt,6.64 KB, text/plain)
2007-11-03 18:06 UTC, Jonas Nicolaisen
Details
Patch to fix_endian to ensure clean build (fix_endian.patch,1.05 KB, patch)
2007-11-03 20:11 UTC, Nick White
Details | Diff
Gemrb 0.2.9 ebuild (gemrb-0.2.9.ebuild,1.45 KB, text/plain)
2007-11-03 20:12 UTC, Nick White
Details
GemRB Live SVN Ebuild (gemrb-9999.ebuild,1.50 KB, text/plain)
2007-11-04 22:42 UTC, Nick White
Details
GemRB 0.3.0 ebuild (gemrb-0.3.0.ebuild,1.31 KB, text/plain)
2008-02-25 16:18 UTC, Nick White
Details
GemRB Live SVN Ebuild (gemrb-9999.ebuild,1.41 KB, text/plain)
2008-02-25 18:17 UTC, Nick White
Details
GemRB 0.3.0 ebuild (gemrb-0.3.0.ebuild,1.31 KB, text/plain)
2008-03-01 13:04 UTC, Nick White
Details
GemRB Live SVN ebuild (gemrb-9999.ebuild,1.41 KB, text/plain)
2008-03-01 13:11 UTC, Nick White
Details
GemRB 0.3.1 ebuild (gemrb-0.3.1.ebuild,1.23 KB, text/plain)
2008-11-07 21:56 UTC, Nick White
Details
GemRB 0.3.2 ebuild (gemrb-0.3.2.ebuild,1.14 KB, text/plain)
2009-02-20 13:23 UTC, Nick White
Details
Example GemRB config (GemRB.cfg.sample,8.56 KB, text/plain)
2009-02-20 13:24 UTC, Nick White
Details
GemRB 0.4.0 ebuild (gemrb-0.4.0.ebuild,1.14 KB, text/plain)
2009-05-28 14:43 UTC, Nick White
Details
GemRB 0.5.0 ebuild (gemrb-0.5.0.ebuild,1.15 KB, text/plain)
2009-08-15 21:42 UTC, Nick White
Details

Note You need to log in before you can comment on or make changes to this bug.
Description GNUtoo 2006-12-16 17:11:33 UTC
here's the ebuild for gemrb
Comment 1 GNUtoo 2006-12-16 17:12:21 UTC
Created attachment 104184 [details]
gemrb-0.2.7.ebuild
Comment 2 GNUtoo 2006-12-16 17:17:30 UTC
Created attachment 104185 [details, diff]
cflags.patch
Comment 3 GNUtoo 2006-12-16 17:21:21 UTC
Created attachment 104186 [details, diff]
sandbox.patch
Comment 4 GNUtoo 2006-12-16 17:22:21 UTC
there is actualy no dependencies...feel free to add them
Comment 5 Jakub Moc (RETIRED) gentoo-dev 2006-12-16 17:24:34 UTC
*** Bug 48942 has been marked as a duplicate of this bug. ***
Comment 6 Nick White 2007-02-27 13:42:46 UTC
An ebuild for the latest release, 0.2.8

This has quite a few little tweaks, several in order to allow read-only access to the /usr directory, as required by gentoo-games. The cache directory is moved to /var/cache/gemrb , and a patch to allow saving to home directories is installed.
Comment 7 Nick White 2007-02-27 13:44:04 UTC
Created attachment 111412 [details]
GemRB 0.2.8 ebuild
Comment 8 Nick White 2007-02-27 13:45:09 UTC
Created attachment 111413 [details, diff]
Save Home patch for 0.2.8
Comment 9 Nick White 2007-02-27 13:45:12 UTC
Created attachment 111415 [details, diff]
Save Home patch for 0.2.8
Comment 10 Nick White 2007-02-27 13:47:49 UTC
Created attachment 111416 [details]
Example GemRB config
Comment 11 Nick White 2007-02-27 14:34:05 UTC
Created attachment 111423 [details]
GemRB 0.2.8 ebuild

Update fixes unnecessary inherit libtool
Comment 12 GNUtoo 2007-03-02 15:00:05 UTC
mabe we should also make an ebuild that use the cvs version because we can't save in baladur's gate 2 in the 0.2.8 version
we should or:
-make a cvs snapshot and use this one
-make the ebuild use the cvs
Comment 13 Nick White 2007-03-04 15:16:01 UTC
The save bug was fixed only one day after the 0.2.8 release, so I think it'd be best to just add the patch. I'll work on doing this in a couple of days, the bug is fixed in svn revision 4246: http://gemrb.svn.sourceforge.net/viewvc/gemrb?view=rev&revision=4246
I think using a snapshot or changing the ebuild to use svn would be more trouble than it's worth, not to mention strongly discouraged by the gentoo-games folks. And who are we to argue?
Comment 14 Nick White 2007-04-25 23:09:24 UTC
Created attachment 117276 [details, diff]
Patch to fix saving in 0.2.8
Comment 15 Nick White 2007-04-25 23:12:00 UTC
Created attachment 117277 [details]
GemRB 0.2.8 ebuild

Hopefully this will fix the saving problems on BG2 - let me know as I don't have the game, so couldn't test it.
Note that the patch file is pretty big (larger than the 20k suggested limit), but it'll only be needed for this version, so I think it's the best way.
Comment 16 GNUtoo 2007-04-29 16:04:56 UTC
i tried gemrb 0.2.8 with the fix saving patch:
$ gemrb
gemrb: error while loading shared libraries: libgemrb_core.so.0: cannot open shared object file: No such file or directory
Comment 17 Nick White 2007-04-30 00:05:45 UTC
(In reply to comment #16)
> gemrb: error while loading shared libraries: libgemrb_core.so.0: cannot open
> shared object file: No such file or directory
> 

It should have installed to the gentoo games default libdir directory, /usr/games/lib/libgemrb_core.so.0

Providing the file is indeed there, ensure the gemrb cfg file reflects this, i.e. with the line:
PluginsPath=/usr/games/lib/gemrb/

Also, check that your /etc/ld.so.conf contains the line:
/usr/games/lib
(which it should by default)

I'd recommend looking at the config file I uploaded http://bugs.gentoo.org/attachment.cgi?id=111416 - as it reflects the slight deviations the ebuild makes from the standard build; notably changing the library, cache and save paths.
Comment 18 GNUtoo 2007-05-26 22:51:25 UTC
Created attachment 120400 [details]
the parch of the save-fix-path doesn't wotk with portage(mabe it works only with paludis)
Comment 19 GNUtoo 2007-05-26 22:51:48 UTC
Created attachment 120401 [details]
0.2.8-save_fix.patch-5629.out

he parch of the save-fix-path doesn't wotk with portage(mabe it works only with paludis)
Comment 20 Nick White 2007-05-27 21:40:42 UTC
Created attachment 120483 [details, diff]
Patch to fix saving in 0.2.8

This should fix it.
The old patch didn't have the right kind of newlines in it, which used to work OK, but I guess something was updated in patch or something.
Note that I still am not able to test the patch myself, so while it should now apply cleanly, it may not fix the saving problems. Let me know.
Comment 21 Nick White 2007-08-31 18:11:36 UTC
Created attachment 129700 [details]
GemRB 0.2.9 ebuild

Ebuild of the latest version of GemRB.
Simpler than 0.2.8, as the patches and some other modifications are no longer necessary.
Note that GemRB.cfg.sample is also required.
Comment 22 Nick White 2007-08-31 18:14:46 UTC
Comment on attachment 111416 [details]
Example GemRB config

Renamed config file to bring in line with upstream
Comment 23 Nick White 2007-08-31 18:30:56 UTC
I'm rather new to all of this, but according to http://www.gentoo.org/doc/en/ebuild-submit.xml#doc_chap2_sect2 the Component field of this bug should be "Ebuilds", not "Games".
If I'm not mistaken, could the OP or an Admin change this please?
Comment 24 Mr. Bones. (RETIRED) gentoo-dev 2007-08-31 19:33:21 UTC
no, games is right for this one since it's assigned to the games team.
Comment 25 Jonas Nicolaisen 2007-11-03 18:06:24 UTC
Created attachment 135108 [details]
gemrb 0.2.9 make error

0.2.9 fails to compile here. Log attached. Seems a bit strange, I see only warnings... nothing serious?

Should the dependencies be bumped (python 2.5, gcc 4?)

Portage 2.1.2-r9 (default-linux/x86/2006.0, gcc-3.4.6, glibc-2.5-r0, 2.6.22.9 i586)
=================================================================
System uname: 2.6.22.9 i586 Pentium MMX
Gentoo Base System release 1.12.9
Timestamp of tree: Tue, 27 Feb 2007 20:50:01 +0000
distcc 2.18.3 i586-pc-linux-gnu (protocols 1 and 2) (default port 3632) [enabled]
ccache version 2.3 [enabled]
dev-lang/python:     2.3.5-r3, 2.4.3-r4
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     2.3
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.61
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils:  2.16.1-r3
sys-devel/gcc-config: 1.3.14
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.17-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i586-pc-linux-gnu"
CFLAGS="-march=pentium-mmx -O2 -pipe -fomit-frame-pointer"
CHOST="i586-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb"
CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/revdep-rebuild /etc/splash /etc/terminfo"
CXXFLAGS="-march=pentium-mmx -O2 -pipe -fomit-frame-pointer"
DISTDIR="/var/portage/distfiles"
FEATURES="autoconfig ccache distcc distlocks metadata-transfer sandbox sfperms strict"
GENTOO_MIRRORS="http://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/ ftp://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/ ftp://ftp.easynet.nl/mirror/gentoo/ http://gentoo.inode.at/ ftp://gentoo.inode.at/source/"
LANG="de_DE@euro"
LDFLAGS="-Wl,-O1"
LINGUAS="de"
MAKEOPTS="-j3"
PKGDIR="/var/portage/packages"
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="/tmp"
PORTDIR="/var/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://pathfinder.sundermusic.de/gentoo-portage"
USE="X a52 alsa apm berkdb crypt cups dga dvd fbcon ffmpeg flac gdbm gif glibc-omitfp gtk2 jpeg kdrive ladspa libsamplerate mad mmx mp3 ncurses nls nptl nptlonly ogg oggvorbis pam pcmcia perl png pop ppds python readline sdl sndfile ssl stream svg svga tiff truetype truetype-fonts trusted unicode usb userlocales vorbis x86 xorg xvid zlib" ALSA_CARDS="opl3sa2" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" ELIBC="glibc" INPUT_DEVICES="evdev mouse keyboard" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="de" USERLAND="GNU" VIDEO_CARDS="chips"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_RSYNC_EXTRA_OPTS
Comment 26 Nick White 2007-11-03 20:11:05 UTC
Created attachment 135117 [details, diff]
Patch to fix_endian to ensure clean build

Thanks for pointing that out.

The bug has now been fixed upstream (in r4807), and this patch & the following updated ebuild should take it into account.

Let me know if this works for you.
Comment 27 Nick White 2007-11-03 20:12:52 UTC
Created attachment 135119 [details]
Gemrb 0.2.9 ebuild

Updated ebuild which takes the fix_endian patch into account
Comment 28 Jonas Nicolaisen 2007-11-03 22:49:12 UTC
Yes, it emerges now without problems.

Thanks (and thank upstream.)
Comment 29 Jonas Nicolaisen 2007-11-03 22:56:32 UTC
By the way, I'd like to add a vote for a gemrb-svn ebuild. It's not asking too much from a Gentoo user to install svn (I have it already.)

I think someone reported a pretty severe bug with character creation in BG2 which Avenger wanted to fix "asap". Things like this make an svn ebuild desirable.

Just my opinion.
Comment 30 Nick White 2007-11-04 22:42:01 UTC
Created attachment 135208 [details]
GemRB Live SVN Ebuild

Vote acknowledged :)

This is my first attempt at a live ebuild, but it should work fine. It checks out the latest svn source and attempts to build from it.

Note that this ebuild doesn't need the fix_endian patch, as it's fixed upstream.

I haven't the resources to test it thoroughly at present, but it at least builds without problem.
Comment 31 Jonas Nicolaisen 2007-11-06 01:47:11 UTC
Superb. Testing right now =)

By the way, gemrb sound seems to be better when using Alsa OSS emulation, and starting with "aoss gemrb" (that's part of alsa-oss-utils or whatever the package is called.) Maybe put that in the ewarn or whatever those messages at the end of an emerge are called.

Also, saving/loading only works if the save subdirectory exists, either in the game dir or in ~/.bg2/. The engine will not create the save subdirectory itself and thus on a fresh bg2 install, saving will fail. Should maybe be reported as a bug upstream, or go in the emerge messages, too.
Comment 32 Nick White 2007-11-24 19:41:11 UTC
Thanks for reporting the save make dir problem - I reported it and it's now fixed in SVN, so re-emerging the live ebuild should fix that.

As for putting a notice advising aoss, I don't think we should do at the moment - none of the games in the main tree do, and plain alsa worked pretty fine for me last time I checked. If someone's having real problems they can come here and see your fine suggestion ;)
Comment 33 Nick White 2008-02-25 16:18:35 UTC
Created attachment 144585 [details]
GemRB 0.3.0 ebuild

New ebuild for 0.3.0 release.

This release should have all of the previous build bugs sorted, so none of the above patches are necessary.

Note that the Example GemRB config is still used by the ebuild, so keep it in the files/ directory.
Comment 34 Nick White 2008-02-25 18:17:03 UTC
Created attachment 144610 [details]
GemRB Live SVN Ebuild

Cleaned up & improved Live SVN ebuild
Comment 35 unlord 2008-02-26 18:23:20 UTC
It builds on 64bit, please add ~amd64 to the KEYWORDS.
Comment 36 Nick White 2008-03-01 13:04:24 UTC
Created attachment 144993 [details]
GemRB 0.3.0 ebuild

Added ~amd64 keyword
Comment 37 Nick White 2008-03-01 13:11:44 UTC
Created attachment 144995 [details]
GemRB Live SVN ebuild

Added ~amd64 keyword
Comment 38 Dennis Schridde 2008-09-28 01:00:25 UTC
(0.3.1 released)
Comment 39 Nick White 2008-09-30 15:20:46 UTC
Well spotted. I'm not able to update this at the moment, does someone else want to check whether just bumping the version works, and post an updated ebuild? Thanks.
Comment 40 Nick White 2008-11-07 21:56:13 UTC
Created attachment 171043 [details]
GemRB 0.3.1 ebuild

Ebuild for GemRB 0.3.1
Comment 41 Nick White 2009-02-20 13:23:18 UTC
Created attachment 182651 [details]
GemRB 0.3.2 ebuild

Updated ebuild for new release 0.3.2
Comment 42 Nick White 2009-02-20 13:24:20 UTC
Created attachment 182653 [details]
Example GemRB config

Updated sample config file
Comment 43 Nick White 2009-05-28 14:43:26 UTC
Created attachment 192717 [details]
GemRB 0.4.0 ebuild

Ebuild for the latest release of GemRB, 0.4.0
Comment 44 Nick White 2009-08-15 21:42:08 UTC
Created attachment 201372 [details]
GemRB 0.5.0 ebuild

Ebuild for the latest version of GemRB: 0.5.0

Also now included in the 'njw' overlay.
Comment 45 Mr. Bones. (RETIRED) gentoo-dev 2009-08-27 18:55:06 UTC
gemrb-0.5.1.ebuild is in portage.
Comment 46 Nick White 2009-08-28 11:09:07 UTC
Great! Thanks alot Mr Bones!