Debian Bug report logs - #667778
Please make use of new php5enmod and php5dismod commands in your package

version graph

Package: php5-ps; Maintainer for php5-ps is Uwe Steinmann <steinm@debian.org>; Source for php5-ps is src:php-ps.

Reported by: Debian PHP maintainers <pkg-php-maint@lists.alioth.debian.org>

Date: Fri, 6 Apr 2012 15:39:41 UTC

Severity: normal

Found in version php-ps/1.3.6-7

Reply or subscribe to this bug.

Toggle useless messages

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


Report forwarded to debian-bugs-dist@lists.debian.org, Uwe Steinmann <steinm@debian.org>:
Bug#667778; Package php5-ps. (Fri, 06 Apr 2012 15:39:44 GMT) Full text and rfc822 format available.

Acknowledgement sent to Debian PHP maintainers <pkg-php-maint@lists.alioth.debian.org>:
New Bug report received and forwarded. Copy sent to Uwe Steinmann <steinm@debian.org>. (Fri, 06 Apr 2012 15:39:44 GMT) Full text and rfc822 format available.

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

From: Debian PHP maintainers <pkg-php-maint@lists.alioth.debian.org>
To: Debian Bug Tracking System <submit@bugs.debian.org>
Subject: Please make use of new php5enmod and php5dismod commands in your package
Date: Fri, 06 Apr 2012 17:36:02 +0200
Package: php5-ps
Version: 1.3.6-7+b1
Severity: normal
User: pkg-php-maint@lists.alioth.debian.org
Usertags: php54

Dear maintainer,

package php5-ps currently installs it's configuration file directly
to /etc/php5.  php5 (>= 5.4.0~rc6-1) has introduced two new commands:
php5enmod and php5dismod

Your config file must be installed in /etc/php5/mods-available/<name>.ini

php5enmod should be called from your postinst script (when configuring
the package) with each installed ini file as an parameter (f.e. if you
provide more dynamic extensions and want to ensure correct loading order).

The syntax of php5enmod is:

php5enmod [name](/[priority])

[name] is filename without .ini extension from /etc/php5/mods-available/<name>.ini

The optional [priority] argument can be used if your extension require
other extensions to be loaded before.  Default priority is 20.

Example:

    if [ "$1" = "configure" ]; then
      php5enmod mysqlnd
    fi

or (with priority):

    if [ "$1" = "configure" ]; then 
       php5enmod pdo/10
    fi

**

php5dismod should be called from prerm script in remove target.

The syntax of php5dismod is:

php5dismod [name]

Example:

    if [ "$1" = "remove" ]; then
      php5dismod mysqlnd
    fi

**

Using these maintainer scripts will help get rid of the condition
when the package is removed, but not purged, hence triggering error
messages from php from the fact that it cannot load deleted dynamic
extension.

Feel free to contact me, if you have any questions.

Thanks, 
--
Ondřej Surý <ondrej@debian.org>

-- System Information:
Debian Release: 6.0.4
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'stable'), (300, 'unstable'), (200, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.32-5-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash




Send a report that this bug log contains spam.


Debian bug tracking system administrator <owner@bugs.debian.org>. Last modified: Sun Apr 20 01:55:32 2014; Machine Name: buxtehude.debian.org

Debian Bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.