PEAR is archived and read-only

This mirror preserves historical PEAR package releases and metadata so existing references remain available.

Home » PEAR » PEAR_Command_Packaging » Bug #6378

"pear makerpm" generates packages that conflict due to depdb/.channels

Details

Submitted2005-12-31 12:32 UTC
Frombugs at timj dot co dot uk
Assignedtimj
StatusClosed
PackagePEAR_Command_Packaging
PHP Version5.1.1
OSIrrelevant
Roadmaps(Not assigned)

Comments

[2005-12-31 12:32 UTC] bugs at timj dot co dot uk

Description:
------------
Not sure when this started, but at least with PEAR 1.4.5, packages built with "pear makerpm" seem to end up with the following files:

%{peardir}/.channels/*
%{peardir}/.depdb
%{peardir}/.depdblock

which shouldn't be in the individual package files. This means that installing PEAR packages is not possible :(

Test script:
---------------
pear makerpm Some_Package-x.y.z.tgz
rpm -ivh Some_Package-x.y.z.noarch.rpm

Patch to fix:

--- template.spec.1.7 2005-12-30 12:29:18.000000000 +0000
+++ template.spec.cleanchandep 2005-12-31 12:23:12.000000000 +0000
@@ -53,6 +53,8 @@
rm %{buildroot}/%{_libdir}/php/pear/.filemap
rm %{buildroot}/%{_libdir}/php/pear/.lock
rm -rf %{buildroot}/%{_libdir}/php/pear/.registry
+rm -rf %{buildroot}%{peardir}/.channels
+rm -rf %{buildroot}%{peardir}/.depdb*
if [ "@doc_files@" != "" ]; then
mv %{buildroot}/docs/@package@/* .
rm -rf %{buildroot}/docs

Expected result:
----------------
Works fine, no errors

Actual result:
--------------
file /usr/share/pear/.channels/__uri.reg from install of Some_Package-x.y.z-1 conflicts with file from package [distro's base php-pear package]

file /usr/share/pear/.channels/pear.php.net.reg from install of Some_Package-x.y.z-1 conflicts with file from package [distro's base php-pear package]

file /usr/share/pear/.channels/pecl.php.net.reg from install of Some_Package-x.y.z-1 conflicts with file from package [distro's base php-pear package]

file /usr/share/pear/.depdb from install of Some_Package-x.y.z-1 conflicts with file from package [distro's base php-pear package]

[2006-02-10 12:04 UTC] timj at php dot net

This bug has been fixed in CVS.

If this was a documentation problem, the fix will appear on pear.php.net by the end of next Sunday (CET).

If this was a problem with the pear.php.net website, the change should be live shortly.

Otherwise, the fix will appear in the package's next release.

Thank you for the report and for helping us make PEAR better.