You are not logged in.
Frozen bubble is a highly addictive game .... http://www.frozen-bubble.org/
One caveat : it is incompatible with SDL_perl 2.X which is in Arch right now (they say that several times on their home page, and I can confirm that :-( ).
Hence, I made sdl_perl119 which provides the version that frozen bubble was coded with. Luckily after some digging, I found that the old version is still availablt on CPAN - no idea for how much longer, though. I hope (expect ?) that frozen bubble will be updated eventually ...
I used quite a bit the "depends", "provides" and "conflicts" fields in the two packages. So beware ! I tested it, but that does not mean, the PKGBUILDS are perfect.
EDIT on Oct 4th : Just to make life easier, here are the two PKGBUILDS :
# Contributor: Andreas Schweitzer <sig11@gmx.net>
pkgname=frozen-bubble
pkgver=1.0.0
pkgrel=1
pkgdesc="Award winning, highly addictive game."
depends=('sdl_image' 'sdl_mixer' 'sdl_perl>=1.19<=1.20' 'sdl_gfx')
source=(http://guillaume.cottenceau.free.fr/fb/$pkgname-$pkgver.tar.bz2)
url="http://www.frozen-bubble.org/"
md5sums=('2be5ead2aee72adc3fb643630a774b59')
build() {
cd $startdir/src/$pkgname-$pkgver
make PREFIX=/usr || return 1
make PREFIX=$startdir/pkg/usr install
}
# Contributor: Andreas Schweitzer <sig11@gmx.net>
pkgname=sdl_perl119
pkgver=1.19.2
pkgrel=1
pkgdesc="The OLD version of SDL_perl. SDL Perl is a Perl wrapper for SDL, sporting all the SDL bits you would expect, including fullscreen OpenGL."
depends=('sdl' 'sdl_gfx' 'freetype2' 'libjpeg' 'sdl_ttf' 'sdl_image' 'libpng' 'libogg' 'libvorbis' 'sdl_mixer' 'sdl_net' 'alsa-lib')
source=(http://search.cpan.org/CPAN/authors/id/D/DG/DGOEHRIG/SDL_perl-$pkgver.tar.gz)
url="http://sdlperl.org/"
md5sums=('f4d532623cb3feddf7e54aece1de53e6')
provides=('sdl_perl')
conflicts=('sdl_perl')
build() {
cd $startdir/src/SDL_perl-$pkgver
./configure --without-alsa
make || return 1
make DESTDIR=$startdir/pkg install
rm $startdir/pkg/usr/lib/perl5/5.8.1/i686-linux/perllocal.pod
rm $startdir/pkg/usr/lib/perl5/site_perl/5.8.1/i686-linux/auto/SDL_perl/.packlist
}
Offline
you should also make sure that both sdl_perls can coexist together if they are not you could break other packages.
AKA uknowme
I am not your friend
Offline
That might get tricky. But yes, I realize, right now one has to sacrifice the current sdl_perl in order to play frozen-bubble. And I forgot to mention that.
I, for my part, could simply remove sdl_perl (version 2.X) before starting the whole thing and did not break anything - but that's just my system ;-) ...
I *hope* that eventually frozen-bubble gets updated to work with sdl_perl 2.X - that would be the best solution anyways. But in the meantime I will look into making the compatibility. I simply noticed some desire to play that game in another thread ;-) ... adding to that my own desire ... and we got a temporary solution for the diehard frozen-bubble fans :-)
Offline
Great work, Andy ! (there goes productivity again ).
Offline
Just a quick comment, replace the make install line with :
make PREFIX=$startdir/pkg/usr
DESTDIR=$startdir/pkg install
rm -f
$startdir/pkg/usr/lib/perl5/{5.8.1/i686-linux/perllocal.pod,site_perl/5.8.1/i686-linux/auto/fb_c_stuff/.packlist}
since your PKGBUILD doesn't install the perl files in $startdir/pkg but in rootdir. Then to install it on the build box use 'pacman -A -f' & the perl files installed while building will be tracked by pacman (I can't find a cleaner approach ).
Offline
I installed sdl_perl and all its dependencies, but when I installed the frozen-bubble package in incoming, I got this error when attempting to run frozen-bubble:
Segmentation fault
I then tried to compile the frozen-bubble package from source, but when I do, I get this error:
*** I need perl-SDL installed
...and then the build aborts.
I also rebuilt the sdl_perl package from source, but still got the error when attempting to build the frozen-bubble package. I never had any version of sdl_perl installed previously, so there would be no conflict there.
Any ideas?
Offline
Well, tried to build frozen bubble again tonight with no sucess. The package build is failing on the following command
perl -e 'use SDL'
after which a segmentation fault occurs.
Has anyone gotten this to work? I have the sdl_perl119 package installed plus all of frozen bubble's other dependencies. I don't have the current version of sdl_perl installed, so there would not a conflict.
Please help! Thanks!
Offline
I guess I will have to look at it again :-) ...
Offline
Thanks, andy! Much appreciated.
Offline
try upgrading your perlsdl to 1.20.0
AKA uknowme
I am not your friend
Offline
Where would I find that version of sdl_perl? The version in current is 2.0.2, which I believe is incompatible with frozen bubble.
Offline
OK, I checked again : it works for me ;-) ... well I cleaned the PKGBUILDS a bit and will post them later (technical problems). In the meantime triple check that you don't have any sdl_perl installed - the segfault does sound like it !. Do
pacman -R frozen-bubble
pacman -R sdl_perl119
pacman -R sdl_perl
pacman -Q | egrep -i sdl | egrep -i perl
The last command should not return anything. Then do
find /usr/lib/perl5 -name "*SDL*"
That should not return anything either. If it does, do
pacman -Qo /a/file/you/found/with/the/previous/command
If it returns something, think about deinstalling that package. If it returns nothing, you have perl-SDL files on your drive that are not tracked by pacman - this is bad ! Remove them and pray that everything still works.
Also, upgrading to sdl_perl 1.20 will not make a difference. First, frozen-bubble was developed with 1.19, and second, it is a PITA to find anything but the offifical, current sdl_perl releases.
Offline
Thanks again for checking that out, andy!
I actually do have sdl_perl119 installed, which I built using the PKGBUILD you had posted earlier. I don't, however, have the current arch package installed. Perhaps I should try removing the sdl_perl119 package and rebuilding once you post the updated PKGBUILDs. I'll follow the steps you posted and keep my fingers crossed!
Offline
And here they come :
First install sdl_perl119 with this PKGBUILD :
# Contributor: Andreas Schweitzer <andy@bootblock.de>
pkgname=sdl_perl119
pkgver=1.19.2
pkgrel=2
pkgdesc="The OLD version of SDL_perl. SDL Perl is a Perl wrapper for SDL, sporting all the SDL bits you would expect, including fullscreen OpenGL."
depends=('sdl' 'sdl_gfx' 'sdl_ttf' 'sdl_image' 'libvorbis' 'sdl_mixer' 'sdl_net' 'alsa-lib')
source=(http://search.cpan.org/CPAN/authors/id/D/DG/DGOEHRIG/SDL_perl-$pkgver.tar.gz)
url="http://sdlperl.org/"
md5sums=('f4d532623cb3feddf7e54aece1de53e6')
provides=('sdl_perl')
conflicts=('sdl_perl')
build() {
cd $startdir/src/SDL_perl-$pkgver
./configure --without-alsa
make || return 1
make DESTDIR=$startdir/pkg install
rm $startdir/pkg/usr/lib/perl5/*/i686-linux/perllocal.pod
rm $startdir/pkg/usr/lib/perl5/site_perl/*/i686-linux/auto/SDL_perl/.packlist
}
And after perl_sdl119 is installed build frozen_bubble from here :
# Contributor: Andreas Schweitzer <andy@bootblock.de>
pkgname=frozen-bubble
pkgver=1.0.0
pkgrel=2
pkgdesc="Award winning, highly addictive game."
depends=('sdl_image' 'sdl_mixer' 'sdl_perl>=1.19<=1.20' 'sdl_gfx')
source=(http://guillaume.cottenceau.free.fr/fb/$pkgname-$pkgver.tar.bz2)
url="http://www.frozen-bubble.org/"
md5sums=('2be5ead2aee72adc3fb643630a774b59')
build() {
cd $startdir/src/$pkgname-$pkgver
make PREFIX=/usr || return 1
make PREFIX=$startdir/pkg/usr DESTDIR=$startdir/pkg install || return 1
rm $startdir/pkg/usr/lib/perl5/*/i686-linux/perllocal.pod
rm $startdir/pkg/usr/lib/perl5/site_perl/*/i686-linux/auto/fb_c_stuff/.packlist
}
In case it should not work, I'll put tar balls with everything on http://bootblock.de/arch/
Something else, I noticed : that
http://sdl.perl.org/ seems to be now maintaining SDL Perl - and they seem to be considering 1.20.4 to be the latest version ....
Offline
You're da man andy . I was too busy to fix it myself now I guess I'll be more busy playing FB .
Offline
damn I still get a segmentation fault...
perl -e 'use SDL' gives segmentation fault too...
Offline
I'm still having the exact same problem too. I tried rebuilding the sdl_perl119 and perl packages, but no dice. :cry:
Offline
I'm afraid I can't reproduce your problems. I grabbed a relativley new system wich did not have any game/SDL stuff installed. I downloaded my own tar ball, unpacked it, and tried to install the included package with "pacman -U". It was complaining about missing dependecies (no surprise), so I issued a few pacman -S and this is log of the recent installations :
[02/10/04 10:48] installed audiofile (0.2.5-1)
[02/10/04 10:48] installed esd (0.2.32-1)
[02/10/04 10:48] installed sdl (1.2.6-3)
[02/10/04 10:48] installed sdl_ttf (2.0.6-1)
[02/10/04 10:48] installed sdl_gfx (2.0.9-1)
[02/10/04 10:48] installed sdl_mixer (1.2.5-1)
[02/10/04 10:48] installed libogg (1.1-1)
[02/10/04 10:48] installed libvorbis (1.0.1-1)
[02/10/04 10:48] installed sdl_net (1.2.5-1)
[02/10/04 10:49] installed sdl_image (1.2.3-1)
[02/10/04 10:49] installed alsa-lib (1.0.2-1)
Then I could install sdl_perl119. and perl -e 'use SDL' gave no segfault.
Then I removed sdl_perl119 again and recompiled it with the provided PKGBUILD, installed the resulting package : same thing : no segfault.
Lastly I did the same with frozen-bubble itself. First installing the provided package, then rebuilding it. Both times it worked.
So : *did* *you* *really* *make* *sure* *that* *there* *is* *no* *conflicitng* *software* *on* *your* *system* ? (damn, this is hard to type ;-) ... )
Has either of you ever forced anything while upgrading/installing ? This may leave unmaintained files behind. Dig through /usr/lib/perl5/ and make sure everything in there is pacman controlled !
Offline
id like to report that ive also got the same faults, seg faults. this is a new build machine as well
EDIT fixed it by making the packages myself and it worked
"Covered in blood, Cant understand" - Biffy Clyro
Offline
Well, I think I discovered why I was getting the segfaults when trying to install/build frozen bubble. I have an NVIDIA GeForce2 video card, and if I use the basic kernel module (nv in XF86Config file), frozen bubble will run just fine.
However, when I install the driver provided by nvidia, frozen bubble will no longer run and I get a segfault. The really interesting thing is that it doesn't matter whether I have the nvidia-provided module listed in my XF86Config file. I get the segfaults by simply having it installed. When I uninstall, everything is fine.
Does anyone know what could be causing this behavior? I remember having the nvidia module working with frozen bubble back when I used to run Mandrake. Maybe something is amiss in the XF86Config file? Thoughts anyone?
Thanks!
Offline
This NVidia trouble probably comes form SDL or how perl interacts with SDL. Do other SDL programs run fine ? As I don't have an NVidia card I can only speculate :-) but playing with the PKGBUILD's and*maybe* using *slightly* newer versions of sdl_perl *may* help (as they *may* have bug fixes to this problem ...)
Offline
and tomorow i *may * be rich
-----BEGIN GEEK CODE BLOCK-----
Version: 3.1
GU/ d- s: a- C L U P+ L+++ E--- W+
N 0+ K- W-- !O !M V-- PS+ PE- V++ PGP T 5 Z+ R* TV+ B+
DI-- D- G-- e-- h! r++ z+ z*
------END GEEK CODE BLOCK------
Offline
I realize this is an old thread.... but i made a sdl-perl-1.19.2 package that can co-exist w/ the normal sdl_perl package (it gets put in /opt) and a frozen bubble package that uses it. you can get the PKGBUILDS and patches at http://maccorin.homelinux.org/frozen
also the nvidia problem can be solved w 'export LD_PRELOAD=/usr/lib/libGL.so.1', of course the package checks if you have that file and does that for you
RTFM
Offline
Cool ! I never got the sdl_perl's to coexist. They were too deep inside perl for my knowledge of perl-installations. I'll have to try it tonight.
Offline
make sure you let me know if it works for ya, glad someone else is as happy about having frozen bubble as me
RTFM
Offline