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

Cannot switch from an install with local::lib to one without #305

Open
karenetheridge opened this issue Mar 21, 2013 · 7 comments
Open

Cannot switch from an install with local::lib to one without #305

karenetheridge opened this issue Mar 21, 2013 · 7 comments

Comments

@karenetheridge
Copy link
Contributor

It does not seem to be possible to switch between an install with a local-lib attached, and one without:

: [ether@tequila ~].6$; perlbrew --version
/Users/ether/perl5/perlbrew/bin/perlbrew  - App::perlbrew/0.61
: [ether@tequila ~].6$; which perl
/Users/ether/perl5/perlbrew/perls/16.3/bin/perl
: [ether@tequila ~].6$; perlbrew list
  16.3 (5.16.3)
* 16.3@std
  dev (5.17.6)
  perl-5.14.2
  perl-5.14.3
  perl-5.16.0
  perl-5.16.1
  perl-5.17.6
  perl-5.8.9
: [ether@tequila ~].6$; echo $PERL5LIB
/Users/ether/.perlbrew/libs/16.3@std/lib/perl5
: [ether@tequila ~].6$; perlbrew use 5.17.6
: [ether@tequila ~].6$; which perl
/Users/ether/perl5/perlbrew/perls/perl-5.17.6/bin/perl
: [ether@tequila ~].6$; echo $PERL5LIB
/Users/ether/.perlbrew/libs/16.3@std/lib/perl5
: [ether@tequila ~].6$; unset PERL5LIB
: [ether@tequila ~].6$; perlbrew use 5.17.6
Use of uninitialized value in split at /loader/0x100830208/local/lib.pm line 8.
@karenetheridge
Copy link
Contributor Author

After others could not repro on irc, I tried in a new shell and cannot repro myself either. I must have had some artifacts from an older perlbrew in the environment; closing until I can reproduce again.

@karenetheridge
Copy link
Contributor Author

With a new shell, and simply using a local-lib, I get undef warnings:

: [ether@tequila ~].7$; perlbrew list
  16.3 (5.16.3)
* 16.3@std
  16.3@TB0.98_05
  16.3@TB1.5
  17.10 (5.17.10)
  17.10@std
  17.11 (5.17.11)
  17.11@std
  dev (5.17.6)
  perl-5.14.2
  perl-5.14.3
  perl-5.16.0
  perl-5.16.1
  perl-5.17.6
  perl-5.8.9
: [ether@tequila ~].7$; perlbrew use 17.11@std
Use of uninitialized value in split at /loader/0x10082ee38/local/lib.pm line 8.
Use of uninitialized value in split at /loader/0x10082ee38/local/lib.pm line 8.
: [ether@tequila ~].7$; set | grep PERLBREW
PERLBREW_BASHRC_VERSION=0.62
PERLBREW_HOME=/Users/ether/.perlbrew
PERLBREW_LIB=std
PERLBREW_MANPATH=/Users/ether/.perlbrew/libs/17.11@std/man:/Users/ether/perl5/perlbrew/perls/17.11/man
PERLBREW_PATH=/Users/ether/.perlbrew/libs/17.11@std/bin:/Users/ether/perl5/perlbrew/bin:/Users/ether/perl5/perlbrew/perls/17.11/bin
PERLBREW_PERL=17.11
PERLBREW_ROOT=/Users/ether/perl5/perlbrew
...contents of functions snipped...

@dagolden
Copy link
Contributor

I've fixed the warning in the local::lib repo, but I'm not sure what perlbrew is doing to cause it, though.

Things seem to work, regardless of the warning, though.

@karenetheridge
Copy link
Contributor Author

On Tue, May 21, 2013 at 07:06:28AM -0700, David Golden wrote:

I've fixed the warning in the local::lib repo, but I'm not sure what perlbrew is doing to cause it, though.
Things seem to work, regardless of the warning, though.

I've just released this as 1.008009.

@gugod
Copy link
Owner

gugod commented May 22, 2013

I believe this issue was fixed in 4665340 , but it has been on and off from time to time. Apparently some combination of local::lib version can still trigger this warning.

@djerius
Copy link
Contributor

djerius commented May 24, 2013

I did some debugging on the warning a few weeks back:

https://rt.cpan.org/Public/Bug/Display.html?id=84621

jperkin pushed a commit to TritonDataCenter/pkgsrc-legacy that referenced this issue Dec 9, 2013
Upstream changes:
1.008010 2013-05-26
        - Fix a split on undefined value warning (David Golden -- see
          gugod/App-perlbrew#305)

1.008009 2013-02-24
        - Remove Carp::Always dep

1.008008 2013-02-24
        - Fix putting arch path in PERL5LIB
        - Refactor Win32 path handling out of ensure_dir_structure_for()
        - Fix activate_paths when PERL_LOCAL_LIB_ROOT starts with :
        - Fix ~/perl5/bin missing in $PATH

1.008007 2013-02-17
        - Back to 1.008004 with Carp fix since subsequent releases were botched
        - Avoid issue where PERL5LIB Carp is older than local::lib one
jperkin pushed a commit to TritonDataCenter/pkgsrc-legacy that referenced this issue Jan 21, 2014
Upstream changes:
1.008010 2013-05-26
        - Fix a split on undefined value warning (David Golden -- see
          gugod/App-perlbrew#305)

1.008009 2013-02-24
        - Remove Carp::Always dep

1.008008 2013-02-24
        - Fix putting arch path in PERL5LIB
        - Refactor Win32 path handling out of ensure_dir_structure_for()
        - Fix activate_paths when PERL_LOCAL_LIB_ROOT starts with :
        - Fix ~/perl5/bin missing in $PATH

1.008007 2013-02-17
        - Back to 1.008004 with Carp fix since subsequent releases were botched
        - Avoid issue where PERL5LIB Carp is older than local::lib one
jperkin pushed a commit to TritonDataCenter/pkgsrc-legacy that referenced this issue Mar 14, 2014
Upstream changes:
1.008010 2013-05-26
        - Fix a split on undefined value warning (David Golden -- see
          gugod/App-perlbrew#305)

1.008009 2013-02-24
        - Remove Carp::Always dep

1.008008 2013-02-24
        - Fix putting arch path in PERL5LIB
        - Refactor Win32 path handling out of ensure_dir_structure_for()
        - Fix activate_paths when PERL_LOCAL_LIB_ROOT starts with :
        - Fix ~/perl5/bin missing in $PATH

1.008007 2013-02-17
        - Back to 1.008004 with Carp fix since subsequent releases were botched
        - Avoid issue where PERL5LIB Carp is older than local::lib one
jsonn pushed a commit to jsonn/pkgsrc that referenced this issue Oct 11, 2014
Upstream changes:
1.008010 2013-05-26
        - Fix a split on undefined value warning (David Golden -- see
          gugod/App-perlbrew#305)

1.008009 2013-02-24
        - Remove Carp::Always dep

1.008008 2013-02-24
        - Fix putting arch path in PERL5LIB
        - Refactor Win32 path handling out of ensure_dir_structure_for()
        - Fix activate_paths when PERL_LOCAL_LIB_ROOT starts with :
        - Fix ~/perl5/bin missing in $PATH

1.008007 2013-02-17
        - Back to 1.008004 with Carp fix since subsequent releases were botched
        - Avoid issue where PERL5LIB Carp is older than local::lib one
@mstreuhofer
Copy link
Contributor

fixed in 0.72. issue can be closed

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

4 participants