|
if dir.starts_with("perl") { |
|
add_to_env("PERLLIB", dir_path) |
|
} |
At least on archlinux, /usr/lib/perl5 contains a subdirectory named 5.42.
And more importantly, that splits into 3 directories:
/usr/lib/perl5/5.42/core_perl
/usr/lib/perl5/5.42/site_perl
/usr/lib/perl5/5.42/vendor_perl
Those 3 directories is what PERLLIB needs to point to in SHARUN_DIR, each entry being colon separated.
Also, there is additionl perl modules in:
/usr/share/perl5/core_perl
/usr/share/perl5/site_perl
/usr/share/perl5/vendor_perl
So the variable actually needs to include ALL of these 🫠
I had to do this in the meantime.
sharun/src/main.rs
Lines 719 to 721 in b1ef744
At least on archlinux,
/usr/lib/perl5contains a subdirectory named5.42.And more importantly, that splits into 3 directories:
/usr/lib/perl5/5.42/core_perl/usr/lib/perl5/5.42/site_perl/usr/lib/perl5/5.42/vendor_perlThose 3 directories is what
PERLLIBneeds to point to inSHARUN_DIR, each entry being colon separated.Also, there is additionl
perlmodules in:/usr/share/perl5/core_perl/usr/share/perl5/site_perl/usr/share/perl5/vendor_perlSo the variable actually needs to include ALL of these 🫠
I had to do this in the meantime.