[php-maint] Bug#321283: marked as done (php5: SAPIs packages should provide zendmoduleapi-NN than phpapi-NN)

Debian Bug Tracking System owner at bugs.debian.org
Fri Aug 5 13:18:13 UTC 2005


Your message dated Fri, 05 Aug 2005 23:11:39 +1000
with message-id <42F3658B.3000006 at 0c3.net>
and subject line Bug#321283: [php-maint] Bug#321283: php5: SAPIs packages should provide	zendmoduleapi-NN than phpapi-NN
has caused the attached Bug report to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what I am
talking about this indicates a serious mail system misconfiguration
somewhere.  Please contact me immediately.)

Debian bug tracking system administrator
(administrator, Debian Bugs database)

--------------------------------------
Received: (at submit) by bugs.debian.org; 4 Aug 2005 16:46:38 +0000
>From dexter at debian.org Thu Aug 04 09:46:38 2005
Return-path: <dexter at debian.org>
Received: from master.debian.org [146.82.138.7] 
	by spohr.debian.org with esmtp (Exim 3.36 1 (Debian))
	id 1E0ire-0001Ax-00; Thu, 04 Aug 2005 09:46:38 -0700
Received: from granat.internetia.pl (ginger.netia.net.pl) [195.114.173.177] 
	by master.debian.org with esmtp (Exim 3.35 1 (Debian))
	id 1E0ird-0006ZC-00; Thu, 04 Aug 2005 11:46:37 -0500
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
From: Piotr Roszatycki <dexter at debian.org>
To: Debian Bug Tracking System <submit at bugs.debian.org>
Subject: php5: SAPIs packages should provide zendmoduleapi-NN than phpapi-NN
X-Mailer: reportbug 3.15
Date: Thu, 04 Aug 2005 18:46:34 +0200
Message-Id: <E1E0ird-0006ZC-00 at master.debian.org>
Delivered-To: submit at bugs.debian.org
X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2005_01_02 
	(1.212-2003-09-23-exp) on spohr.debian.org
X-Spam-Level: 
X-Spam-Status: No, hits=-6.0 required=4.0 tests=BAYES_00,HAS_PACKAGE,
	OUR_MTA_MSGID autolearn=no version=2.60-bugs.debian.org_2005_01_02

Package: php5
Version: 5.0.4-3
Severity: minor

I think the php5-SAPI packages should provide
phpapi-NN, zendmoduleapi-NN and zendextensionapi-NN
virtual packages.

The zendmoduleapi_version defines API for PHP extension modules, the
zendextensionapi_version defines API for Zend extension modules. 

The zendextensionapi_version is not important for PHP extensions. The
change of this value shouldn't force to recompile PHP extension package.

phpapi_version is used only internally and doesn't matter.

The current alghoritm (pick the greatest number and generate own phpapi
version) is misleading as far as `php -i' and `phpize --version' reports
completly different version. It makes a troubles in future when will be
available some package with ZEND extension and makes diagnostic harder
as far as dl() function reports ZEND_MODULE_API_NO in error message if
this value doesn't compare between PHP and extension.

My proposition:

The PHP extension packages should depends on zendmoduleapi-NN, the ZEND
extension packages should depends on zendextensionapi-NN. Please, do not
mix these values.


-- System Information:
Debian Release: testing/unstable
  APT prefers unstable
  APT policy: (900, 'unstable'), (500, 'oldstable'), (500, 'testing'), (500, 'stable'), (1, 'experimental')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.12-1-686
Locale: LANG=pl_PL, LC_CTYPE=pl_PL (charmap=ISO-8859-2)

Versions of packages php5 depends on:
ii  libapache-mod-php5 5.0.999-5.1.0b3-0.0.1 HTML-embedded scripting language (
ii  libapache2-mod-php 5.0.4-3               server-side, HTML-embedded scripti
ii  php5-cgi           5.0.4-3               server-side, HTML-embedded scripti
ii  php5-common        5.0.4-3               Common files for packages built fr
ii  php5.1-common [php 5.0.999-5.1.0b3-0.0.1 common files for packages built fr

php5 recommends no packages.

-- no debconf information

---------------------------------------
Received: (at 321283-done) by bugs.debian.org; 5 Aug 2005 13:12:18 +0000
>From adconrad at 0c3.net Fri Aug 05 06:12:18 2005
Return-path: <adconrad at 0c3.net>
Received: from loki.0c3.net [69.0.240.48] 
	by spohr.debian.org with esmtp (Exim 3.36 1 (Debian))
	id 1E11zm-0006VJ-00; Fri, 05 Aug 2005 06:12:18 -0700
Received: from [203.49.196.168] (helo=[10.0.0.4])
	by loki.0c3.net with esmtp (Exim 4.34)
	id 1E11zH-0000L5-BT; Fri, 05 Aug 2005 07:11:47 -0600
Message-ID: <42F3658B.3000006 at 0c3.net>
Date: Fri, 05 Aug 2005 23:11:39 +1000
From: Adam Conrad <adconrad at 0c3.net>
User-Agent: Mozilla Thunderbird 1.0.6 (X11/20050801)
X-Accept-Language: en-us, en
MIME-Version: 1.0
To: Piotr Roszatycki <Piotr_Roszatycki at netia.net.pl>, 
 321283-done at bugs.debian.org
Subject: Re: Bug#321283: [php-maint] Bug#321283: php5: SAPIs packages should
 provide	zendmoduleapi-NN than phpapi-NN
References: <E1E0ird-0006ZC-00 at master.debian.org> <42F2BC5D.9030303 at 0c3.net> <200508050943.39092.Piotr_Roszatycki at netia.net.pl>
In-Reply-To: <200508050943.39092.Piotr_Roszatycki at netia.net.pl>
X-Enigmail-Version: 0.92.0.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Delivered-To: 321283-done at bugs.debian.org
X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2005_01_02 
	(1.212-2003-09-23-exp) on spohr.debian.org
X-Spam-Level: 
X-Spam-Status: No, hits=-6.0 required=4.0 tests=BAYES_00,HAS_BUG_NUMBER 
	autolearn=no version=2.60-bugs.debian.org_2005_01_02

Piotr Roszatycki wrote:
> 
> So, I see the php5-pdo package have to depend on phpapi-NN _and_ 
> zendmoduleapi-NN. I belive that Zend extension package should depend on 
> phpapi-NN and zendextensionapi-NN. Probably one value is not enough and the 
> packages should check two ABIs versions.

One value is enough, when the one we're using is always the most
recently changed of the bunch, hence my decision to do things the way I did.

> I think we should rely on real values that are shown by PHP itself (phpinfo 
> and phpize), not the internally computed by Debian package.

What we use is a "real value", it just happens to be the "most recently
revved value of all the 'real values' from PHP".  As we've both noted,
some of these values seem to be used in a haphazard and interchangeable
way, so the only reasonably safe way for us to do package dependencies
and extension directories is to do it this way.

This isn't something that's really exposed to end users in any way,
confusing or otherwise, so I don't see the issue.  It's a minor detail
for packaging convenience, nothing more.  If people packaging php[45]
modules for Debian can't figure this one out, I daresay they should find
a different hobby that's less taxing on the brain.

... Adam



More information about the pkg-php-maint mailing list