Summary: | media-sound/squeezeboxserver fails to build (perl 5.10 related?) | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Diego Elio Pettenò (RETIRED) <flameeyes> |
Component: | New packages | Assignee: | Stuart Hickinbottom <stuart> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | djc, gregoire.favre, johannes, lavajoe, mail, perl, timmy, will |
Priority: | High | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: | Build log |
Description
Diego Elio Pettenò (RETIRED)
2010-01-07 15:31:49 UTC
Created attachment 215557 [details]
Build log
Same problem here on my machine after emerge perl5.10.1 I've modified ebuild a little: # Install compiled Perl modules because of bug#287264 and bug#287857. # dodir "/usr/lib/squeezeboxserver/CPAN/arch" # cp -r CPAN-arch/* "${D}/usr/lib/squeezeboxserver/CPAN/arch" || die "Unable to install compiled CPAN modules" # cp -r CPAN-pm/* "${D}/usr/share/squeezeboxserver/CPAN" || die "Unable to install compiled CPAN modules" This means I've omitted step with installing manually Audio-Scan and EV CPAN modules - instead of this I've emerge dev-perl/Audio-Scan and dev-perl/EV Squeezeboxserver compiled without errors and works fine now :-) Stuart: Are you going to replace those Perl modules by their portage versions? (I mean at least dev-perl/Audio-Scan because this ebuild is in poratage while EV not) *** Bug 306355 has been marked as a duplicate of this bug. *** (In reply to comment #3) I am still unable to build squeezeboxserver - not sure what your fix entails, am I to merge dev-perl/Audio-Scan? And dev-perl/EV does not exist. Please enlighten - I'm stuck!! (In reply to comment #4) > Stuart: Are you going to replace those Perl modules by their portage versions? > (I mean at least dev-perl/Audio-Scan because this ebuild is in poratage while > EV not) > Yes, that's the plan. I believe Squeezebox Server 7.4.2 is just around the corner and I'll be trying to get a cleaner ebuild out to support that. That should include using Audio-Scan, but also a few others if I can get SBS to work with them. (In reply to comment #6) > (In reply to comment #3) > I am still unable to build squeezeboxserver - not sure what your fix entails, > am I to merge dev-perl/Audio-Scan? And dev-perl/EV does not exist. > Please enlighten - I'm stuck!! > There's a patch for the ebuild in bug#287257 that I believe works OK. If you're not comfortable applying that (and rebuild the associated manifest file), it would probably be best to wait until I can get 7.4.2 out (and use an older version of the ebuild) - that should be soon as I think Logitech are prepping 7.4.2 for release in the not too distant future. Stuart, I get the same thing as Diego gets when trying to install SBS (attachment in Comment 1). This happened after the perl upgrade. Now, once again I am stuck because SBS cannot restart due to some perl problem, and I cannot rebuild it using the new perl. Are you saying the patch in Comment 8 fixes this problem? I really don't want to wait untill the next SBS rev. (In reply to comment #9) > Stuart, > > I get the same thing as Diego gets when trying to install SBS (attachment in > Comment 1). This happened after the perl upgrade. Now, once again I am stuck > because SBS cannot restart due to some perl problem, and I cannot rebuild it > using the new perl. Are you saying the patch in Comment 8 fixes this problem? > I really don't want to wait untill the next SBS rev. > Yes, I believe that patch will fix your problem if you're on Perl 5.10.1, if you're able to apply it. SqueezeboxServer 7.4.2 is now out so I hope to get a build out for that soon - it would be sooner if 14 hour work days didn't get in the way! (In reply to comment #10) > > Yes, I believe that patch will fix your problem if you're on Perl 5.10.1, if > you're able to apply it. > > SqueezeboxServer 7.4.2 is now out so I hope to get a build out for that soon - > it would be sooner if 14 hour work days didn't get in the way! > Any news from that dept.? I'd like to install squeezeboxserver on a friend's HTPC, and the current ebuild still bails due to the bug we're discussing. (In reply to comment #11) > Any news from that dept.? I'd like to install squeezeboxserver on a friend's > HTPC, and the current ebuild still bails due to the bug we're discussing. > I'm just putting together the finishing touches - the ebuild seems to work for me now. I should get that submitted for inclusion in the next day or two, then it'll get reviewed and (hopefully) included. If you're able to work with local ebuilds then you could try grabbing it from my development git repository (you'd want the stuff in the 'stage' directory): http://github.com/hickinbottoms/squeezecenter-ebuild-for-gentoo/tree/develop-7.4 (In reply to comment #12) > http://github.com/hickinbottoms/squeezecenter-ebuild-for-gentoo/tree/develop-7.4 | CPANKEEP=" | Tie/LLHash.pm | Tie/RegexpHash.pm These two packages are available in the tree. dev-perl/EV is still not in the tree because of the bundled libev (#287857). (In reply to comment #13) > | CPANKEEP=" > | Tie/LLHash.pm > | Tie/RegexpHash.pm > > These two packages are available in the tree. Hmmm - I've eradicated that from a version I pushed to Github a couple of days ago but it doesn't seem to have showed up. Thanks for the tip-off I'll look into it. It's in this specific tree, which should be the HEAD so I don't know what's gone on there... http://github.com/hickinbottoms/squeezecenter-ebuild-for-gentoo/tree/4e75f4cc6b5f60c15bb2ce9397becf4a200b9bf0 Just to confirm, though, the ebuild definitely no longer bundles those two (but does still include EV for the bug you quote). I've just submitted the ebuild of squeezeboxserver-7.4.2 to Joe for checking and, hopefully, inclusion in Portage soon. That includes the attached patch and I believe it should address this bug. If someone could test that when it hits Portage it would be handy - we could then use that as evidence for closing the bug. I'll mark this as resolved when the ebuild is in Portage. I fetched the files from git and I should have done something wrong : /etc/init.d/squeezeboxserver start * Caching service dependencies ... [ ok ] * Starting Squeezebox Server ... dirsFor: Didn't find a match request: [scprefs] Use of uninitialized value $olddir in -d at /usr/lib64/perl5/vendor_perl/5.10.1/Slim/Utils/OS/Unix.pm line 122. Anyway thanks for the hard work ! oops, I forgot the : emerge --config =media-sound/squeezeboxserver-7.4.2 Everything seems fine, sorry for previous repport. Still another problem : I can't finish the configuration of the serverhttp://localhost:9000/settings/server/wizard.html as when I press the "Finish" I got "The connection was reset The connection to the server was reset while the page was loading." And squeezeboxserver isn't running anymore. (In reply to comment #18) > Still another problem : I can't finish the configuration of the > serverhttp://localhost:9000/settings/server/wizard.html as when I press the > "Finish" I got "The connection was reset > The connection to the server was reset while the page was loading." > And squeezeboxserver isn't running anymore. > That sounds like the server crashed - are there any useful clues in the server log file? (/var/log/squeezeboxserver/server.log)? As to those initial messages - yes I've seen those too, but they only appear the first time around. Well it can't connect to mysql : [10-03-31 01:31:32.0131] main::init (320) Starting Squeezebox Server (v7.4.2, r30215, Fri Feb 19 16:24:40 MST 2010) perl 5.010001 [10-03-31 01:32:05.3439] Slim::Schema::Storage::throw_exception (82) Error: DBI Connection failed: DBI connect('database=squeezeboxserver;mysql_socket=/var/run/mysqld/mysqld.sock','squeezeboxserver',...) failed: Access denied for user 'squeezeboxserver'@'localhost' (using password: YES) at /usr/lib64/perl5/vendor_perl/5.10.1/DBIx/Class/Storage/DBI.pm line 1052 [10-03-31 01:32:05.3443] Slim::Schema::Storage::throw_exception (82) Backtrace: frame 0: Slim::Utils::Log::logBacktrace (/usr/lib64/perl5/vendor_perl/5.10.1/Slim/Schema/Storage.pm line 82) frame 1: Slim::Schema::Storage::throw_exception (/usr/lib64/perl5/vendor_perl/5.10.1/DBIx/Class/Storage/DBI.pm line 1076) frame 2: DBIx::Class::Storage::DBI::_connect (/usr/lib64/perl5/vendor_perl/5.10.1/DBIx/Class/Storage/DBI.pm line 906) frame 3: DBIx::Class::Storage::DBI::_populate_dbh (/usr/lib64/perl5/vendor_perl/5.10.1/DBIx/Class/Storage/DBI.pm line 842) frame 4: DBIx::Class::Storage::DBI::ensure_connected (/usr/lib64/perl5/vendor_perl/5.10.1/Slim/Schema/Storage.pm line 41) frame 5: (eval) (/usr/lib64/perl5/vendor_perl/5.10.1/Slim/Schema/Storage.pm line 41) frame 6: Slim::Schema::Storage::dbh (/usr/lib64/perl5/vendor_perl/5.10.1/Slim/Schema.pm line 291) frame 7: Slim::Schema::_connect (/usr/lib64/perl5/vendor_perl/5.10.1/Slim/Schema.pm line 127) frame 8: Slim::Schema::init (/usr/lib64/perl5/vendor_perl/5.10.1/Slim/Music/Import.pm line 745) frame 9: Slim::Music::Import::_checkLibraryStatus (/usr/lib64/perl5/vendor_perl/5.10.1/Slim/Music/Import.pm line 678) frame 10: Slim::Music::Import::useImporter (/usr/lib64/perl5/vendor_perl/5.10.1/Slim/Music/MusicFolderScan.pm line 48) frame 11: Slim::Music::MusicFolderScan::init (/usr/lib64/perl5/vendor_perl/5.10.1/Slim/Utils/Prefs.pm line 732) frame 12: Slim::Utils::Prefs::__ANON__ (/usr/lib64/perl5/vendor_perl/5.10.1/Slim/Utils/Prefs/Base.pm line 307) frame 13: Slim::Utils::Prefs::Base::set (/usr/lib64/perl5/vendor_perl/5.10.1/Slim/Web/Settings/Server/Wizard.pm line 106) frame 14: Slim::Web::Settings::Server::Wizard::handler (/usr/lib64/perl5/vendor_perl/5.10.1/Slim/Web/HTTP.pm line 1107) frame 15: Slim::Web::HTTP::generateHTTPResponse (/usr/lib64/perl5/vendor_perl/5.10.1/Slim/Web/HTTP.pm line 913) frame 16: Slim::Web::HTTP::processURL (/usr/lib64/perl5/vendor_perl/5.10.1/Slim/Web/HTTP.pm line 724) frame 17: Slim::Web::HTTP::processHTTP (/usr/lib64/perl5/vendor_perl/5.10.1/Slim/Networking/IO/Select.pm line 139) frame 18: (eval) (/usr/lib64/perl5/vendor_perl/5.10.1/Slim/Networking/IO/Select.pm line 123) frame 19: Slim::Networking::IO::Select::__ANON__ (/usr/lib64/perl5/vendor_perl/5.10.1/Slim/Networking/IO/Select.pm line 183) frame 20: (eval) (/usr/lib64/perl5/vendor_perl/5.10.1/Slim/Networking/IO/Select.pm line 183) frame 21: Slim::Networking::IO::Select::loop (/usr/sbin/squeezeboxserver line 621) frame 22: main::idle (/usr/sbin/squeezeboxserver line 575) frame 23: main::main (/usr/sbin/squeezeboxserver line 1066) [10-03-31 01:32:05.3446] Slim::Schema::init (130) Error: Couldn't connect to database! Fatal error: [] Exiting! [10-03-31 01:32:05.3449] Slim::Schema::init (130) Backtrace: frame 0: Slim::Utils::Log::logBacktrace (/usr/lib64/perl5/vendor_perl/5.10.1/Slim/Schema.pm line 130) frame 1: Slim::Schema::init (/usr/lib64/perl5/vendor_perl/5.10.1/Slim/Music/Import.pm line 745) frame 2: Slim::Music::Import::_checkLibraryStatus (/usr/lib64/perl5/vendor_perl/5.10.1/Slim/Music/Import.pm line 678) frame 3: Slim::Music::Import::useImporter (/usr/lib64/perl5/vendor_perl/5.10.1/Slim/Music/MusicFolderScan.pm line 48) frame 4: Slim::Music::MusicFolderScan::init (/usr/lib64/perl5/vendor_perl/5.10.1/Slim/Utils/Prefs.pm line 732) frame 5: Slim::Utils::Prefs::__ANON__ (/usr/lib64/perl5/vendor_perl/5.10.1/Slim/Utils/Prefs/Base.pm line 307) frame 6: Slim::Utils::Prefs::Base::set (/usr/lib64/perl5/vendor_perl/5.10.1/Slim/Web/Settings/Server/Wizard.pm line 106) frame 7: Slim::Web::Settings::Server::Wizard::handler (/usr/lib64/perl5/vendor_perl/5.10.1/Slim/Web/HTTP.pm line 1107) frame 8: Slim::Web::HTTP::generateHTTPResponse (/usr/lib64/perl5/vendor_perl/5.10.1/Slim/Web/HTTP.pm line 913) frame 9: Slim::Web::HTTP::processURL (/usr/lib64/perl5/vendor_perl/5.10.1/Slim/Web/HTTP.pm line 724) frame 10: Slim::Web::HTTP::processHTTP (/usr/lib64/perl5/vendor_perl/5.10.1/Slim/Networking/IO/Select.pm line 139) frame 11: (eval) (/usr/lib64/perl5/vendor_perl/5.10.1/Slim/Networking/IO/Select.pm line 123) frame 12: Slim::Networking::IO::Select::__ANON__ (/usr/lib64/perl5/vendor_perl/5.10.1/Slim/Networking/IO/Select.pm line 183) frame 13: (eval) (/usr/lib64/perl5/vendor_perl/5.10.1/Slim/Networking/IO/Select.pm line 183) frame 14: Slim::Networking::IO::Select::loop (/usr/sbin/squeezeboxserver line 621) frame 15: main::idle (/usr/sbin/squeezeboxserver line 575) frame 16: main::main (/usr/sbin/squeezeboxserver line 1066) And from mysql : mysql> show tables in squeezeboxserver; Empty set (0.01 sec) mysql> show tables in squeezecenter; +-------------------------+ | Tables_in_squeezecenter | +-------------------------+ | albums | | comments | | contributor_album | | contributor_track | | contributors | | dbix_migration | | genre_track | | genres | | metainformation | | playlist_track | | pluginversion | | progress | | rescans | | tracks | | tracks_persistent | | unreadable_tracks | | years | +-------------------------+ 17 rows in set (0.09 sec) (In reply to comment #20) > Well it can't connect to mysql : > ... snip Thanks for looking into it. A couple of things to try... The preferences have been moved to the correct location (under /etc/squeezeboxserver rather than under /var/cache/squeezecenter). Can you check the password listed in the correct preferences file matches that which you expect? It'll be listed in the following text file: /etc/squeezeboxserver/squeezeboxserver.prefs Also, if you had the previous version of the ebuild installed you'll need to make sure the /etc/init.d/squeezeboxserver script was updated - that's important since it's this file that has the location of the above prefs file within it. Ca you check that /etc/init.d/squeezeboxserver contains the following line exactly: prefsfile=/etc/squeezeboxserver/squeezeboxserver.prefs If it's not there then it looks like you didn't run "dispatch-conf" or "cfg-update" following the installation of the 7.4.2 ebuild. Both files are right as I did use etc-update after each merge asking for it. And I can connect to mysql with the listed username and password from /etc/squeezeboxserver/squeezeboxserver.prefs Strange ? Yes, it is strange. I have it working OK (at least it gets further than this and I can scan and play music with it), on my test virtual machine with Perl 5.10.1. As I'm not sure whether this is related to Perl 5.10.1, or whether it's some other ebuild-related problem, I'd like to carry this on in bug#307119 if possible as it's also been reported there, to avoid duplication. Hello everyone, I managed to emerge 7.4.1 after commenting a few lines in the ebuild (comment #3) but I can't seem to start the service. I keep on getting those errors : The following modules failed to load: DBI DBD::mysql EV JSON::XS GD I have installed those modules via portage and CPAN. Anyone know what I should do to get everything up and running or is it a bug ? Thanks, Alex Ok my bad : I had forgotten to run the perl-cleaner. Everything seems to be working now thank you for the ebuild :) I believe this is resolved now - 7.4.2 has been committed to Portage and that installs on Perl 5.10.1. |