Skip to content

Instantly share code, notes, and snippets.

@holybit
Last active December 21, 2015 11:49
Show Gist options
  • Save holybit/6301499 to your computer and use it in GitHub Desktop.
Save holybit/6301499 to your computer and use it in GitHub Desktop.
Carton - Test 'carton install' and 'carton bundle'. Results seem to indicate that the carton exectuable installed to vendor/bin is not properly fat packed.
# clean shell for Perl vars
$ perl -V:version
version='5.14.3';
$ which perl
perl is /usr/local/perlbrew/perls/perl-5.14.3/bin/perl
$ env | grep PERL
PERLBREW_VERSION=0.64
PERLBREW_PERL=perl-5.14.3
PERLBREW_BASHRC_VERSION=0.64
PERLBREW_ROOT=/usr/local/perlbrew
PERLBREW_HOME=/home/jcrotty/.perlbrew
PERLBREW_MANPATH=/usr/local/perlbrew/perls/perl-5.14.3/man
PERLBREW_PATH=/usr/local/perlbrew/bin:/usr/local/perlbrew/perls/perl-5.14.3/bin
PERLBREW=command perlbrew
$ rm -rf /tmp/perl5
$ cpanm -L /tmp/perl5 Carton
...
Building and testing Carton-v1.0.9 ... OK
Successfully installed Carton-v1.0.9
38 distributions installed
$ echo $?
0
$ mkdir -p /tmp/carton-test
$ cd /tmp/carton-test
$ export PERL5LIB=/tmp/perl5/lib/perl5/x86_64-linux/:/tmp/perl5/lib/perl5
$ echo 'requires "Test::Tester" => "0";' > cpanfile
$ /tmp/perl5/bin/carton install
Installing modules using /tmp/carton-test/cpanfile
Successfully installed Test-Tester-0.109
1 distribution installed
Complete! Modules were installed into /tmp/carton-test/local
$ /tmp/perl5/bin/carton bundle
Bundling modules using /tmp/carton-test/cpanfile
Copying F/FD/FDALY/Test-Tester-0.109.tar.gz
/tmp/KOBapUkM5K/carton.pre.pl syntax OK
Bundling /tmp/carton-test/vendor/bin/carton
Complete! Modules were bundled into /tmp/carton-test/vendor/cache
$ df -h /tmp
Filesystem Type Size Used Avail Use% Mounted on
/dev/mapper/VolGroup00-LogVol02
ext4 4.0G 3.3G 450M 89% /
$ perl -c vendor/bin/carton
vendor/bin/carton syntax OK
$
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment