Merge ~sergiodj/ubuntu/+source/volatildap:fix-autopkgtest-openldap-2.5.5 into ubuntu/+source/volatildap:ubuntu/devel

Proposed by Sergio Durigan Junior
Status: Merged
Approved by: Sergio Durigan Junior
Approved revision: 07956cece832cf584b01fafc4fd62dc20f76d2ae
Merged at revision: 07956cece832cf584b01fafc4fd62dc20f76d2ae
Proposed branch: ~sergiodj/ubuntu/+source/volatildap:fix-autopkgtest-openldap-2.5.5
Merge into: ubuntu/+source/volatildap:ubuntu/devel
Diff against target: 61 lines (+41/-0)
3 files modified
debian/changelog (+8/-0)
debian/patches/0001-Use-L-MDB-backend-instead-of-HDB.patch (+32/-0)
debian/patches/series (+1/-0)
Reviewer Review Type Date Requested Status
Bryce Harrington (community) Approve
Canonical Server Pending
Review via email: mp+404803@code.launchpad.net

Description of the change

This MP fixes the autopkgtest for volatildap when using OpenLDAP 2.5.

As usual with these issues, this required just a simple change when selection the OpenLDAP backend: instead of using the now deprecated and removed HDB backend, we have to use the MDB one. After that, the tests start passing.

I have submitted a bug and a PR upstream containing this proposed patch; you can see them at:

https://github.com/rbarrois/volatildap/issues/7
https://github.com/rbarrois/volatildap/pull/8

I'm still waiting on their reply, but meanwhile I'd like to unblock this package (which is one of the last packages blocking the OpenLDAP 2.5 migration). I've also found that this issue is the reason why another package's autopkgtest, django-ldapdb, is failing.

There's also a Debian bug that I opened in order to report the failure to the Debian maintainer:

https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=990335

You can find a PPA with the proposed package here:

https://launchpad.net/~sergiodj/+archive/ubuntu/volatildap-openldap-2.5/+packages

And you can verify that its autopkgtest is now passing:

autopkgtest [22:45:20]: @@@@@@@@@@@@@@@@@@@@ summary
run-tests PASS

Here's the log of the autopkgtest run against the PPA:

https://autopkgtest.ubuntu.com/results/autopkgtest-impish-sergiodj-volatildap-openldap-2.5/impish/amd64/v/volatildap/20210625_224531_29f21@/log.gz

To post a comment you must log in.
Revision history for this message
Bryce Harrington (bryce) wrote :

Straightforward enough, LGTM +1

Verified the HDB backend is retired as of 2.5.5:
https://www.openldap.org/software/release/announce.html

PPA build and autopkgtest log look clean, I didn't attempt the tests or builds myself.

review: Approve
Revision history for this message
Sergio Durigan Junior (sergiodj) wrote :

Thank you very much, Bryce.

Pushed & uploaded:

$ git push pkg upload/1.3.0-2ubuntu4
Enumerating objects: 14, done.
Counting objects: 100% (14/14), done.
Delta compression using up to 8 threads
Compressing objects: 100% (10/10), done.
Writing objects: 100% (11/11), 1.86 KiB | 954.00 KiB/s, done.
Total 11 (delta 5), reused 0 (delta 0)
To ssh://git.launchpad.net/ubuntu/+source/volatildap
 * [new tag] upload/1.3.0-2ubuntu4 -> upload/1.3.0-2ubuntu4

$ dput volatildap_1.3.0-2ubuntu4_source.changes
Trying to upload package to ubuntu
Checking signature on .changes
gpg: /home/sergio/work/volatildap/volatildap_1.3.0-2ubuntu4_source.changes: Valid signature from 106DA1C8C3CBBF14
Checking signature on .dsc
gpg: /home/sergio/work/volatildap/volatildap_1.3.0-2ubuntu4.dsc: Valid signature from 106DA1C8C3CBBF14
Uploading to ubuntu (via ftp to upload.ubuntu.com):
  Uploading volatildap_1.3.0-2ubuntu4.dsc: done.
  Uploading volatildap_1.3.0-2ubuntu4.debian.tar.xz: done.
  Uploading volatildap_1.3.0-2ubuntu4_source.buildinfo: done.
  Uploading volatildap_1.3.0-2ubuntu4_source.changes: done.
Successfully uploaded packages.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1diff --git a/debian/changelog b/debian/changelog
2index 780f92e..f17b12f 100644
3--- a/debian/changelog
4+++ b/debian/changelog
5@@ -1,3 +1,11 @@
6+volatildap (1.3.0-2ubuntu4) impish; urgency=medium
7+
8+ * d/p/0001-Use-L-MDB-backend-instead-of-HDB.patch: Use MDB backend
9+ instead of the now deprecated and removed HDB backend on OpenLDAP
10+ 2.5.x.
11+
12+ -- Sergio Durigan Junior <sergio.durigan@canonical.com> Fri, 25 Jun 2021 18:09:01 -0400
13+
14 volatildap (1.3.0-2ubuntu3) impish; urgency=medium
15
16 * No-change rebuild due to OpenLDAP soname bump.
17diff --git a/debian/patches/0001-Use-L-MDB-backend-instead-of-HDB.patch b/debian/patches/0001-Use-L-MDB-backend-instead-of-HDB.patch
18new file mode 100644
19index 0000000..ae6fef2
20--- /dev/null
21+++ b/debian/patches/0001-Use-L-MDB-backend-instead-of-HDB.patch
22@@ -0,0 +1,32 @@
23+From: Sergio Durigan Junior <sergio.durigan@canonical.com>
24+Date: Fri, 25 Jun 2021 16:26:44 -0400
25+Subject: Use (L)MDB backend instead of HDB
26+
27+OpenLDAP 2.5.x has deprecated and removed support for the HDB backend,
28+which makes the tests fail. This commit changes the backend to MDB,
29+which is the recommended one now.
30+
31+Closes #7
32+
33+Bug: https://github.com/rbarrois/volatildap/issues/7
34+Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=990335
35+Forwarded: yes, https://github.com/rbarrois/volatildap/pull/8
36+---
37+ volatildap/server.py | 4 ++--
38+ 1 file changed, 2 insertions(+), 2 deletions(-)
39+
40+diff --git a/volatildap/server.py b/volatildap/server.py
41+index efa70f3..81a3336 100644
42+--- a/volatildap/server.py
43++++ b/volatildap/server.py
44+@@ -145,8 +145,8 @@ class LdapServer(object):
45+ yield quote('TLSCertificateFile %s', self._tls_certificate_path)
46+ yield quote('TLSCertificateKeyFile %s', self._tls_key_path)
47+
48+- yield quote('moduleload back_hdb')
49+- yield quote('database hdb')
50++ yield quote('moduleload back_mdb')
51++ yield quote('database mdb')
52+ yield quote('directory %s', self._datadir)
53+ yield quote('suffix %s', self.suffix)
54+ yield quote('rootdn %s', self.rootdn)
55diff --git a/debian/patches/series b/debian/patches/series
56new file mode 100644
57index 0000000..4bf63d0
58--- /dev/null
59+++ b/debian/patches/series
60@@ -0,0 +1 @@
61+0001-Use-L-MDB-backend-instead-of-HDB.patch

Subscribers

People subscribed via source and target branches