LMS-Community / slimserver-platforms

Platform-specific build tools for Lyrion Music Server
48 stars 41 forks source link

Added use of PERL5LIB in SYSV script and in systemd unit file. #24

Closed JohanSaaw closed 3 years ago

JohanSaaw commented 3 years ago

By setting PERL5LIB in the SYSV init script and in the systemd unit file we will work around the different values of the perl @INC array in the different distributions. With PERL5LIB set to /usr/lib/perl5/vendor_perl, the squeezebox server executable will search for modules in that directory before it searches any of the directories in the @INC array.

As result it is no longer needed to create a symbolic link pointing to /usr/lib/perl5/vendor_perl from a directory present in @INC on any of the RPM based distributions.