Skip to content

PERLLIB is not set correctly. #112

Description

@Samueru-sama

sharun/src/main.rs

Lines 719 to 721 in b1ef744

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions