* Patch from Raul Miller <moth@debian.org> to make it used gzip -dc | tar

everywhere it used to use tar zxvf. The problem with the latter is
     that, on red hat anyway, tar or gzip seems to be broken, and tar does
     not see an end-of-file marker, causing alien to hang when converting
     rpms to debs. Closes: #96200
This commit is contained in:
joey
2001-05-09 15:13:34 +00:00
parent bb2bdf521c
commit 08d790ed78
3 changed files with 14 additions and 4 deletions

View File

@@ -95,7 +95,7 @@ sub getcontrolfile {
else { else {
# Have to handle old debs without a leading ./ and # Have to handle old debs without a leading ./ and
# new ones with it. # new ones with it.
return `ar p $file control.tar.gz | tar Oxzf - $controlfile ./$controlfile 2>/dev/null` return `ar p $file control.tar.gz | gzip -dc | tar Oxf - $controlfile ./$controlfile 2>/dev/null`
} }
} }
@@ -166,7 +166,7 @@ sub scan {
} }
else { else {
@filelist=map { chomp; s:\./::; "/$_" } @filelist=map { chomp; s:\./::; "/$_" }
`ar p $file data.tar.gz | tar tzf -`; `ar p $file data.tar.gz | gzip -dc | tar tf -`;
} }
$this->filelist(\@filelist); $this->filelist(\@filelist);
@@ -194,7 +194,7 @@ sub unpack {
or die "Unpacking of `$file' failed: $!"; or die "Unpacking of `$file' failed: $!";
} }
else { else {
system("ar p $file data.tar.gz | (cd ".$this->unpacked_tree."; tar zxpf -)") == 0 system("ar p $file data.tar.gz | gzip -dc | (cd ".$this->unpacked_tree."; tar xpf -)") == 0
or die "Unpacking of `$file' failed: $!"; or die "Unpacking of `$file' failed: $!";
} }

View File

@@ -199,7 +199,7 @@ sub unpack {
system("bzip2 -d < $file | (cd ".$this->unpacked_tree."; tar xpf -)") system("bzip2 -d < $file | (cd ".$this->unpacked_tree."; tar xpf -)")
} }
elsif ($compresstype == 1) { elsif ($compresstype == 1) {
system("cat $file | (cd ".$this->unpacked_tree."; tar zxpf -)") system("gzip -dc $file | (cd ".$this->unpacked_tree."; tar xpf -)")
} }
else { else {
die "package uses an unknown compression type, $compresstype (please file a bug report)"; die "package uses an unknown compression type, $compresstype (please file a bug report)";

10
debian/changelog vendored
View File

@@ -1,3 +1,13 @@
alien (7.24) unstable; urgency=low
* Patch from Raul Miller <moth@debian.org> to make it used gzip -dc | tar
everywhere it used to use tar zxvf. The problem with the latter is
that, on red hat anyway, tar or gzip seems to be broken, and tar does
not see an end-of-file marker, causing alien to hang when converting
rpms to debs. Closes: #96200
-- Joey Hess <joeyh@debian.org> Wed, 9 May 2001 11:09:16 -0400
alien (7.23) unstable; urgency=low alien (7.23) unstable; urgency=low
* Moved files out of perl privlib, Closes: #95512 * Moved files out of perl privlib, Closes: #95512