Making this change natively in the release branch, not master branch, as
an experiment for the 4.89 release: make the .xz tarball variant too,
and work harder on compressing our files for distribution.
print "Creating: ${pkgs}/${dirname}.tar.lz\n" if ($verbose || $debug);
system("$tar cf ${pkgs}/${dirname}.tar.lz --lzip -C ${pkgdirs} ${dirname}")
}
print "Creating: ${pkgs}/${dirname}.tar.lz\n" if ($verbose || $debug);
system("$tar cf ${pkgs}/${dirname}.tar.lz --lzip -C ${pkgdirs} ${dirname}")
}
+ if ($context->{compressors}{xz}) {
+ print "Creating: ${pkgs}/${dirname}.tar.xz\n" if ($verbose || $debug);
+ system("$tar cf ${pkgs}/${dirname}.tar.xz --xz -C ${pkgdirs} ${dirname}")
+ }
compressors => {
gzip => 1,
bzip2 => 1,
compressors => {
gzip => 1,
bzip2 => 1,
lzip => 0,
},
build_docs => 1,
lzip => 0,
},
build_docs => 1,
my $delete;
my $cleanup = 1;
##$ENV{'PATH'} = '/opt/local/bin:' . $ENV{'PATH'};
my $delete;
my $cleanup = 1;
##$ENV{'PATH'} = '/opt/local/bin:' . $ENV{'PATH'};
+ # We are creating files for mass distribution, so work harder to make smaller files.
+ $ENV{'GZIP'} = '-9';
+ $ENV{'BZIP2'} = '-9';
+ # xz documents minimum file sizes for levels higher than -6 to be useful and each
+ # requires more RAM on the decompressing system. Exim tarball currently 24MiB so
+ # using -8.
+ $ENV{'XZ_DEFAULTS'} = '-8';
GetOptions(
'directory=s' => \$context->{directory},
GetOptions(
'directory=s' => \$context->{directory},