LMS-Community / slimserver-vendor

Third-party software used with Lyrion Music Server
https://lyrion.org
42 stars 68 forks source link

(bugfix): Retain Perl's archname for use with rsync #45

Closed fsbruva closed 6 years ago

fsbruva commented 6 years ago

On Ubuntu 17.10 amd64, the first rsync statement errors out:

rsync: change_dir: "..build/5.26/lib/perl5/x86_64-linux-thread-multi"
failed: No such file or directory (2)

This error occurs because the directory in perl5/lib is actually named x86_64-linux-gnu-thread-multi, but the script sanitizes the value prior to storage in ARCH.

This PR adds a new variable to store Perl's archname value before the sed filters to sanitize out the extra -gnu, -arm, etc. Then, replace sanitized arch value with raw arch within the rsync statements to match the directory name within perl5/lib.

Fixes a regression introduced in #36 .