php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #62416 yaz-1.1.2.tgz cannot be extracted
Submitted: 2012-06-26 02:48 UTC Modified: 2012-06-27 11:28 UTC
From: php-bugs-2012 at ryandesign dot com Assigned: dickmeiss (profile)
Status: Closed Package: yaz (PECL)
PHP Version: 5.4.4 OS: OS X 10.6.8
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: php-bugs-2012 at ryandesign dot com
New email:
PHP Version: OS:

 

 [2012-06-26 02:48 UTC] php-bugs-2012 at ryandesign dot com
Description:
------------
yaz-1.1.2.tgz cannot be extracted correctly. It only appears to contain the 
package.xml file; no source code. yaz-1.1.1.tgz did not have this problem.



Test script:
---------------
$ find .
.
./yaz-1.1.1.tgz
./yaz-1.1.2.tgz
$ openssl dgst -sha256 yaz-1.1.1.tgz
SHA256(yaz-1.1.1.tgz)= c15e4b849be9625c3a8f384fe05bb043aa15b82730c4fb06e3dafef63a96efb0
$ tar xzf yaz-1.1.1.tgz
$ find .
.
./package.xml
./yaz-1.1.1
./yaz-1.1.1/config.m4
./yaz-1.1.1/config.w32
./yaz-1.1.1/CREDITS
./yaz-1.1.1/php_yaz.c
./yaz-1.1.1/php_yaz.h
./yaz-1.1.1/README
./yaz-1.1.1/yaz.dsp
./yaz-1.1.1.tgz
./yaz-1.1.2.tgz
$ rm -rf package.xml yaz-1.1.1
$ openssl dgst -sha256 yaz-1.1.2.tgz
SHA256(yaz-1.1.2.tgz)= caac8ae06cd3872e2a0732c61812d55dc257a305d8d96be92a9347a313e19098
$ tar xzf yaz-1.1.2.tgz
$ find .
.
./package.xml
./yaz-1.1.1.tgz
./yaz-1.1.2.tgz
$ rm package.xml
$ gnutar xzf yaz-1.1.2.tgz 
gnutar: A lone zero block at 7
$ find .
.
./package.xml
./yaz-1.1.1.tgz
./yaz-1.1.2.tgz
$ rm package.xml
$ tar --version
bsdtar 2.6.2 - libarchive 2.6.2
$ gnutar --version
tar (GNU tar) 1.26
Copyright (C) 2011 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

Written by John Gilmore and Jay Fenlason.
$ 



Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2012-06-26 09:53 UTC] php-bugs-2012 at ryandesign dot com
Are you perhaps using an old version of Archive_Tar to package this? There was a bug causing this kind of issue which was fixed in Archive_Tar 1.3.9:

http://pear.php.net/bugs/bug.php?id=19289
 [2012-06-27 03:39 UTC] php-bugs-2012 at ryandesign dot com
As a workaround until the tgz file is fixed, the --ignore-zeros flag can be 
passed to gnutar:


$ gnutar xzf yaz-1.1.2.tgz --ignore-zeros
$ find .
.
./package.xml
./yaz-1.1.1.tgz
./yaz-1.1.2
./yaz-1.1.2/config.m4
./yaz-1.1.2/config.w32
./yaz-1.1.2/CREDITS
./yaz-1.1.2/php_yaz.c
./yaz-1.1.2/php_yaz.h
./yaz-1.1.2/README
./yaz-1.1.2/yaz.dsp
./yaz-1.1.2.tgz
$
 [2012-06-27 11:28 UTC] felipe@php.net
-Status: Open +Status: Closed -Assigned To: +Assigned To: dickmeiss
 [2012-06-27 11:28 UTC] felipe@php.net
I've released another version fixing this.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Wed Dec 04 03:01:30 2024 UTC