marcoc1712 wrote:
> I'm triyng to replicat ewhat you did:
>
> 1. remove Audio:Scan from .../Plugins/C3PO/lib
> 2. restart
>
>
> that way, in a RPI 3+ with gentoo 64bit installed, it loads the file
> located in .../lib/Audio::Scan.pm that contains the test:
>
> >
Code:
--------------------
> >
>
> package Audio::Scan;
>
> use strict;
>
> our $VERSION;
>
> require XSLoader;
>
> BEGIN {
> foreach ('0.99', '0.93', '0.95', '0.94') {
> eval { XSLoader::load('Audio::Scan', $_); };
>
> if (!$@) {
> $VERSION = $_;
> last;
> }
> }
> }
>
>
--------------------
> >
>
> and fails.
>
>
> Seems to me you are loading another version of Audio::Scan.pm, maybe
> from CPAN and I could not understand how it happens.
> I've got no ARM to test here, so I'm depending on correct pieces of
> information coming from the users,
>
> could you please explain what you did step by step?
> is there, in your LMS STANDARD installation, NOT in the plugin, the
> file .../lib/Audio/scan.pm at all?
>
> If so, could you please post the first ten lines?
>
> thanks
Hi, I simpy enable the plugin, go to the
/var/lib/squeezeboxserver/cache/InstalledPlugins/Plugins/C3PO/lib/Audio
folder and remove or rename the Scan.pm to Scan.pm.ORG_NOOP. Then make a
change to a plugin (most often select or deselect the classical.com
plugin) to force a restart. Then upsampling works with 3CPO (reslting in
earlier sent logs).
And yes it turns out there are several scan.pm in my arm setup:
Code:
--------------------
root@lms:~# find / -iname scan.pm*
/usr/share/squeezeboxserver/CPAN/arch/5.28/Audio/Scan.pm
/usr/share/squeezeboxserver/CPAN/arch/5.30/Audio/Scan.pm
/usr/share/squeezeboxserver/CPAN/arch/5.24/arm-linux-gnueabihf-thread-multi-64int/Audio/Scan.pm
/usr/share/squeezeboxserver/CPAN/Media/Scan.pm
/usr/share/squeezeboxserver/lib/Audio/Scan.pm
/var/lib/squeezeboxserver/cache/InstalledPlugins/Plugins/C3PO/lib/Audio/Scan.pm.ORG_NOOP
--------------------
The last line is "your" scan.pm which I renamed in this case, but can be
removed in total as well.
First 11 lines of the other scan.pm's:
Code:
--------------------
package Audio::Scan;
use strict;
our $VERSION = '1.02';
require XSLoader;
XSLoader::load('Audio::Scan', $VERSION);
use constant FILTER_INFO_ONLY => 1;
use constant FILTER_TAGS_ONLY => 2;
--------------------
/usr/share/squeezeboxserver/CPAN/Media/Scan.pm is different:
Code:
--------------------
package Media::Scan;
use strict;
use base qw(Exporter);
use Media::Scan::Audio;
use Media::Scan::Image;
use Media::Scan::Error;
use Media::Scan::Progress;
use Media::Scan::Video;
# Log levels
use constant MS_LOG_ERR => 1;
use constant MS_LOG_WARN => 2;
use constant MS_LOG_INFO => 3;
use constant MS_LOG_DEBUG => 4;
use constant MS_LOG_MEMORY => 9;
# Flags
use constant MS_USE_EXTENSION => 1;
use constant MS_FULL_SCAN => 1 << 1;
use constant MS_RESCAN => 1 << 2;
use constant MS_INCLUDE_DELETED => 1 << 3;
use constant MS_WATCH_CHANGES => 1 << 4;
use constant MS_CLEARDB => 1 << 5;
our $VERSION = '0.01';
our @EXPORT = qw(
MS_LOG_ERR MS_LOG_WARN MS_LOG_INFO MS_LOG_DEBUG MS_LOG_MEMORY
MS_USE_EXTENSION MS_FULL_SCAN MS_RESCAN MS_INCLUDE_DELETED
MS_WATCH_CHANGES MS_CLEARDB
);
require XSLoader;
XSLoader::load('Media::Scan', $VERSION);
=head2 new( \@paths, \%options )
Create a new Media::Scan instance and begin scanning.
......etc
--------------------
and /usr/share/squeezeboxserver/lib/Audio/Scan.pm is different as well,
but then same as "yours":
Code:
--------------------
package Audio::Scan;
use strict;
our $VERSION;
require XSLoader;
BEGIN {
foreach ('0.99', '0.93', '0.95', '0.94') {
eval { XSLoader::load('Audio::Scan', $_); };
if (!$@) {
$VERSION = $_;
last;
}
}
}
use constant FILTER_INFO_ONLY => 1;
use constant FILTER_TAGS_ONLY => 2;
--------------------
Hope this helps?
------------------------------------------------------------------------
Huey11's Profile: http://forums.slimdevices.com/member.php?userid=67632
View this thread: http://forums.slimdevices.com/showthread.php?t=105309
_______________________________________________
Squeezecenter mailing list
[email protected]
http://lists.slimdevices.com/mailman/listinfo/squeezecenter