Bug #3694 [Com]: "lone zero block" when untarring packages
| From: | ameyer2 | Date: | Thu, 27 Dec 2012 18:35:14 +0000 |
| Subject: | Bug #3694 [Com]: "lone zero block" when untarring packages | ||
| References: | 1 | Groups: | php.pear.bugs |
| Request: | Send a blank email to pear-bugs+get-9435@lists.php.net to get a copy of this message | ||
Edit report at http://pear.php.net/bugs/bug.php?id=3694&edit=1
ID: 3694
Comment by: ameyer2
Reported By: ameyer2 at yahoo dot com
Summary: "lone zero block" when untarring packages
Status: Wont fix
Type: Bug
Package: Archive_Tar
Operating System: Linux (Gentoo)
PHP Version: 4.3.10
Assigned To: vblavet
New Comment:
It appears that the problem, at least for Archive_tar, is that
Archive_Tar is appending a single block of zeros at the end of the
archive when the more recent tar packages expect there to be two such
blocks.
See: http://www.gnu.org/software/tar/manual/html_node/Standard.html
and
search for "zero" which explains the POSIX standard termination, or
http://en.wikipedia.org/wiki/Tar_%28computing%29
It looks like all that needs to be done to make Archive_Tar compliant is
to output two 512 byte blocks of zeros instead of just one - an easy
fix.
Andreas Korthaus posted a a patch that adds just one line to Archive_Tar
and looks like it should fix the problem for that package (see the
comment two above this one.) Can someone incorporate that in the
official Archive_Tar distribution?
Thanks.
Previous Comments:
------------------------------------------------------------------------
[2006-07-26 13:28:21] xy dot spam at packetflood dot net
I was able to fix my issue by recompiling php4 with the following
options: "cli pcre expat zlib"
I was missing 'expat' and was causing both PEAR-PEAR and any other PEAR
packages to not complete the install.
I had mistaken "lone zero block" for the issue I was having where the
packages would not install. I still get the error, but the install
finishes successfully.
------------------------------------------------------------------------
[2005-09-19 08:55:17] akorthaus at web dot de
I have posted a patch for this issue here:
http://pear.php.net/bugs/bug.php?id=5452
------------------------------------------------------------------------
[2005-03-04 15:42:56] vblavet
The problem seems to come from specific tar implementation. Not only
PEAR packages are impacte by this warning (this is only a warning).
For more detailled info see logged bug in debian about this tar "bug" :
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=235820
However it seems that the tar archives from Archive_Tar (and other tar
implementations) are not absolutly completly POSIX compliant. I tries to
figure out what is wrong without success.
So I changed the status to "Wont fix". If I find a clue, of course I
will change the code.
Notice that pear installer is using Archive_Tar and will not produce
this kind of warning.
------------------------------------------------------------------------
[2005-03-04 10:25:34] justinpatrin
DB_DataObject_FormBuilder's latest release (0.11.5) has this. Just
download it and "tar zxvf DB_DataObject_FormBuilder..."
------------------------------------------------------------------------
[2005-03-04 03:03:24] vblavet
Hello !
A Tar file is made of several 512 bytes bocks. This means that if a
compressed file is less than 512 we need to pad the block. May be
Archive_Tar is buggy and add a full 512 pad block trying to pad with a
full block. I can check that but can you send me an package that shows
the pb ? (vincent at phpconcept net).
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
http://pear.php.net/bugs/bug.php?id=3694
--
Edit this bug report at http://pear.php.net/bugs/bug.php?id=3694&edit=1