Merge ~lvoytek/ubuntu/+source/bind-dyndb-ldap:MRE-jammy-9.18.18 into ubuntu/+source/bind-dyndb-ldap:ubuntu/jammy-devel

Proposed by Lena Voytek
Status: Merged
Approved by: git-ubuntu bot
Approved revision: not available
Merged at revision: 6df2c05c87fad2f73d917fbb694339c60e477755
Proposed branch: ~lvoytek/ubuntu/+source/bind-dyndb-ldap:MRE-jammy-9.18.18
Merge into: ubuntu/+source/bind-dyndb-ldap:ubuntu/jammy-devel
Diff against target: 82 lines (+60/-0)
3 files modified
debian/changelog (+7/-0)
debian/patches/remove-rpz_attach.patch (+52/-0)
debian/patches/series (+1/-0)
Reviewer Review Type Date Requested Status
git-ubuntu bot Approve
Andreas Hasenack Approve
Canonical Server Reporter Pending
Review via email: mp+451686@code.launchpad.net

Description of the change

Fix required for bind9 update to 9.18.18 in jammy

bind9 has to be built in proposed before this update is added to proposed itself - https://code.launchpad.net/~lvoytek/ubuntu/+source/bind9/+git/bind9/+merge/451683

PPA: https://launchpad.net/~lvoytek/+archive/ubuntu/bind9-mre

To post a comment you must log in.
Revision history for this message
Andreas Hasenack (ahasenack) wrote :

Security released an USN[1] for bind9 and will rebuild src:bind-dyndb-ldap in the security pocket. Once that happens and is published, this MP should be rebased on that, and released with the upcoming bind9 MRE.

1. https://ubuntu.com/security/notices/USN-6390-1

Revision history for this message
Andreas Hasenack (ahasenack) wrote :

Security published the no-change rebuild corresponding to their bind9 security update, so this now needs rebasing.

Revision history for this message
Lena Voytek (lvoytek) wrote :

Rebased onto security rebuild

Revision history for this message
Andreas Hasenack (ahasenack) wrote :

Just ran the tests locally for jammy with the up-to-date ppa builds, all good. The ppa run also just finished for jammy, also green results for both bind-dyndb-ldap and bind9.

review: Approve
Revision history for this message
git-ubuntu bot (git-ubuntu-bot) wrote :

Approvers: ahasenack, lvoytek
Uploaders: ahasenack
MP auto-approved

review: Approve
Revision history for this message
Andreas Hasenack (ahasenack) wrote :

Uploaded with rich history:

Uploading bind-dyndb-ldap_11.9-5ubuntu0.22.04.4.dsc
Uploading bind-dyndb-ldap_11.9-5ubuntu0.22.04.4.debian.tar.xz
Uploading bind-dyndb-ldap_11.9-5ubuntu0.22.04.4_source.buildinfo
Uploading bind-dyndb-ldap_11.9-5ubuntu0.22.04.4_source.changes

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
diff --git a/debian/changelog b/debian/changelog
index 8612f13..b5d78f8 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,10 @@
1bind-dyndb-ldap (11.9-5ubuntu0.22.04.4) jammy; urgency=medium
2
3 * d/p/remove-rpz_attach.patch: Remove rpz_attach to fix build failure against
4 bind9 9.18.13+ (LP: #2028413)
5
6 -- Lena Voytek <lena.voytek@canonical.com> Thu, 21 Sep 2023 07:26:59 -0700
7
1bind-dyndb-ldap (11.9-5ubuntu0.22.04.3) jammy-security; urgency=medium8bind-dyndb-ldap (11.9-5ubuntu0.22.04.3) jammy-security; urgency=medium
29
3 * No-change rebuild for bind9 security update.10 * No-change rebuild for bind9 security update.
diff --git a/debian/patches/remove-rpz_attach.patch b/debian/patches/remove-rpz_attach.patch
4new file mode 10064411new file mode 100644
index 0000000..9e3cec0
--- /dev/null
+++ b/debian/patches/remove-rpz_attach.patch
@@ -0,0 +1,52 @@
1Description: Remove rpz_attach to fix build failure.
2 rpz_attach is no longer provided by bind9, and bind-dyndb-ldap upstream
3 removed the function since it would never be called anyway. As of 9.18.13
4 building against bind9 with this function causes a build failure. Remove
5 it by backporting the relevant upstream commit. Note that the changes are
6 smaller here because
7 https://pagure.io/bind-dyndb-ldap/c/5f37344d076f8cbd93a1842814b97763c3decc9a
8 was never added, and its changes were reverted by this upstream commit.
9Author: Petr Menšík <pemensik@redhat.com>
10Origin: backport, https://pagure.io/bind-dyndb-ldap/c/1be57227a9727c6dce501a4bfa8e9eef35ba95d5
11Bug-Ubuntu: https://bugs.launchpad.net/ubuntu/+source/bind-dyndb-ldap/+bug/2028413
12Forwarded: not-needed
13Last-Update: 2023-09-19
14---
15This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
16--- a/src/ldap_driver.c
17+++ b/src/ldap_driver.c
18@@ -804,22 +804,6 @@
19
20 dns_db_rpz_attach(ldapdb->rbtdb, rpzs, rpz_num);
21 }
22-#else
23-void
24-rpz_attach(dns_db_t *db, void *void_rpzs, uint8_t rpz_num)
25-{
26- ldapdb_t *ldapdb = (ldapdb_t *) db;
27- dns_rpz_zones_t *rpzs = (dns_rpz_zones_t *) void_rpzs;
28- isc_result_t result;
29-
30- REQUIRE(VALID_LDAPDB(ldapdb));
31-
32- rpzs->zones[rpz_num]->db_registered = true;
33- result = dns_db_updatenotify_register(ldapdb->rbtdb,
34- dns_rpz_dbupdate_callback,
35- rpzs->zones[rpz_num]);
36- REQUIRE(result == ISC_R_SUCCESS);
37-}
38 #endif
39
40 /*
41@@ -966,7 +950,11 @@
42 resigned,
43 isdnssec,
44 getrrsetstats,
45+#if LIBDNS_VERSION_MAJOR < 1600
46 rpz_attach,
47+#else
48+ NULL,
49+#endif
50 NULL, /* rpz_ready */
51 findnodeext,
52 findext,
diff --git a/debian/patches/series b/debian/patches/series
index b28129a..9f87f54 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -7,3 +7,4 @@ fix-dns_db_allrdatasets.patch
7fix-include.patch7fix-include.patch
8fix-isc-error.patch8fix-isc-error.patch
9make-dscp-optional.patch9make-dscp-optional.patch
10remove-rpz_attach.patch

Subscribers

People subscribed via source and target branches