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

version graph

Package: php5-librdf; Maintainer for php5-librdf is (unknown);

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

Date: Fri, 6 Apr 2012 15:40:06 UTC

Severity: normal

Found in version redland-bindings/1.0.14.1-1

Fixed in version redland-bindings/1.0.16.1-2

Done: Dave Beckett <dajobe@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, Dave Beckett <dajobe@debian.org>:
Bug#667786; Package php5-librdf. (Fri, 06 Apr 2012 15:40:09 GMT) (full text, mbox, link).


Acknowledgement sent to Debian PHP maintainers <pkg-php-maint@lists.alioth.debian.org>:
New Bug report received and forwarded. Copy sent to Dave Beckett <dajobe@debian.org>. (Fri, 06 Apr 2012 15:40:09 GMT) (full text, mbox, link).


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

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:04 +0200
Package: php5-librdf
Version: 1.0.14.1-1
Severity: normal
User: pkg-php-maint@lists.alioth.debian.org
Usertags: php54

Dear maintainer,

package php5-librdf 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




Information forwarded to debian-bugs-dist@lists.debian.org, Dave Beckett <dajobe@debian.org>:
Bug#667786; Package php5-librdf. (Wed, 21 Aug 2013 10:33:04 GMT) (full text, mbox, link).


Acknowledgement sent to Olivier Berger <olivier.berger@telecom-sudparis.eu>:
Extra info received and forwarded to list. Copy sent to Dave Beckett <dajobe@debian.org>. (Wed, 21 Aug 2013 10:33:04 GMT) (full text, mbox, link).


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

From: Olivier Berger <olivier.berger@telecom-sudparis.eu>
To: 667786@bugs.debian.org
Subject: Re: Bug#667786: Please make use of new php5enmod and php5dismod commands in your package
Date: Wed, 21 Aug 2013 12:20:02 +0200
Hi.

On Fri, Apr 06, 2012 at 05:36:04PM +0200, Debian PHP maintainers wrote:
> 
> package php5-librdf 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).
> 

AFAIU, the consequence of this is that in wheezy, the lib isn't available for mod-php, once installed until this is changed.

The current workaround is then to :
ln -s /etc/php5/conf.d/redland.ini /etc/php5/apache2/conf.d

Hope this helps.

Best regards,
-- 
Olivier BERGER 
http://www-public.telecom-sudparis.eu/~berger_o/ - OpenPGP-Id: 2048R/5819D7E8
Ingenieur Recherche - Dept INF
Institut Mines-Telecom, Telecom SudParis, Evry (France)




Reply sent to Dave Beckett <dajobe@debian.org>:
You have taken responsibility. (Sat, 08 Mar 2014 05:51:05 GMT) (full text, mbox, link).


Notification sent to Debian PHP maintainers <pkg-php-maint@lists.alioth.debian.org>:
Bug acknowledged by developer. (Sat, 08 Mar 2014 05:51:05 GMT) (full text, mbox, link).


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

From: Dave Beckett <dajobe@debian.org>
To: 667786-close@bugs.debian.org
Subject: Bug#667786: fixed in redland-bindings 1.0.16.1-2
Date: Sat, 08 Mar 2014 05:49:38 +0000
Source: redland-bindings
Source-Version: 1.0.16.1-2

We believe that the bug you reported is fixed in the latest version of
redland-bindings, 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 667786@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Dave Beckett <dajobe@debian.org> (supplier of updated redland-bindings 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: SHA1

Format: 1.8
Date: Fri, 07 Mar 2014 21:34:38 -0800
Source: redland-bindings
Binary: librdf-perl python-librdf librdf-ruby php5-librdf
Architecture: source amd64
Version: 1.0.16.1-2
Distribution: unstable
Urgency: medium
Maintainer: Dave Beckett <dajobe@debian.org>
Changed-By: Dave Beckett <dajobe@debian.org>
Description: 
 librdf-perl - Perl language bindings for the Redland RDF library
 librdf-ruby - Ruby language bindings for the Redland RDF library
 php5-librdf - PHP5 language bindings for the Redland RDF library
 python-librdf - Python language bindings for the Redland RDF library
Closes: 667786 739761
Changes: 
 redland-bindings (1.0.16.1-2) unstable; urgency=medium
 .
   * Acknowlege NMU - thanks Christian.
   * Adjust php5-librdf install to use php5enmod / php5dismod in
     postinst / prerm to link ini file to the correct
     location (Closes: #739761, #667786)
   * debian/rules: fix clean rule for perl
Checksums-Sha1: 
 9b4fba8ff2b81b73c6d6d8af5c25c4667fc3dd3a 1413 redland-bindings_1.0.16.1-2.dsc
 c9a29e6c4df37f0a4d0b4d4b861af0ffce49c7a1 6660 redland-bindings_1.0.16.1-2.debian.tar.xz
 264af9b8af31fde79cc89eda5e341f532931b0b3 125278 librdf-perl_1.0.16.1-2_amd64.deb
 9822f8fd1cb76a23f37cddd03b5a12258731fec5 66662 python-librdf_1.0.16.1-2_amd64.deb
 9417fe83836552a73fe64e252f678486fddf5507 53994 librdf-ruby_1.0.16.1-2_amd64.deb
 a4ae4153cec024948f54086759c66d35cff78de0 43654 php5-librdf_1.0.16.1-2_amd64.deb
Checksums-Sha256: 
 ded004b417eab55448fdbb7803fa253e316cb80eb0ae8b2f8775c5730c52c77a 1413 redland-bindings_1.0.16.1-2.dsc
 7eef4cf90d5a79e17298d9e882aeb1fd92b45bc60e08be070bb3114edfe21f8a 6660 redland-bindings_1.0.16.1-2.debian.tar.xz
 7d9ca125db854c3c33ee4a9e07b5307687d453672384c9cf6dfc1b2f4f88c9d9 125278 librdf-perl_1.0.16.1-2_amd64.deb
 3adfc4f2a025cf4a8c609cd7728c1b23988c2687c6fba917a720642863e30ffc 66662 python-librdf_1.0.16.1-2_amd64.deb
 32ff258a3ffb12f0ff168c775be11330ec83393640f943f4b7ddead773d92fcd 53994 librdf-ruby_1.0.16.1-2_amd64.deb
 5c41024b28e405240305103e2a78a7ad8a28baaed6ccca71d9826bba83509bc0 43654 php5-librdf_1.0.16.1-2_amd64.deb
Files: 
 5d74a2f8b9d58e7f55fb64fc0dba65bf 1413 devel optional redland-bindings_1.0.16.1-2.dsc
 3218daddad4b0d90c1b849a0f92ed4fe 6660 devel optional redland-bindings_1.0.16.1-2.debian.tar.xz
 7a32226c58b0db1bffe9de5f3881c450 125278 perl optional librdf-perl_1.0.16.1-2_amd64.deb
 af4153e1dde644621f883cac88029d64 66662 python optional python-librdf_1.0.16.1-2_amd64.deb
 ebc47be81822bff1a02de2a570922338 53994 ruby optional librdf-ruby_1.0.16.1-2_amd64.deb
 39f034534c090e7621171a001e666f7b 43654 php optional php5-librdf_1.0.16.1-2_amd64.deb

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

iD8DBQFTGqxqQ+ySUE9xlVoRApFEAJ9QyAe9ToUAdfwFHTc9k08AbcouzACgmRgg
5ZBQIQxlSQ0+JRzrkpG8Xg8=
=nBI+
-----END PGP SIGNATURE-----




Bug archived. Request was from Debbugs Internal Request <owner@bugs.debian.org> to internal_control@bugs.debian.org. (Thu, 10 Apr 2014 07:31:20 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:26:33 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.