Skip Menu |

This queue is for tickets about the local-lib CPAN distribution.

Report information
The Basics
Id: 99819
Status: resolved
Priority: 0/
Queue: local-lib

People
Owner: Nobody in particular
Requestors: vitahall [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: 2.000014
Fixed in: 2.000017



Subject: Fails zsh: activate/deactivate PERL5LIB tesst when PERL5LIB is set in zsh environment
I was installing local::lib into my $HOME on an upgraded OS X 10.10 system. Right after the upgrade, I'd removed the contents of my previous perl5 library, but the PERL5LIB variable was still set from my .zshenv. When installing local::lib (with CPAN 2.00), it failed, seemingly because it didn't take into account that PERL5LIB might already have something in it. The full build and test results are attached, but that bit is: t/shell.t .............. 34/132 # Failed test 'zsh: activate PERL5LIB' # at t/shell.t line 165. # got: '/var/folders/vs/th01w6jd4253dhgrndbymz9m0000gn/T/_0B_5uZxLa/lib/perl5:/Users/ahall/env/perl5' # expected: '/var/folders/vs/th01w6jd4253dhgrndbymz9m0000gn/T/_0B_5uZxLa/lib/perl5' # Failed test 'zsh: deactivate PERL5LIB' # at t/shell.t line 179. # got: '/Users/ahall/env/perl5' # expected: undef The env vars are: PERL5LIB=/Users/ahall/env/perl5 PERL_MB_OPT=--install_base /Users/ahall/env/local/libperl PERL_MM_OPT=INSTALL_BASE=/Users/ahall/env/local/libperl /Users/ahall/env/perl5 is a symlink to /Users/ahall/env/local/libperl/lib/perl5. If I can be of assistance, please let me know. Thanks, Aaron
Subject: local-lib-test-failure.txt
CPAN: Storable loaded ok (v2.41) Reading '/Users/ahall/.cpan/Metadata' Database was generated on Sat, 25 Oct 2014 20:53:21 GMT Running install for module 'local::lib' Running make for H/HA/HAARG/local-lib-2.000014.tar.gz CPAN: Digest::SHA loaded ok (v5.84_01) CPAN: Compress::Zlib loaded ok (v2.06) Checksum for /Users/ahall/.cpan/sources/authors/id/H/HA/HAARG/local-lib-2.000014.tar.gz ok CPAN: Parse::CPAN::Meta loaded ok (v1.4405) CPAN: CPAN::Meta loaded ok (v2.133380) CPAN.pm: Building H/HA/HAARG/local-lib-2.000014.tar.gz Checking if your kit is complete... Looks good Generating a Unix-style Makefile Writing Makefile for local::lib Writing MYMETA.yml and MYMETA.json CPAN: Module::CoreList loaded ok (v3.03) cp lib/local/lib.pm blib/lib/local/lib.pm cp lib/POD2/DE/local/lib.pod blib/lib/POD2/DE/local/lib.pod cp lib/lib/core/only.pm blib/lib/lib/core/only.pm cp lib/POD2/PT_BR/local/lib.pod blib/lib/POD2/PT_BR/local/lib.pod Manifying 4 pod documents HAARG/local-lib-2.000014.tar.gz /usr/bin/make -- OK CPAN: YAML loaded ok (v1.13) Running make test PERL_DL_NONLAZY=1 "/usr/bin/perl" "-MExtUtils::Command::MM" "-MTest::Harness" "-e" "undef *Test::Harness::Switches; test_harness(0, 'blib/lib', 'blib/arch')" t/*.t t/bad_variables.t ...... ok t/carp-mismatch.t ...... ok t/classmethod.t ........ ok t/coderefs_in_inc.t .... ok t/de-dup.t ............. ok t/lib-core-only.t ...... ok t/pipeline.t ........... ok t/shell.t .............. 34/132 # Failed test 'zsh: activate PERL5LIB' # at t/shell.t line 165. # got: '/var/folders/vs/th01w6jd4253dhgrndbymz9m0000gn/T/_0B_5uZxLa/lib/perl5:/Users/ahall/env/perl5' # expected: '/var/folders/vs/th01w6jd4253dhgrndbymz9m0000gn/T/_0B_5uZxLa/lib/perl5' # Failed test 'zsh: deactivate PERL5LIB' # at t/shell.t line 179. # got: '/Users/ahall/env/perl5' # expected: undef t/shell.t .............. 128/132 # Looks like you failed 2 tests of 132. t/shell.t .............. Dubious, test returned 2 (wstat 512, 0x200) Failed 2/132 subtests t/stackable.t .......... ok t/subroutine-in-inc.t .. ok t/taint-mode.t ......... ok Test Summary Report ------------------- t/shell.t (Wstat: 512 Tests: 132 Failed: 2) Failed tests: 47, 51 Non-zero exit status: 2 Files=11, Tests=182, 4 wallclock secs ( 0.08 usr 0.02 sys + 2.10 cusr 1.03 csys = 3.23 CPU) Result: FAIL Failed 1/11 test programs. 2/182 subtests failed. make: *** [test_dynamic] Error 255 HAARG/local-lib-2.000014.tar.gz /usr/bin/make test -- NOT OK //hint// to see the cpan-testers results for installing this module, try: reports HAARG/local-lib-2.000014.tar.gz Running make install make test had returned bad status, won't install without force
For other shells, the test generally tries to prevent rc files from being loaded, but it seems this isn't possible with zsh. I've fixed the test to account for this. Fixed in git, release coming soon.
CC: vitahall [...] cpan.org
Subject: Re: [rt.cpan.org #99819] Fails zsh: activate/deactivate PERL5LIB tesst when PERL5LIB is set in zsh environment
Date: Tue, 28 Oct 2014 10:06:16 -0500
To: Graham Knop via RT <bug-local-lib [...] rt.cpan.org>
From: Aaron Hall <ahall [...] vitaphone.net>
On Mon, Oct 27, 2014 at 08:33:10PM -0400, Graham Knop via RT wrote: Show quoted text
> <URL: https://rt.cpan.org/Ticket/Display.html?id=99819 > > > For other shells, the test generally tries to prevent rc files from > being loaded, but it seems this isn't possible with zsh. I've fixed the > test to account for this.
"zsh -f" should keep the rc files from being run (except for the global /etc/zshenv, but if someone puts a bunch of stuff into /etc/zshenv they deserve what they get). - Aaron -- Aaron Hall : Mac OS X: Macintosh on top, Unix underneath. ahall@vitaphone.net : The perfect software love-in.
Fixed in 2.000017