Debian Bug report logs - #774559
php5: dpkg trigger cycle between libapache2-mod-php5{, filter} and php5-common

version graph

Package: src:php5; Maintainer for src:php5 is (unknown);

Reported by: Niels Thykier <niels@thykier.net>

Date: Sun, 4 Jan 2015 12:21:02 UTC

Severity: serious

Found in versions php5/5.2.11.dfsg.1-1, php5/5.6.4+dfsg-1, php5/5.4.36-0+deb7u1

Fixed in version php5/5.6.4+dfsg-3

Done: Ondřej Surý <ondrej@debian.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-dpkg@lists.debian.org, Debian PHP Maintainers <pkg-php-maint@lists.alioth.debian.org>:
Bug#774559; Package src:php5. (Sun, 04 Jan 2015 12:21:07 GMT) (full text, mbox, link).


Acknowledgement sent to Niels Thykier <niels@thykier.net>:
New Bug report received and forwarded. Copy sent to debian-dpkg@lists.debian.org, Debian PHP Maintainers <pkg-php-maint@lists.alioth.debian.org>. (Sun, 04 Jan 2015 12:21:07 GMT) (full text, mbox, link).


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

From: Niels Thykier <niels@thykier.net>
To: Debian Bug Tracking System <submit@bugs.debian.org>
Subject: php5: dpkg trigger cycle between libapache2-mod-php5{, filter} and php5-common
Date: Sun, 04 Jan 2015 13:17:46 +0100
Package: src:php5
Version: 5.6.4+dfsg-1
Severity: serious

Hi,

The libapache2-mod-php5 and libapache2-mod-php5filter packages have a
trigger cycle via the php5-common package.  This was detected by a
script on jenkins.debian.net[1].

Steps to reproduce the cycle (in a Jessie/sid chroot):

"""
apt-get install libapache2-mod-php5 php5-common
dpkg --unpack /var/cache/apt/archives/php5-common_${PHP5-COMMON_VERSION}_*.deb
dpkg --configure --pending
"""
(Similar for libapache2-mod-php5filter)

This simulates an upgrade scenario, where php5-common might be
temporarily deconfigured while libapache2-mod-php5 (or
libapache2-mod-php5filter) remains configured.  If this happens, dpkg
is unable to recover as the cycle requires php5-common to be
configured for it to run the trigger because the libapache2-mod-php5
(and libapache2-mod-php5filter) depends on php5-common.

Known solutions:

 * Use no-await triggers.  *CAVEAT*: not always applicable.  Known suitable
   use cases includes "cache" handling, where the cache is allowed to be
   out of date tempoarily.
 * Reduce the dependency to Recommends.  *CAVEAT*: Rarely applicable.
 * Rewrite the solution to avoid triggers entirely. *CAVEAT*: May be
   non-trivial and likely to involve updates to at least libapache2-mod-php5
   and libapache2-mod-php5filter.

~Niels

[1] https://jenkins.debian.net/view/Warnings/job/dpkg_sid_find_trigger_cycles/24/console



Information forwarded to debian-bugs-dist@lists.debian.org, Debian PHP Maintainers <pkg-php-maint@lists.alioth.debian.org>:
Bug#774559; Package src:php5. (Sun, 04 Jan 2015 12:27:05 GMT) (full text, mbox, link).


Acknowledgement sent to Niels Thykier <niels@thykier.net>:
Extra info received and forwarded to list. Copy sent to Debian PHP Maintainers <pkg-php-maint@lists.alioth.debian.org>. (Sun, 04 Jan 2015 12:27:05 GMT) (full text, mbox, link).


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

From: Niels Thykier <niels@thykier.net>
To: 774559@bugs.debian.org
Subject: Re: php5: dpkg trigger cycle between libapache2-mod-php5{, filter} and php5-common
Date: Sun, 04 Jan 2015 13:22:55 +0100
On 2015-01-04 13:17, Niels Thykier wrote:
> Package: src:php5
> Version: 5.6.4+dfsg-1
> Severity: serious
> 
> Hi,
> 
> The libapache2-mod-php5 and libapache2-mod-php5filter packages have a
> trigger cycle via the php5-common package.  This was detected by a
> script on jenkins.debian.net[1].
> 
> [...]

Correction, make that:

"The libapache2-mod-php5, libapache2-mod-php5filter *and php5-fpm*
packages have a trigger cycle via the php5-common package."





Information forwarded to debian-bugs-dist@lists.debian.org, Debian PHP Maintainers <pkg-php-maint@lists.alioth.debian.org>:
Bug#774559; Package src:php5. (Mon, 05 Jan 2015 15:39:10 GMT) (full text, mbox, link).


Acknowledgement sent to Ondřej Surý <ondrej@sury.org>:
Extra info received and forwarded to list. Copy sent to Debian PHP Maintainers <pkg-php-maint@lists.alioth.debian.org>. (Mon, 05 Jan 2015 15:39:10 GMT) (full text, mbox, link).


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

From: Ondřej Surý <ondrej@sury.org>
To: Niels Thykier <niels@thykier.net>, 774559@bugs.debian.org
Subject: Re: [php-maint] Bug#774559: php5: dpkg trigger cycle between libapache2-mod-php5{, filter} and php5-common
Date: Mon, 05 Jan 2015 16:35:12 +0100
Hi Niels,

using noawait fixes the issue:

root@lettie:/tmp# dpkg --unpack php5-common_5.6.4+dfsg-3_amd64.deb       
(Reading database ... 15181 files and directories currently installed.)
Preparing to unpack php5-common_5.6.4+dfsg-3_amd64.deb ...
Unpacking php5-common (5.6.4+dfsg-3) over (5.6.4+dfsg-3) ...
root@lettie:/tmp# dpkg --configure --pending
Setting up php5-common (5.6.4+dfsg-3) ...
Processing triggers for libapache2-mod-php5 (5.6.4+dfsg-3) ...

Thanks for catching that.

Cheers,
Ondrej

On Sun, Jan 4, 2015, at 13:17, Niels Thykier wrote:
> Package: src:php5
> Version: 5.6.4+dfsg-1
> Severity: serious
> 
> Hi,
> 
> The libapache2-mod-php5 and libapache2-mod-php5filter packages have a
> trigger cycle via the php5-common package.  This was detected by a
> script on jenkins.debian.net[1].
> 
> Steps to reproduce the cycle (in a Jessie/sid chroot):
> 
> """
> apt-get install libapache2-mod-php5 php5-common
> dpkg --unpack
> /var/cache/apt/archives/php5-common_${PHP5-COMMON_VERSION}_*.deb
> dpkg --configure --pending
> """
> (Similar for libapache2-mod-php5filter)
> 
> This simulates an upgrade scenario, where php5-common might be
> temporarily deconfigured while libapache2-mod-php5 (or
> libapache2-mod-php5filter) remains configured.  If this happens, dpkg
> is unable to recover as the cycle requires php5-common to be
> configured for it to run the trigger because the libapache2-mod-php5
> (and libapache2-mod-php5filter) depends on php5-common.
> 
> Known solutions:
> 
>  * Use no-await triggers.  *CAVEAT*: not always applicable.  Known
>  suitable
>    use cases includes "cache" handling, where the cache is allowed to be
>    out of date tempoarily.
>  * Reduce the dependency to Recommends.  *CAVEAT*: Rarely applicable.
>  * Rewrite the solution to avoid triggers entirely. *CAVEAT*: May be
>    non-trivial and likely to involve updates to at least
>    libapache2-mod-php5
>    and libapache2-mod-php5filter.
> 
> ~Niels
> 
> [1]
> https://jenkins.debian.net/view/Warnings/job/dpkg_sid_find_trigger_cycles/24/console
> 
> _______________________________________________
> pkg-php-maint mailing list
> pkg-php-maint@lists.alioth.debian.org
> http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-php-maint


-- 
Ondřej Surý <ondrej@sury.org>
Knot DNS (https://www.knot-dns.cz/) – a high-performance DNS server



Marked as found in versions php5/5.4.36-0+deb7u1. Request was from Ondřej Surý <ondrej@debian.org> to control@bugs.debian.org. (Mon, 05 Jan 2015 15:51:04 GMT) (full text, mbox, link).


Marked as found in versions php5/5.2.11.dfsg.1-1. Request was from Ondřej Surý <ondrej@debian.org> to control@bugs.debian.org. (Mon, 05 Jan 2015 15:51:06 GMT) (full text, mbox, link).


Reply sent to Ondřej Surý <ondrej@debian.org>:
You have taken responsibility. (Mon, 05 Jan 2015 15:51:11 GMT) (full text, mbox, link).


Notification sent to Niels Thykier <niels@thykier.net>:
Bug acknowledged by developer. (Mon, 05 Jan 2015 15:51:11 GMT) (full text, mbox, link).


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

From: Ondřej Surý <ondrej@debian.org>
To: 774559-close@bugs.debian.org
Subject: Bug#774559: fixed in php5 5.6.4+dfsg-3
Date: Mon, 05 Jan 2015 15:48:57 +0000
Source: php5
Source-Version: 5.6.4+dfsg-3

We believe that the bug you reported is fixed in the latest version of
php5, which is due to be installed in the Debian FTP archive.

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 774559@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Ondřej Surý <ondrej@debian.org> (supplier of updated php5 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@ftp-master.debian.org)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Format: 1.8
Date: Mon, 05 Jan 2015 14:27:19 +0100
Source: php5
Binary: php5 php5-common libapache2-mod-php5 libapache2-mod-php5filter php5-cgi php5-cli php5-phpdbg php5-fpm libphp5-embed php5-dev php5-dbg php-pear php5-curl php5-enchant php5-gd php5-gmp php5-imap php5-interbase php5-intl php5-ldap php5-mcrypt php5-readline php5-mysql php5-mysqlnd php5-odbc php5-pgsql php5-pspell php5-recode php5-snmp php5-sqlite php5-sybase php5-tidy php5-xmlrpc php5-xsl
Architecture: source all
Version: 5.6.4+dfsg-3
Distribution: unstable
Urgency: medium
Maintainer: Debian PHP Maintainers <pkg-php-maint@lists.alioth.debian.org>
Changed-By: Ondřej Surý <ondrej@debian.org>
Description:
 libapache2-mod-php5 - server-side, HTML-embedded scripting language (Apache 2 module)
 libapache2-mod-php5filter - server-side, HTML-embedded scripting language (apache 2 filter mo
 libphp5-embed - HTML-embedded scripting language (Embedded SAPI library)
 php-pear   - PEAR - PHP Extension and Application Repository
 php5       - server-side, HTML-embedded scripting language (metapackage)
 php5-cgi   - server-side, HTML-embedded scripting language (CGI binary)
 php5-cli   - command-line interpreter for the php5 scripting language
 php5-common - Common files for packages built from the php5 source
 php5-curl  - CURL module for php5
 php5-dbg   - Debug symbols for PHP5
 php5-dev   - Files for PHP5 module development
 php5-enchant - Enchant module for php5
 php5-fpm   - server-side, HTML-embedded scripting language (FPM-CGI binary)
 php5-gd    - GD module for php5
 php5-gmp   - GMP module for php5
 php5-imap  - IMAP module for php5
 php5-interbase - interbase/firebird module for php5
 php5-intl  - internationalisation module for php5
 php5-ldap  - LDAP module for php5
 php5-mcrypt - MCrypt module for php5
 php5-mysql - MySQL module for php5
 php5-mysqlnd - MySQL module for php5 (Native Driver)
 php5-odbc  - ODBC module for php5
 php5-pgsql - PostgreSQL module for php5
 php5-phpdbg - server-side, HTML-embedded scripting language (PHPDBG binary)
 php5-pspell - pspell module for php5
 php5-readline - Readline module for php5
 php5-recode - recode module for php5
 php5-snmp  - SNMP module for php5
 php5-sqlite - SQLite module for php5
 php5-sybase - Sybase / MS SQL Server module for php5
 php5-tidy  - tidy module for php5
 php5-xmlrpc - XML-RPC module for php5
 php5-xsl   - XSL module for php5
Closes: 774559
Changes:
 php5 (5.6.4+dfsg-3) unstable; urgency=medium
 .
   * Use noawait variants for deb-triggers to break the dependency loop
     (Closes: #774559)
Checksums-Sha1:
 ee4165026c825b1f71ae2bee692c8fe9cf300a18 5163 php5_5.6.4+dfsg-3.dsc
 d343de1ac2942d9f0ed7caea368a8f531c6e0d27 119012 php5_5.6.4+dfsg-3.debian.tar.xz
 1ec43a4c65169f106591a0669bbeb11c87007f4b 1302 php5_5.6.4+dfsg-3_all.deb
 1fae1d782d1b02bd14ccf7940683caf1ae2dfd3d 268704 php-pear_5.6.4+dfsg-3_all.deb
Checksums-Sha256:
 91e498a241b813a99641efc41b8d4b2a8403f4036236e2dd0acf45fe840f6e04 5163 php5_5.6.4+dfsg-3.dsc
 1fd6c5dbd76b5d7fc113950e29c82d309ab5de9e395ec48b2a83401485d9bbf1 119012 php5_5.6.4+dfsg-3.debian.tar.xz
 4bedb18c446b0b82c76b37032f068c82138260cff3343b1a54895b49402df121 1302 php5_5.6.4+dfsg-3_all.deb
 ab7b14018f5ec56a5b88d00067a798b6d513ea80b64b7bd8fd9043e1b742e0d0 268704 php-pear_5.6.4+dfsg-3_all.deb
Files:
 96eae712e29e309cbcadd1ba38dc3e55 5163 php optional php5_5.6.4+dfsg-3.dsc
 549d7c7b6f16b43f67536919927af814 119012 php optional php5_5.6.4+dfsg-3.debian.tar.xz
 56a88010c3f058cde17dae72b9d7e24d 1302 php optional php5_5.6.4+dfsg-3_all.deb
 bb1ab844b4752a776c5dc0ec4de21cfc 268704 php optional php-pear_5.6.4+dfsg-3_all.deb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1

iQJ8BAEBCgBmBQJUqqqMXxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w
ZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXQzMEI5MzNEODBGQ0UzRDk4MUEyRDM4RkIw
Qzk5QjcwRUY0RkNCQjA3AAoJEAyZtw70/LsHP08P/1i4qYHHn7lMC9H6WG9kEydx
WXoUb3DVFfaCoLqC2H15Q/y92FurIkyGlS88xW0u00OaEMEuSXq0AExtqQZIfXdC
p0lN1M9R3ia//4U3YHxeO452mhfDnj6xPtZx0JGL0e66xTD+uYUlDBYj/QyGucEA
43Z+2Go5yNUCF++HLx79UpULJbMxFKcjzZjxeM5NiwDI9wRVh3GojsJ+d175Q6G/
PQmXlhh1DitUuYbZKchzuhPxxQgPbqsAIrkWi6oWxApU3efnECX626qEtlHHDT87
UjgigwggEnS72GB25tQPDzSDMhZNBh8iZOmFD+eM5OdUiiLGnAIP9S+yARt4hKBl
LG7qDauqwQRM0lsRoR7CdoXbGPlPibkcmQYtG2aXrggDIWXMPnlQldEw1UZfHEEX
B6dSgnc2WgdQ1zjUHmF5iQBah9Sh/g46ZZyWKI1/J3to4tFg71vlP3nEOvGCgpBp
xxny8sejADJkKFdv4OBoL/McZgANazG2ylbSwKBJYU9iiWgCVbpnMg7WCvOYPFqt
5UdMG/d7B6sFYxJZTX7/XxqumiGuMwpydhxHIb3KABgIjryu+9CRa/bunJOsQsKc
xmLw5ZvpwOLDeoibLF6DkXUSR7KgfACJuP17GNtAWyHFAZC8sjgCAfizzi+OJzFf
2MHvczQR3cm8NH+rujN3
=Up8H
-----END PGP SIGNATURE-----




Bug archived. Request was from Debbugs Internal Request <owner@bugs.debian.org> to internal_control@bugs.debian.org. (Sun, 24 May 2015 07:55:09 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 01:32:35 2023; Machine Name: buxtehude

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.