[needs-packaging] php-mongodb

Bug #1543703 reported by Nish Aravamudan
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Ubuntu
Fix Released
Wishlist
Unassigned

Bug Description

Upstream has moved from php-mongo to php-mongodb (https://docs.mongodb.org/ecosystem/drivers/php/) with php-mongo being considered legacy now. In order to properly support PHP7.0, we need to package up the php-mongdob driver.

URL: http://anonscm.debian.org/cgit/pkg-php/php-mongodb.git/ (master-7.0 branch)
License: Apache
Notes: This has not yet been packaged for Debian yet, but Ubuntu's delta should be 0 once this happens. This should result in version 1.1.2-2 being present in Xenial.
Two new build-dependency packages will need to be synced first, cf. Bug # 1543693 and Bug # 1543696 for the opened requests.

Nish Aravamudan (nacc)
Changed in ubuntu:
importance: Undecided → Wishlist
tags: added: needs-packaging
Revision history for this message
Martin Pitt (pitti) wrote :

gbp clone does not work on this. Can you please prepare a source package and attach it here or put it onto people.ubuntu.com or a PPA or so?

Changed in ubuntu:
status: New → Incomplete
Revision history for this message
Nish Aravamudan (nacc) wrote :

So, `gbp clone --debian-branch=master-7.0 git://anonscm.debian.org/pkg-php/php-mongodb.git` doesn't work for you? I haven't done the other steps before, but can investigate that if it's necessary.

Revision history for this message
Daniel Holbach (dholbach) wrote :

It works for me, but I'm adding the following patch to get it into Ubuntu: http://paste.ubuntu.com/15242089/

I also found the following two lintian warnings (JFYI):
W: php-mongodb source: pear-package-without-pkg-php-tools-builddep
W: php-mongodb: command-with-path-in-maintainer-script postrm:12 /usr/sbin/phpdismod
W: php-mongodb: command-with-path-in-maintainer-script prerm:12 /usr/sbin/phpdismod

Uploading it now. It should sit in NEW afterwards.

Changed in ubuntu:
status: Incomplete → Fix Committed
Revision history for this message
Nish Aravamudan (nacc) wrote :

@Daniel, thank you!

@Ondřej, do you want me to file a Debian bug for the above? I think php-mongodb is still not packaged yet in Debian?

Revision history for this message
Ondřej Surý (ondrej) wrote :

@nacc Can you pull from experimental? The problem is that libbson and libmongoc have been uploaded to experimental, so I am waiting for them to appear in unstable. But I can upload to experimental if that would help you.

Revision history for this message
Nish Aravamudan (nacc) wrote :

@Ondřej, Daniel was kind enough to package directly from the git tree, but I was hoping for your insight on those two lintian errors? I assume the Debian package will have the same problems.

Revision history for this message
Ondřej Surý (ondrej) wrote :

Lintian is wrong.

Revision history for this message
Ondřej Surý (ondrej) wrote :

Not on my phone, so I could be more verbose.

> W: php-mongodb: command-with-path-in-maintainer-script postrm:12 /usr/sbin/phpdismod

This is kind of correct, but it's not a call but a check whether the tool exists.

But I rewrote this in dh_php 0.8 to switch from [ -x /usr/sbin/phpdismod ] to which phpdismod >/dev/null to keep lintian happy.

> W: php-mongodb source: pear-package-without-pkg-php-tools-builddep

This is definitely bug in lintian as it doesn't distinguish between PEAR and PECL packages. I just hadn't had enough energy to fill a bug to fix this.

Revision history for this message
Ondřej Surý (ondrej) wrote :

I'll upload dh_php tomorrow, but I am not sure if you want to pick this change, since I had to change the place where mods-available is from /etc/php/mods-available to /etc/php/7.0/mods-available.

The upgrade should be automatic as much as possible, but it need binNMU on all extensions that depend on dh_php.

Revision history for this message
Steve Langasek (vorlon) wrote :

php-mongodb has been accepted into xenial-proposed.

Changed in ubuntu:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.