mherger wrote: 
> > 1. All modules specific (modified) to LMS MUST stay in /lib. Is that
> > correct?
> 
> Yes.
> 
> > 2. /CPAN contains 'stock' modules, NEVER modified one because LMS,
> they
> > MUST stay in /lib (see 1). Is that correct?
> 
> Yes.
> 
> > The question then is:
> > 
> > how, in LMS (not in a plugin) we handle situations where LMS should
> use
> > a different .pm in different archs or versions?
> 
> As you saw in the search path list: LMS would first check the platform 
> specific locations in CPAN, and only then lib.
> 
> > Audio::Scan
> 
> That, unfortunately, is somewhat of an ugly exception. The fact that 
> it's in lib, as well as in CPAN, is due to an early attempt of mine to 
> not have platform specific files. I hoped one Audio.pm file would be 
> good enough to cover them all. Later on I gave up that idea and put a 
> copy of that file in all required folders.
> 
> > in /lib we have a version that is good only until PERL 0.24, then we
> > have specific versions in CPAN (are they 'stock'?)  for 5.26, 5.28
> and
> > 5.30, but if I look at the system CPAN of 5.30 in arch, I should use
> > version 1.01 NOT 1.02, then I'll need:
> > 
> > Solution 1: an arch specific Audio/Scan.pm  (is that working with
> > boostrap.pm ?)
> > Solution 2: a modified Audio/Scan.pm in lib in order to handle the
> > loading of different Scan.so depending on versions (in the style of
> the
> > current one, but evolved to 10.1 and 1.02).
> 
> Don't try #2. It turned out to be difficult.
> 
> -- 
> 
> Michael

Thx, now is clear to me.

The only dubt I still have is because of that in boostrap.pm:


Code:
--------------------
    
  loadModules contains some trickery to deal with modules
  # that need to load XS code. Previously, we would check in a module
  # under CPAN/arch/$VERSION/auto/... including it's binary parts and
  # the pure perl parts. This got to be messy and unwieldly, as we have
  # many copies of DBI.pm (and associated modules) in each version and
  # arch directory. 
  
  # The new world has only the binary modules in the
  # arch/$VERSION/auto directories - and single copies of the
  # corresponding .pm files at the top CPAN/ level.
  
  
--------------------


Is that a must or could we still have exceptions (.pm in specific
archs)?

I believe it works both and mixed ways, but...

Thx a lot.



________________________________________________________________________
Author of C-3PO plugin,  Squeezelite-R2, Falcon Web interface - See
www.marcoc1712.it
------------------------------------------------------------------------
marcoc1712's Profile: http://forums.slimdevices.com/member.php?userid=34842
View this thread: http://forums.slimdevices.com/showthread.php?t=111530

_______________________________________________
Squeezecenter mailing list
[email protected]
http://lists.slimdevices.com/mailman/listinfo/squeezecenter

Reply via email to