Hello,
It seems I'm not the only one who has had trouble with squeezeboxserver
not starting recently, due to Perl having trouble loading bundled CPAN
modules. I got things running with locally built CPAN modules, by
reading this forum.
However I prefer to have my software packages fully handled by a
package manager, so I have spent a little while putting together a way
to build a Debian package with locally built CPAN modules. I figured
others might be interested in such a package, so here's a small guide.
It's currently .deb specific, but making it work for rpms shouldn't be
too hard.
INSTALLING NEEDED SOFTWARE
Various software is needed to build the software, but I found it the
easiest to install a bundle, rather than figuring out exactly what was
or wasn't needed:
Code:
--------------------
$ sudo aptitude install debhelper fakeroot build_essential subversion nasm
--------------------
GET AND PATCH A COPY OF THE SOURCE TREE
In a new folder, run:
Code:
--------------------
$ svn co <address>
--------------------
(I'll edit in the address when I'm allowed to post links)
Save the attached patch to your build folder, and apply it:
Code:
--------------------
$ cd trunk
$ patch -p0 < ../buildCPAN.patch
--------------------
The patch is needed for the build scripts to build CPAN modules for the
package, and to find Perl 5.12.4, which is the current Perl in Debian
testing.
BUILD THE PACKAGE
Depending on your system, you may need a different set of modules
built. If you don't know which modules are failing on your machine, run
/usr/sbin/squeezeboxserver, it tell you in the output. With the patched
build script, you can give a comma separated list of modules to
rebuild. Note that if "XML::Parser::Expat" is failing, you have to put
just the name "XML::Parser" in the list.
I used this command to build my current package:
Code:
--------------------
./buildme.pl --build debian --buildDir ../build/ --sourceDir . --destDir ../
--releaseType nightly --fakeroot --buildCPAN
EV,XML::Parser,HTML::Parser,JSON::XS,Digest::SHA1,YAML::Syck,Sub::Name,Image::Scale
--------------------
If all goes well, your package will be ready for you one folder out,
install:
Code:
--------------------
$ sudo dpkg -i ../squeezeboxserver_<some version number>
--------------------
You may find that your first list of failing modules wasn't complete so
the software still wont start. In that case, figure out which modules
are failing now, and build again, adding to the list of modules to
build. For me, this just added Image::Scale.
Enjoy!
+-------------------------------------------------------------------+
|Filename: buildCPAN.patch |
|Download: http://forums.slimdevices.com/attachment.php?attachmentid=12077|
+-------------------------------------------------------------------+
--
dnj
------------------------------------------------------------------------
dnj's Profile: http://forums.slimdevices.com/member.php?userid=48283
View this thread: http://forums.slimdevices.com/showthread.php?t=88832
_______________________________________________
unix mailing list
[email protected]
http://lists.slimdevices.com/mailman/listinfo/unix