Debian Bug report logs - #602865
upgrading from Lenny breaks php-pear setup

version graph

Package: php-pear; Maintainer for php-pear is Debian PHP Maintainers <team+pkg-php@tracker.debian.org>; Source for php-pear is src:php-pear (PTS, buildd, popcon).

Affects: php-net-smtp

Reported by: Gonzalo Pérez de Olaguer Córdoba <gpoc@iies.es> (by way of Gonzalo Pérez de Olaguer Córdoba <gpoc@iies.es>)

Date: Mon, 8 Nov 2010 23:36:02 UTC

Severity: grave

Tags: help

Found in version 1.4.2-1

Fixed in versions 1.4.2-2, php5/5.3.1-4

Done: Ondřej Surý <ondrej@sury.org>

Bug is archived. No further changes may be made.

Toggle useless messages

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to debian-bugs-dist@lists.debian.org, Debian PHP Maintainers <pkg-php-maint@lists.alioth.debian.org>:
Bug#602865; Package php-pear. (Mon, 08 Nov 2010 23:36:05 GMT) (full text, mbox, link).


Acknowledgement sent to Gonzalo Pérez de Olaguer Córdoba <gpoc@iies.es> (by way of Gonzalo Pérez de Olaguer Córdoba <gpoc@iies.es>):
New Bug report received and forwarded. Copy sent to Debian PHP Maintainers <pkg-php-maint@lists.alioth.debian.org>. (Mon, 08 Nov 2010 23:36:05 GMT) (full text, mbox, link).


Message #5 received at submit@bugs.debian.org (full text, mbox, reply):

From: Gonzalo Pérez de Olaguer Córdoba <gpoc@iies.es> (by way of Gonzalo Pérez de Olaguer Córdoba <gpoc@iies.es>)
To: Debian Bug Tracking System <submit@bugs.debian.org>
Subject: /usr/share/php/doc both in php-pear and in php-net-smtp packages
Date: Mon, 08 Nov 2010 03:19:15 +0100
Package: php-pear
Version: 5.2.6.dfsg.1-1+lenny9
Severity: important


Package php-pear makes /usr/share/php/doc a symlink
Package php-net-smtp makes /usr/share/php/doc a directory

This makes installation of both packages fail.

By the way, I had both packages installed without problems.
The problem became when upgrading apt-net-smtp from version
1.3.1-1 (lenny) to 1.4.2-1 (squeeze) with php-pear version
5.2.6.dfsg.1-1+lenny9 installed.

I ignore if the debian policy for php packages tells how
to handle the /usr/share/php/doc directory, but probably it should.

Thanks for your great work at Debian.

Best regards,
Gonzalo.

-- System Information:
Debian Release: squeeze/sid
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: i386 (i686)

Kernel: Linux 2.6.32-bpo.5-686-bigmem (SMP w/2 CPU cores)
Locale: LANG=es_ES.UTF-8, LC_CTYPE=es_ES.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages php-pear depends on:
ii  php5-cli           5.2.6.dfsg.1-1+lenny9 command-line interpreter for the p
ii  php5-common        5.2.6.dfsg.1-1+lenny9 Common files for packages built fr

Versions of packages php-pear recommends:
ii  gnupg                     1.4.9-3+lenny1 GNU privacy guard - a free PGP rep

Versions of packages php-pear suggests:
pn  php5-dev | php4-dev           <none>     (no description available)

-- no debconf information




Information forwarded to debian-bugs-dist@lists.debian.org, Debian PHP Maintainers <pkg-php-maint@lists.alioth.debian.org>:
Bug#602865; Package php-pear. (Tue, 09 Nov 2010 11:24:07 GMT) (full text, mbox, link).


Acknowledgement sent to Thomas Goirand <zigo@debian.org>:
Extra info received and forwarded to list. Copy sent to Debian PHP Maintainers <pkg-php-maint@lists.alioth.debian.org>. (Tue, 09 Nov 2010 11:24:07 GMT) (full text, mbox, link).


Message #10 received at 602865@bugs.debian.org (full text, mbox, reply):

From: Thomas Goirand <zigo@debian.org>
To: 602865@bugs.debian.org
Cc: Gonzalo Pérez de Olaguer Córdoba <gpoc@iies.es>, Guillaume Delacour <gui@iroqwa.org>, Debian PHP Maintainers <pkg-php-maint@lists.alioth.debian.org>
Subject: Re: [php-maint] Bug#602865: /usr/share/php/doc both in php-pear and in php-net-smtp packages
Date: Tue, 09 Nov 2010 19:10:45 +0800
On 11/08/2010 10:19 AM, Gonzalo Pérez de Olaguer Córdoba (by way of
Gonzalo Pérez de Olaguer Córdoba <gpoc@iies.es>) wrote:
> Package: php-pear
> Version: 5.2.6.dfsg.1-1+lenny9
> Severity: important
> 
> 
> Package php-pear makes /usr/share/php/doc a symlink
> Package php-net-smtp makes /usr/share/php/doc a directory
> 
> This makes installation of both packages fail.

If that was truth, IMHO, the seriousness for this issue would be
"grave", as per the definition: "makes the package in question unusable
by most or all users". Indeed, how could we use the package if we can't
even install it?

> By the way, I had both packages installed without problems.
> The problem became when upgrading apt-net-smtp from version
> 1.3.1-1 (lenny) to 1.4.2-1 (squeeze) with php-pear version
> 5.2.6.dfsg.1-1+lenny9 installed.
> 
> I ignore if the debian policy for php packages tells how
> to handle the /usr/share/php/doc directory, but probably it should.

The Debian policy is pretty clear that all documentations of packages
should go in /usr/share/doc/$PACKAGE. php-* packages don't differ from
others. Now, I can see that *MANY* pear packages could have an issues,
because CDBS create symlinks in /usr/share/php/doc/$PACKAGE, but read
further...

What I don't understand, is that I do have php-pear and php-net-smtp on
my system, and it isn't creating any conflict at all. php-net-smtp on
Lenny doesn't even carry a folder in /usr/share/php/doc. I've tried to
apt-get --reinstall install both php-pear and php-net-smtp, and it
worked well. That leads me to believe that the issue is when upgrading
from php-pear AND php-net-smtp in Lenny (but that's only a wild guess)
to Squeeze.

Can you explain a bit more how you had the issue? I'd be happy to fix
it, but currently, I couldn't reproduce it.

Thomas Goirand (zigo)

P.S: Guillaume Delacour is the last uploader, which is why I've put him
as Cc:.




Information forwarded to debian-bugs-dist@lists.debian.org, Debian PHP Maintainers <pkg-php-maint@lists.alioth.debian.org>:
Bug#602865; Package php-pear. (Tue, 09 Nov 2010 13:57:06 GMT) (full text, mbox, link).


Acknowledgement sent to Gonzalo Pérez de Olaguer Córdoba <gpoc@iies.es>:
Extra info received and forwarded to list. Copy sent to Debian PHP Maintainers <pkg-php-maint@lists.alioth.debian.org>. (Tue, 09 Nov 2010 13:57:06 GMT) (full text, mbox, link).


Message #15 received at 602865@bugs.debian.org (full text, mbox, reply):

From: Gonzalo Pérez de Olaguer Córdoba <gpoc@iies.es>
To: Thomas Goirand <zigo@debian.org>
Cc: 602865@bugs.debian.org, Guillaume Delacour <gui@iroqwa.org>, Debian PHP Maintainers <pkg-php-maint@lists.alioth.debian.org>
Subject: Re: [php-maint] Bug#602865: /usr/share/php/doc both in php-pear and in php-net-smtp packages
Date: Tue, 9 Nov 2010 14:55:00 +0100
[Message part 1 (text/plain, inline)]
Hola Thomas Goirand <zigo@debian.org>
el Tue, 09 Nov 2010 19:10:45 +0800 escribiste:

> What I don't understand, is that I do have php-pear and php-net-smtp on
> my system, and it isn't creating any conflict at all. php-net-smtp on
> Lenny doesn't even carry a folder in /usr/share/php/doc. I've tried to
> apt-get --reinstall install both php-pear and php-net-smtp, and it
> worked well. That leads me to believe that the issue is when upgrading
> from php-pear AND php-net-smtp in Lenny (but that's only a wild guess)
> to Squeeze.

I had installed php-pear 5.2.6.dfsg.1-1+lenny9 and php-net-smtp 1.3.1-1.
These are the current versions in lenny.

Then I upgrade lenny to squeeze, and apt-get wants to upgrade php-net-smtp
to version 1.4.2-1. I don't know why apt-get doesn't upgrade php-pear too,
this would avoid the problem.

And during the upgrade I got:

Preparando para reemplazar php-net-smtp 1.3.1-1 (usando .../php-net-smtp_1.4.2-1_all.deb) ...
Desempaquetando el reemplazo de php-net-smtp ...
dpkg: error al procesar /var/cache/apt/archives/php-net-smtp_1.4.2-1_all.deb (--unpack):
 intentando sobreescribir `/usr/share/php/doc', que está también en el paquete php-pear

> 
> Can you explain a bit more how you had the issue? I'd be happy to fix
> it, but currently, I couldn't reproduce it.

I've been making some tests and it is a little messy all this.

I have reproduced it this way:

- I start with a newly installed squeeze inside QEMU
- I install php5-common and php5-cli, without recommends, from squeeze.
  This is to avoid dependency problems later.
- I install with dpkg php-pear version 5.2.6.dfsg1-1lenny9 (the one from lenny)
- I install with dpkg php-net-smtp 1.3.1-1 (fom lenny). Tell dpkg to ignore the
  dependency on php-net-socket.

Now you have the system more or less as I had it before the upgrade.

Now try to upgrade ONLY php-net-smtp:

# aptitude install php-net-smtp

and you get the error.

If you upgrade php-pear before (or at the same time as) php-net-smtp you
won't get the error. Don't know why.

Cheers,
Gonzalo.

-- 
Gonzalo Pérez de Olaguer Córdoba <gpoc@iies.es> --- www.gpoc.es
PGP key 2861C704 --- F206 5671 6789 425D 111C  1302 214F 1934 2861 C704
[signature.asc (application/pgp-signature, attachment)]

Information forwarded to debian-bugs-dist@lists.debian.org, Debian PHP Maintainers <pkg-php-maint@lists.alioth.debian.org>:
Bug#602865; Package php-pear. (Tue, 09 Nov 2010 17:45:10 GMT) (full text, mbox, link).


Acknowledgement sent to Thomas Goirand <zigo@debian.org>:
Extra info received and forwarded to list. Copy sent to Debian PHP Maintainers <pkg-php-maint@lists.alioth.debian.org>. (Tue, 09 Nov 2010 17:45:10 GMT) (full text, mbox, link).


Message #20 received at 602865@bugs.debian.org (full text, mbox, reply):

From: Thomas Goirand <zigo@debian.org>
To: Gonzalo Pérez de Olaguer Córdoba <gpoc@iies.es>
Cc: 602865@bugs.debian.org, Guillaume Delacour <gui@iroqwa.org>, Debian PHP Maintainers <pkg-php-maint@lists.alioth.debian.org>
Subject: Re: [php-maint] Bug#602865: /usr/share/php/doc both in php-pear and in php-net-smtp packages
Date: Wed, 10 Nov 2010 01:44:40 +0800
On 11/09/2010 09:55 PM, Gonzalo Pérez de Olaguer Córdoba wrote:
> I had installed php-pear 5.2.6.dfsg.1-1+lenny9 and php-net-smtp 1.3.1-1.
> These are the current versions in lenny.
> 
> Then I upgrade lenny to squeeze, and apt-get wants to upgrade php-net-smtp
> to version 1.4.2-1. I don't know why apt-get doesn't upgrade php-pear too,
> this would avoid the problem.
> 
> And during the upgrade I got:
> 
> Preparando para reemplazar php-net-smtp 1.3.1-1 (usando .../php-net-smtp_1.4.2-1_all.deb) ...
> Desempaquetando el reemplazo de php-net-smtp ...
> dpkg: error al procesar /var/cache/apt/archives/php-net-smtp_1.4.2-1_all.deb (--unpack):
>  intentando sobreescribir `/usr/share/php/doc', que está también en el paquete php-pear

I believe that it tried to upgrade php-pear later (there's no guarantee
on the order that apt will choose when upgrading). Maybe adding a
Depends (or maybe a Pre-Depends) on php-pear will fix it. I'll ask on
IRC right now. I'm also re-tagging the bug, as it deserves a RC and a
retitled.

Thomas




Changed Bug title to 'upgrading from Lenny breaks php-pear setup' from '/usr/share/php/doc both in php-pear and in php-net-smtp packages' Request was from Thomas Goirand <zigo@debian.org> to control@bugs.debian.org. (Tue, 09 Nov 2010 18:03:09 GMT) (full text, mbox, link).


Severity set to 'grave' from 'important' Request was from Thomas Goirand <zigo@debian.org> to control@bugs.debian.org. (Tue, 09 Nov 2010 18:03:10 GMT) (full text, mbox, link).


Added indication that 602865 affects php-pear Request was from Thomas Goirand <zigo@debian.org> to control@bugs.debian.org. (Tue, 09 Nov 2010 18:03:10 GMT) (full text, mbox, link).


Added tag(s) help. Request was from Thomas Goirand <zigo@debian.org> to control@bugs.debian.org. (Tue, 09 Nov 2010 18:03:11 GMT) (full text, mbox, link).


Added tag(s) squeeze. Request was from Thomas Goirand <zigo@debian.org> to control@bugs.debian.org. (Tue, 09 Nov 2010 18:03:12 GMT) (full text, mbox, link).


Removed indication that 602865 affects php-pear Added indication that 602865 affects php-net-smtp Request was from Thomas Goirand <thomas@goirand.fr> to control@bugs.debian.org. (Tue, 09 Nov 2010 18:21:06 GMT) (full text, mbox, link).


Added tag(s) pending. Request was from Thomas Goirand <zigo@alioth.debian.org> to control@bugs.debian.org. (Sun, 14 Nov 2010 08:24:02 GMT) (full text, mbox, link).


Reply sent to Thomas Goirand <zigo@debian.org>:
You have taken responsibility. (Sun, 14 Nov 2010 08:33:07 GMT) (full text, mbox, link).


Notification sent to Gonzalo Pérez de Olaguer Córdoba <gpoc@iies.es> (by way of Gonzalo Pérez de Olaguer Córdoba <gpoc@iies.es>):
Bug acknowledged by developer. (Sun, 14 Nov 2010 08:33:07 GMT) (full text, mbox, link).


Message #39 received at 602865-close@bugs.debian.org (full text, mbox, reply):

From: Thomas Goirand <zigo@debian.org>
To: 602865-close@bugs.debian.org
Subject: Bug#602865: fixed in php-net-smtp 1.4.2-2
Date: Sun, 14 Nov 2010 08:32:06 +0000
Source: php-net-smtp
Source-Version: 1.4.2-2

We believe that the bug you reported is fixed in the latest version of
php-net-smtp, which is due to be installed in the Debian FTP archive:

php-net-smtp_1.4.2-2.debian.tar.gz
  to main/p/php-net-smtp/php-net-smtp_1.4.2-2.debian.tar.gz
php-net-smtp_1.4.2-2.dsc
  to main/p/php-net-smtp/php-net-smtp_1.4.2-2.dsc
php-net-smtp_1.4.2-2_all.deb
  to main/p/php-net-smtp/php-net-smtp_1.4.2-2_all.deb



A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 602865@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Thomas Goirand <zigo@debian.org> (supplier of updated php-net-smtp package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@debian.org)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: RIPEMD160

Format: 1.8
Date: Sun, 14 Nov 2010 16:16:34 +0800
Source: php-net-smtp
Binary: php-net-smtp
Architecture: source all
Version: 1.4.2-2
Distribution: unstable
Urgency: low
Maintainer: Debian PHP Maintainers <pkg-php-maint@lists.alioth.debian.org>
Changed-By: Thomas Goirand <zigo@debian.org>
Description: 
 php-net-smtp - PHP PEAR module implementing SMTP protocol
Closes: 602865
Changes: 
 php-net-smtp (1.4.2-2) unstable; urgency=low
 .
   * Added a Conflicts: php-pear (<< 5.3), and now depends on php-pear (>= 5.3)
     because otherwise upgrading path from Lenny is borken (Closes: #602865).
   * Added myself as an uploader.
Checksums-Sha1: 
 0117ec0032cd429f9277b8c5b81718de167d8ab9 1355 php-net-smtp_1.4.2-2.dsc
 14da74813357c3143565beb5e911d5c443dffe97 4614 php-net-smtp_1.4.2-2.debian.tar.gz
 f9b78d839a2fd7a904dab8405f153b53b0d8b439 21530 php-net-smtp_1.4.2-2_all.deb
Checksums-Sha256: 
 12875f4b5cd8ab9c2f5d6f9d8678873d5e388008fe827c4ed5b912fb645c1914 1355 php-net-smtp_1.4.2-2.dsc
 21ac78a039d115de6af081a13d8876ea43c063fd8366be41808ab6ea6c3594d9 4614 php-net-smtp_1.4.2-2.debian.tar.gz
 37a1877669af80d096485b6f4e88f3d22e88eacfb00da72349dd146163cd917e 21530 php-net-smtp_1.4.2-2_all.deb
Files: 
 763572870b8848fe9c2d442a7dde8c7f 1355 php optional php-net-smtp_1.4.2-2.dsc
 c83064e6ea8ee4e1dc4320c59f9a1eea 4614 php optional php-net-smtp_1.4.2-2.debian.tar.gz
 8ffbb92efdb854efb54471ef83e006d6 21530 php optional php-net-smtp_1.4.2-2_all.deb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)

iEYEAREDAAYFAkzfnHwACgkQl4M9yZjvmklA2gCgsGS8G1jOG8dwcwA2SunYPt3R
RmkAoMbGeVzXpqfGl6akmRH/HSV0tOTX
=uXQb
-----END PGP SIGNATURE-----





Bug No longer marked as fixed in versions php-net-smtp/1.4.2-2 and reopened. Request was from Debbugs Internal Request <owner@bugs.debian.org> to internal_control@bugs.debian.org. (Wed, 17 Nov 2010 08:00:03 GMT) (full text, mbox, link).


Bug Marked as fixed in versions 1.4.2-2. Request was from Thomas Goirand <thomas@goirand.fr> to control@bugs.debian.org. (Wed, 17 Nov 2010 08:00:03 GMT) (full text, mbox, link).


Bug Marked as found in versions 1.4.2-1. Request was from Thomas Goirand <thomas@goirand.fr> to control@bugs.debian.org. (Wed, 17 Nov 2010 08:00:04 GMT) (full text, mbox, link).


Bug Marked as fixed in versions php5/5.3.1-4. Request was from Ondřej Surý <ondrej@sury.org> to control@bugs.debian.org. (Tue, 11 Jan 2011 10:12:03 GMT) (full text, mbox, link).


Removed tag(s) squeeze. Request was from Kurt Roeckx <kurt@roeckx.be> to control@bugs.debian.org. (Wed, 16 Feb 2011 19:51:18 GMT) (full text, mbox, link).


Bug No longer marked as found in versions php5/5.2.6.dfsg.1-1+lenny9. Request was from Raphael Geissert <geissert@debian.org> to control@bugs.debian.org. (Thu, 17 Mar 2011 04:15:05 GMT) (full text, mbox, link).


Bug closed, send any further explanations to Gonzalo Pérez de Olaguer Córdoba <gpoc@iies.es> (by way of Gonzalo Pérez de Olaguer Córdoba <gpoc@iies.es>) Request was from Ondřej Surý <ondrej@sury.org> to control@bugs.debian.org. (Fri, 18 Mar 2011 09:12:05 GMT) (full text, mbox, link).


Bug archived. Request was from Debbugs Internal Request <owner@bugs.debian.org> to internal_control@bugs.debian.org. (Sat, 16 Apr 2011 07:34:39 GMT) (full text, mbox, link).


Send a report that this bug log contains spam.


Debian bug tracking system administrator <owner@bugs.debian.org>. Last modified: Sun Jul 2 00:42:57 2023; Machine Name: bembo

Debian Bug tracking system

Debbugs is free software and licensed under the terms of the GNU Public License version 2. The current version can be obtained from https://bugs.debian.org/debbugs-source/.

Copyright © 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson, 2005-2017 Don Armstrong, and many other contributors.