Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

problem with RESOURCES and PERL6LIB env variable #6108

Open
p6rt opened this issue Feb 27, 2017 · 6 comments
Open

problem with RESOURCES and PERL6LIB env variable #6108

p6rt opened this issue Feb 27, 2017 · 6 comments

Comments

@p6rt
Copy link

p6rt commented Feb 27, 2017

Migrated from rt.perl.org#130883 (status was 'open')

Searchable as RT130883$

@p6rt
Copy link
Author

p6rt commented Feb 27, 2017

From @MARTIMM

Hi,

In Rakudo version 2017.02-56-g9f10434 built on MoarVM version
2017.02-7-g3d85900
implementing Perl 6.c I observed the following;

Assume that a distribution is at /x/y (on Unix) then;

1) when no environment variable PERL6LIB is set, the modules from the
/x/y/lib directory can not be found. This is normal.

2) when PERL6LIB is set to the empty string, suddenly it is able to find
the modules. This is not ok. this is the same when a dot is in the
string ('.'), to find modules in the current directory. What also
happens is that the path to the resource is calculated wrong. Assume
/x/y/resources/a.b, %?RESOURCES<a.b> returns /x/resources/a.b missing
the /y. When the bowels of the %?RESOURCES are displayed, the repo key
misses the '/lib' at the end of its repository path.

3) when 'lib' is used in the PERL6LIB variable all is fine.

I was in the habit of using the string '.,lib' until perl6 choose the
dot over the 'lib' part and got faulty RESOURCES results in one of my
repositories.

Thanks,
Marcel

@p6rt
Copy link
Author

p6rt commented Jul 15, 2017

From @dogbert17

On Mon, 27 Feb 2017 06​:55​:46 -0800, mt1957@​gmail.com wrote​:

Hi,

In Rakudo version 2017.02-56-g9f10434 built on MoarVM version
2017.02-7-g3d85900
implementing Perl 6.c I observed the following;

Assume that a distribution is at /x/y (on Unix) then;

1) when no environment variable PERL6LIB is set, the modules from the
/x/y/lib directory can not be found. This is normal.

2) when PERL6LIB is set to the empty string, suddenly it is able to find
the modules. This is not ok. this is the same when a dot is in the
string ('.'), to find modules in the current directory. What also
happens is that the path to the resource is calculated wrong. Assume
/x/y/resources/a.b, %?RESOURCES<a.b> returns /x/resources/a.b missing
the /y. When the bowels of the %?RESOURCES are displayed, the repo key
misses the '/lib' at the end of its repository path.

3) when 'lib' is used in the PERL6LIB variable all is fine.

I was in the habit of using the string '.,lib' until perl6 choose the
dot over the 'lib' part and got faulty RESOURCES results in one of my
repositories.

Thanks,
Marcel

A test for the PERL6LIB problem was added with Raku/roast@10cf641

@p6rt
Copy link
Author

p6rt commented Jul 15, 2017

The RT System itself - Status changed from 'new' to 'open'

@p6rt
Copy link
Author

p6rt commented Jul 15, 2017

From @dogbert17

On Sat, 15 Jul 2017 09​:44​:28 -0700, jan-olof.hendig@​bredband.net wrote​:

On Mon, 27 Feb 2017 06​:55​:46 -0800, mt1957@​gmail.com wrote​:

Hi,

In Rakudo version 2017.02-56-g9f10434 built on MoarVM version
2017.02-7-g3d85900
implementing Perl 6.c I observed the following;

Assume that a distribution is at /x/y (on Unix) then;

1) when no environment variable PERL6LIB is set, the modules from the
/x/y/lib directory can not be found. This is normal.

2) when PERL6LIB is set to the empty string, suddenly it is able to
find
the modules. This is not ok. this is the same when a dot is in the
string ('.'), to find modules in the current directory. What also
happens is that the path to the resource is calculated wrong. Assume
/x/y/resources/a.b, %?RESOURCES<a.b> returns /x/resources/a.b missing
the /y. When the bowels of the %?RESOURCES are displayed, the repo
key
misses the '/lib' at the end of its repository path.

3) when 'lib' is used in the PERL6LIB variable all is fine.

I was in the habit of using the string '.,lib' until perl6 choose the
dot over the 'lib' part and got faulty RESOURCES results in one of my
repositories.

Thanks,
Marcel

A test for the PERL6LIB problem was added with
Raku/roast@10cf641

Also, the test was added because the PERL6LIB problem had been resolved (rakudo/rakudo@075ddef).

@p6rt
Copy link
Author

p6rt commented Jul 17, 2017

From @ugexe

The %?RESOURCES bug was fixed in​: rakudo/rakudo#1106

@p6rt
Copy link
Author

p6rt commented Mar 14, 2018

From @dogbert17

On Mon, 17 Jul 2017 10​:50​:55 -0700, ugexe@​cpan.org wrote​:

The %?RESOURCES bug was fixed in​: rakudo/rakudo#1106

ugexe, does that mean that the issue can be marked as resolved?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant