mherger wrote: > > What I could not understand is in /lib we have modified modules and > in > > CPAN a copy of the 'original' (stock) system CPAN, is that correct? > > I think this might be true for Audio::Scan (only). But not in general. > Modules we modified are supposed to be in /lib, sotck in CPAN. > > > If /CPAN is different than the system CPAN is by accident, it should > > never be and it must not be because a LMS specific feature, is that > > correct? > > I don't understand your question. > > > What if we want to have a modified module (that should in /lib) BUT > only > > for a specific arch or PERL version? > > That would be a mess. Is that in the context of a plugin? You can > provide your own modules in a plugin, but I'm not sure whether it would > > be possible to override the LMS' modules. > > -- > > Michael
Problem here is my english, sorry for that, I'll try to be clearer. Accordingly with the README in /lib: 1. All modules specific (modified) to LMS MUST stay in /lib. Is that correct? 2. /CPAN contains 'stock' modules, NEVER modified one because LMS, they MUST stay in /lib (see 1). Is that correct? 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? I.e. Audio::Scan 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). in both cases, you then have a new ...CPAN/arch/5.30/aarch64-linux-thread-multi/auto/Audio/Scan.so, but my question what are you going to do in LMS to handle that situation? The reason I ask is because i need a separate program to run as 'transcoder' and I would like to use the very same method to load modules in it, in a plugin is easy to override LMS modules, no matter if in Slim, CPAN or lib, but I would not do that whenever is possible! ________________________________________________________________________ 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
