Triode wrote: 
> Can you explain exactly which lines you commented out?  Is it using the
> code contained within that if statement?  If so what are the first few
> lines of perl -V?

This is my running code in Plugin.pm now:

#       if (Slim::Utils::OSDetect->details->{'isSynology'}) {
my $arch = Slim::Utils::OSDetect->details->{'binArch'};
if ($arch =~ /^MARVELL/) {

Slim::Utils::Misc::addFindBinPaths(catdir(
$class->_pluginDataFor('basedir'), 'Bin', 'arm-linux' ));

$log->info("SYNOLOGY DETECTED");
}    
if ($arch =~ /X86|CEDARVIEW/) {
Slim::Utils::Misc::addFindBinPaths(catdir(
$class->_pluginDataFor('basedir'), 'Bin', 'i386-linux' ));
}                           
#       }

As you can see, everything within the statement is parsed.

perl -V:

Summary of my perl5 (revision 5 version 8 subversion 3) configuration:
Platform:
osname=linux, osvers=2.6.24, archname=MARVELL_88F6281
uname='linux  2.6.24'
config_args=''
hint=recommended, useposix=true, d_sigaction=define
usethreads=undef use5005threads=undef useithreads=undef
usemultiplicity=undef
useperlio=define d_sfio=undef uselargefiles=define usesocks=undef
use64bitint=undef use64bitall=undef uselongdouble=undef
usemymalloc=n, bincompat5005=undef
Compiler:

cc='/usr/local/arm-none-linux-gnueabi/bin/arm-none-linux-gnueabi-ccache-gcc',
ccflags ='-I/usr/local/arm-none-linux-gnueabi/include
-DSYNO_MARVELL_88F6281 -O2 -I/usr/syno/include -g
-DSYNO_PLATFORM=MARVELL_88F6281 -fno-strict-aliasing
-fexpensive-optimizations -fomit-frame-pointer -g ',
optimize='-O2',
cppflags='-fno-strict-aliasing'
ccversion='', gccversion='2.95.3 20010125 (prerelease)',
gccosandvers=''
intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=1234
d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=8
ivtype='long', ivsize=4, nvtype='double', nvsize=8, Off_t='off_t',
lseeksize=8
alignbytes=4, prototype=define
Linker and Libraries:

ld='/usr/local/arm-none-linux-gnueabi/bin/arm-none-linux-gnueabi-ld',
ldflags =''
libpth=/usr/local/arm-none-linux-gnueabi/lib /usr/syno/lib
libs=-lnsl -ldl -lm -lcrypt -lc -lutil -lc
-L/usr/local/arm-none-linux-gnueabi/lib/gcc/arm-none-linux-gnueabi/4.2.1
-lgcc_s -L/source/perl-5.x -lperl
perllibs=-lnsl -ldl -lm -lcrypt -lc -lutil
-L/usr/local/arm-none-linux-gnueabi/lib/gcc/arm-none-linux-gnueabi/4.2.1
-lgcc_s
libc=/usr/local/arm-none-linux-gnueabi/lib/libc-2.5.so, so=so,
useshrplib=true, libperl=libperl.so
gnulibc_version='2.2.2'
Dynamic Linking:
dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef,
ccdlflags='-I/usr/local/arm-none-linux-gnueabi/include
-DSYNO_MARVELL_88F6281 -O2 -I/usr/syno/include -g
-DSYNO_PLATFORM=MARVELL_88F6281 -fno-strict-aliasing
-fexpensive-optimizations -fomit-frame-pointer -g '
cccdlflags='-I/usr/local/arm-none-linux-gnueabi/include
-DSYNO_MARVELL_88F6281 -O2 -I/usr/syno/include -g
-DSYNO_PLATFORM=MARVELL_88F6281 -fno-strict-aliasing
-fexpensive-optimizations -fomit-frame-pointer -g ', lddlflags='-shared
-L/usr/local/arm-none-linux-gnueabi/lib/gcc/arm-none-linux-gnueabi/4.2.1
-L/source/perl-5.x -lperl -lgcc_s -L/usr/syno/lib'


Characteristics of this binary (from libperl): 
Compile-time options: USE_LARGE_FILES
Built under linux
Compiled at Nov 15 2012 22:07:08
@INC:
/usr/lib/perl5/5.8.6/MARVELL_88F6281
/usr/lib/perl5/5.8.6
/usr/lib/perl5/site_perl/5.8.6/MARVELL_88F6281
/usr/lib/perl5/site_perl/5.8.6
/usr/lib/perl5/site_perl


------------------------------------------------------------------------
Cribb's Profile: http://forums.slimdevices.com/member.php?userid=60969
View this thread: http://forums.slimdevices.com/showthread.php?t=79706

_______________________________________________
plugins mailing list
plugins@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/plugins

Reply via email to