Re: PEAR::Archive_Tar (artifical) limitations and the incorrect PhpDocumentor tarball

From: Date: Mon, 06 Jan 2003 22:13:13 +0000
Subject: Re: PEAR::Archive_Tar (artifical) limitations and the incorrect PhpDocumentor tarball
References: 1  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-12174@lists.php.net to get a copy of this message
Jesus, Today Archive_Tar is only managing files with name less than 100 char (old POSIX tar files). I didn't do more because I didn't take the time (have the time ?) to work the differences between GNU tar and POSIX tar. I will start now looking at that, as I understand it will become a problem for the package manager of PEAR. The documentation in docs/Archive_Tar.txt should be updated ... I correct Archive_Tar in the last CVS version for bug #21402 (and close it). However the correction does not change the filename limitation. Best regards, Vincent Jesus M. Castagnetto wrote:
As I mention in bug #21402, there seems to be (at least) one limitation imposed in PEAR::Archive_Tar, namely that stored filenames cannot be longer than 100 chars. This would be OK if the package docs in CVS indicated that it was trying to allow manipulation of old POSIX tar files, but it indicates (in Archive_Tar/docs/Archive_Tar.txt) that: "... The Archive_Tar class helps in creating and managing GNU TAR format files compressed by GNU ZIP or not. ..." So the package tries to be compatible w/ GNU tar. Interestingly enough in the Gnu tar manual it is mentioned: (http://www.gnu.org/manual/tar/html_chapter/tar_8.html#SEC112) "... Traditionally, old tars have a limit of 100 characters. GNU tar attempted two different approaches to overcome this limit, using and extending a format specified by a draft of some P1003.1. The first way was not that successful, and involved `@MaNgLeD@' file names, or such; while a second approach used `././@LongLink' and other tricks, yielding better success. In theory, GNU tar should be able to handle file names of practically unlimited length. ..." Hmm, *practically unlimited length*... This problem (and at least one other bug) have impeded the release through PEAR of PhpDocumentor. This is the first example, other packages that use a deep tree structure will also have the same problem. If we want the pear packager/installer to be used more widely, this artificial limit (and its associated bugs), should be removed (and the bug or bugs fixed/eliminated). Limits with a reason are good, it allows the code to deal with sane cases. Artificial limits that contradict the purpose of a package or that do not have a real reason, are bad. I am not a developer in PhpDocumentor, just a user, and I would love to use something as simple as: % pear install PhpDocumentor and later % pear upgrade PhpDocumentor like I can do w/ many other useful packages from PEAR, sadly I cannot. ===== --- Jesus M. Castagnetto (jcastagnetto@yahoo.com) Research: http://metallo.scripps.edu/ Personal: http://www.castagnetto.org/ __________________________________________________ Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now. http://mailplus.yahoo.com


« previous php.pear.dev (#12174) next »