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

version graph

Package: libssh2-php; Maintainer for libssh2-php is (unknown);

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

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

Severity: serious

Tags: jessie, sid

Found in version php-ssh2/0.11.3-0.1

Fixed in version php-ssh2/0.12-1

Done: Lior Kaplan <kaplan@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, Martin Meredith <mez@debian.org>:
Bug#667782; Package libssh2-php. (Fri, 06 Apr 2012 15:39:56 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 Martin Meredith <mez@debian.org>. (Fri, 06 Apr 2012 15:39:56 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:03 +0200
Package: libssh2-php
Version: 0.11.3-0.1+b2
Severity: normal
User: pkg-php-maint@lists.alioth.debian.org
Usertags: php54

Dear maintainer,

package libssh2-php 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, Martin Meredith <mez@debian.org>:
Bug#667782; Package libssh2-php. (Sat, 03 Aug 2013 21:48:04 GMT) (full text, mbox, link).


Acknowledgement sent to Andreas Beckmann <anbe@debian.org>:
Extra info received and forwarded to list. Copy sent to Martin Meredith <mez@debian.org>. (Sat, 03 Aug 2013 21:48:04 GMT) (full text, mbox, link).


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

From: Andreas Beckmann <anbe@debian.org>
To: Debian Bug Tracking System <667782@bugs.debian.org>
Subject: libssh2-php now fails to install: cp: cannot create regular file `/etc/php5/conf.d/ssh2.ini': No such file or directory
Date: Sat, 03 Aug 2013 23:45:04 +0200
[Message part 1 (text/plain, inline)]
Followup-For: Bug #667782

Hi,

during a test with piuparts I noticed your package failed to install. As
per definition of the release team this makes the package too buggy for
a release, thus the severity.

>From the attached log (scroll to the bottom...):

  Selecting previously unselected package libssh2-php.
  (Reading database ... 8273 files and directories currently installed.)
  Unpacking libssh2-php (from .../libssh2-php_0.11.3-0.1+b3_amd64.deb) ...
  Setting up libssh2-php (0.11.3-0.1+b3) ...
  
  Creating config file /etc/php5/conf.d/ssh2.ini with new version
  cp: cannot create regular file `/etc/php5/conf.d/ssh2.ini': No such file or directory
  dpkg: error processing libssh2-php (--configure):
   subprocess installed post-installation script returned error exit status 1
  Errors were encountered while processing:
   libssh2-php


cheers,

Andreas
[libssh2-php_0.11.3-0.1+b3.log.gz (application/x-gzip, attachment)]

Severity set to 'serious' from 'normal' Request was from Andreas Beckmann <anbe@debian.org> to control@bugs.debian.org. (Sat, 03 Aug 2013 21:48:11 GMT) (full text, mbox, link).


Added tag(s) sid and jessie. Request was from Andreas Beckmann <anbe@debian.org> to control@bugs.debian.org. (Sat, 03 Aug 2013 21:48:12 GMT) (full text, mbox, link).


Reply sent to Lior Kaplan <kaplan@debian.org>:
You have taken responsibility. (Sun, 11 Aug 2013 16:06:09 GMT) (full text, mbox, link).


Notification sent to Debian PHP maintainers <pkg-php-maint@lists.alioth.debian.org>:
Bug acknowledged by developer. (Sun, 11 Aug 2013 16:06:09 GMT) (full text, mbox, link).


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

From: Lior Kaplan <kaplan@debian.org>
To: 667782-close@bugs.debian.org
Subject: Bug#667782: fixed in php-ssh2 0.12-1
Date: Sun, 11 Aug 2013 16:04:18 +0000
Source: php-ssh2
Source-Version: 0.12-1

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

Debian distribution maintenance software
pp.
Lior Kaplan <kaplan@debian.org> (supplier of updated php-ssh2 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: Sun, 11 Aug 2013 11:52:03 +0200
Source: php-ssh2
Binary: libssh2-php
Architecture: source amd64
Version: 0.12-1
Distribution: sid
Urgency: low
Maintainer: Martin Meredith <mez@debian.org>
Changed-By: Lior Kaplan <kaplan@debian.org>
Description: 
 libssh2-php - PHP Bindings for libssh2
Closes: 667782
Changes: 
 php-ssh2 (0.12-1) unstable; urgency=low
 .
   * New upstream release
   * Switch conffile to /etc/php5/mods-available and use php5enmod and
     php5dismod (Closes: #667782)
Checksums-Sha1: 
 2b246b46ded7615bfb2e0d322d4ffa626e662c33 1132 php-ssh2_0.12-1.dsc
 b86a25bdd3f3558bbcaaa6d876309fbbb5ae134d 26223 php-ssh2_0.12.orig.tar.gz
 5a9508497b209833905a94c58bfb7e2a68882844 5445 php-ssh2_0.12-1.debian.tar.gz
 86c3fe826b87b98aa7146e17726f63c4115b258f 24374 libssh2-php_0.12-1_amd64.deb
Checksums-Sha256: 
 a37263c5b32d7c772b5a69ce53ddbf656425fd9e61f6286578390bcdd854b72c 1132 php-ssh2_0.12-1.dsc
 600c82d2393acf3642f19914f06a7afea57ee05cb8c10e8a5510b32188b97f99 26223 php-ssh2_0.12.orig.tar.gz
 6975da359385f11ca1164f7e90131f706cd3b5c136e401888be576cf8c0077ba 5445 php-ssh2_0.12-1.debian.tar.gz
 b21d839b445236852716a8bfa86aeea2ca81c52ddd915377e4e0c53aa2c324dc 24374 libssh2-php_0.12-1_amd64.deb
Files: 
 2d2b580b51a951692c5d813871ef9147 1132 devel extra php-ssh2_0.12-1.dsc
 409b91678a842bb0ff56f2cf018b9160 26223 devel extra php-ssh2_0.12.orig.tar.gz
 e17cb29547c1c1597fa8a7307870db19 5445 devel extra php-ssh2_0.12-1.debian.tar.gz
 9ec2c6e0d6e03d40839e8142cb421725 24374 devel extra libssh2-php_0.12-1_amd64.deb

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

iEYEARECAAYFAlIHsgkACgkQFViURZnoHaDC2ACdHfWAHn0j7eOUANlyW96tip1X
jQwAoLJpOqzsvYg9p0CJBPZy8brANNTw
=nWtG
-----END PGP SIGNATURE-----




Bug archived. Request was from Debbugs Internal Request <owner@bugs.debian.org> to internal_control@bugs.debian.org. (Fri, 27 Sep 2013 07:35:52 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 02:07:17 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.