lmiphay / gentoo.overlay

lmiphay gentoo overlay
4 stars 3 forks source link

logitechmediaserver-bin 8.2.0 version #13

Open antonellocaroli opened 3 years ago

antonellocaroli commented 3 years ago

Hi,

I was trying to adapt your ebuild, I'm no expert, to install version 8.2.0

But for some reason I can't apply the patches: uuid-gentoo.patch client-playlists-gentoo.patch

do you have any solution for this?

antonellocaroli commented 3 years ago

I think I solved it this way:

--- slimserver.pl   2012-05-29 13:43:52.000000000 +0100
+++ slimserver.pl   2012-04-01 22:00:00.000000000 +0100
@@ -471,8 +471,9 @@

    # Generate a UUID for this SC instance on first-run
    if ( !$prefs->get('server_uuid') ) {
-       require UUID::Tiny;
-       $prefs->set( server_uuid => UUID::Tiny::create_UUID_as_string( UUID::Tiny::UUID_V4() ) );
+       require Data::UUID;
+       my $ug = new Data::UUID;
+       $prefs->set( server_uuid => lc $ug->create_str() );
    }

    main::INFOLOG && $log->info("Server binary search path init...");
--- a/Slim/Player/Playlist.pm   2012-05-29 13:43:52.000000000 +0100
+++ b/Slim/Player/Playlist.pm   2012-05-29 13:43:52.000000000 +0100
@@ -1124,7 +1124,7 @@
    $id =~ s/://g;

    return Slim::Utils::Misc::fileURLFromPath(
-       catfile(scalar Slim::Utils::OSDetect::dirsFor('prefs'), "clientplaylist_$id.m3u")
+       catfile(scalar Slim::Utils::OSDetect::dirsFor('ClientPlaylists'), "clientplaylist_$id.m3u")
    );
 }