[ARVADOS] created: 512cc931f2fcf9beaa2360bdc6c566df631ef5e3
git at public.curoverse.com
git at public.curoverse.com
Fri May 29 21:24:58 EDT 2015
at 512cc931f2fcf9beaa2360bdc6c566df631ef5e3 (commit)
commit 512cc931f2fcf9beaa2360bdc6c566df631ef5e3
Author: Tom Clegg <tom at curoverse.com>
Date: Fri May 29 21:23:00 2015 -0400
Use --blocking-factor 1 with tar -A to reduce excess trailing padding. refs #6146 refs #6094
diff --git a/sdk/cli/bin/crunch-job b/sdk/cli/bin/crunch-job
index 864e3c0..a6cb8a3 100755
--- a/sdk/cli/bin/crunch-job
+++ b/sdk/cli/bin/crunch-job
@@ -1934,7 +1934,14 @@ sub combined_git_archive {
}
my $base_tar_name = tar_filename_n(1);
foreach my $tar_to_append (map { tar_filename_n($_); } (2..$git_tar_count)) {
- my $tar_exit = system("tar", "-Af", $base_tar_name, $tar_to_append);
+ # --blocking-factor 1 here fixes a bug: without it, depending on
+ # the inputs, the resulting tarball can have so much extra
+ # trailing NUL padding that tar exits early and sends a SIGPIPE
+ # when we extract it in the install script (see TARX below).
+ my $tar_exit = system("tar",
+ "--blocking-factor", "1",
+ "-Af", $base_tar_name,
+ $tar_to_append);
if ($tar_exit != 0) {
croak("Error preparing build archive: tar -A exited " .
exit_status_s($tar_exit));
-----------------------------------------------------------------------
hooks/post-receive
--
More information about the arvados-commits
mailing list