php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #36002 bundled pear packages fail md5sum check during make install-pear-packages
Submitted: 2006-01-13 20:00 UTC Modified: 2006-01-23 11:30 UTC
Votes:21
Avg. Score:4.7 ± 0.6
Reproduced:19 of 20 (95.0%)
Same Version:15 (78.9%)
Same OS:6 (31.6%)
From: bkw at weisshuhn dot de Assigned: cellog (profile)
Status: Closed Package: *General Issues
PHP Version: 4.4.2 OS:
Private report: No CVE-ID: None
 [2006-01-13 20:00 UTC] bkw at weisshuhn dot de
Description:
------------
The bundled pear packages Archive_Tar, Console_Getopt and HTML_Template_IT fail the md5sum check during make install-pear-packages.

Seems somebody made a search-and-replace (Copyright and license 3.01) before bundling php-4.4.2 and forgot to update the md5sums contained in the package.xml's of the tar files.

Reproduce code:
---------------
% ./configure
% make
% make install-pear-packages INSTALL_ROOT=/var/tmp/foo

[PEAR] Archive_Tar: bad md5sum for file /var/tmp/foo/usr/local/lib/php/Archive/Tar.php
[PEAR] Console_Getopt: bad md5sum for file /var/tmp/foo/usr/local/lib/php/Console/Getopt.php
[PEAR] HTML_Template_IT: bad md5sum for file /var/tmp/foo/usr/local/lib/php/HTML/Template/IT.php


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2006-01-18 23:14 UTC] derick@php.net
Actually, this is something that Jani broke - and he was warned about this. Assigning to him instead.
 [2006-01-18 23:56 UTC] sniper@php.net
Greg, can you please fix this? I know I broke it but I don't have time to fix it. (I don't know even where to start looking..)

 [2006-01-22 06:35 UTC] cellog@php.net
I'll be able to do this tomorrow when I get back home to my unix box where I can fix this and test to make sure it actually works

this is quite simple to fix, for future reference.

cd php-src/pear/packages
pear download -Z Archive_Tar Console_Getopt HTML_Template_IT
cvs commit -m "fix less-than-precise search/replace"
 [2006-01-22 06:39 UTC] cellog@php.net
you can also fix this by simply putting --force in the command line passed to install-pear.php in php-src/pear/Makefile.frag

Ultimately, however, you can also

cd php-src/pear/packages
wget http://pear.php.net/get/Archive_Tar-stable.tar
wget http://pear.php.net/get/Console_Getopt-stable.tar
wget http://pear.php.net/get/HTML_Template_IT-stable.tar

this will fix it without need for patching.
 [2006-01-23 11:30 UTC] bkw at weisshuhn dot de
yep, looks fixed to me. Thanks!
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Oct 11 01:01:27 2024 UTC