Your message dated Sun, 15 Apr 2018 17:53:25 +0300
with message-id <20180415145325.GE10218@localhost>
and subject line This was fixed in 1.7.0-2
has caused the Debian Bug report #784836,
regarding src:ldns: Please add python3 package
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 this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact

Debian Bug Tracking System
Contact with problems
--- Begin Message ---
Package: src:ldns
Severity: minor
Tags: patch


Please consider adding a python3 binary. I have attached a working



-- System Information:
Debian Release: 8.0
  APT prefers stable
  APT policy: (990, 'stable'), (500, 'unstable'), (500, 'oldstable'), (1, 
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 3.16.0-4-amd64 (SMP w/6 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
diff --git a/debian/control b/debian/control
index 0a36106..898980f 100644
--- a/debian/control
+++ b/debian/control
@@ -98,3 +98,18 @@ Description: Python bindings for the ldns library for DNS programming
  This archive contains modules that allow you to use LDNS Library in
  Python programs.
+Package: python3-ldns
+Section: python
+Architecture: any
+Depends: ${shlibs:Depends}, ${misc:Depends}, ${python:Depends}
+Provides: ${python:Provides}
+XB-Python-Version: ${python:Versions}
+Description: Python bindings for the ldns library for DNS programming
+ The goal of ldns is to simplify DNS programming, it supports recent RFCs
+ like the DNSSEC documents, and allows developers to easily create software
+ conforming to current RFCs, and experimental software for current Internet
+ Drafts.
+ .
+ This archive contains modules that allow you to use LDNS Library in
+ Python programs.
diff --git a/debian/python-ldns.install b/debian/python-ldns.install
index 6e9f501..8800f47 100644
--- a/debian/python-ldns.install
+++ b/debian/python-ldns.install
@@ -1,2 +1,2 @@
diff --git a/debian/rules b/debian/rules
index 50d904c..40bf4f7 100755
--- a/debian/rules
+++ b/debian/rules
@@ -8,14 +8,14 @@ export DEB_BUILD_OPTIONS=nocheck
-PYVERS=$(shell pyversions -vs)
+PYVERS=$(shell pyversions -vs) 3.4
 OPENSSLVER=$(shell pkg-config --modversion libssl)
 BUILD_GOST=$(shell dpkg --compare-versions $(OPENSSLVER) gt 1.0.0 && echo "--enable-gost" || echo "--disable-gost")
-	dh --with quilt --with python2 ${@}
+	dh --with quilt --with python2,python3 ${@}
 	[ -e $(CURDIR)/libtool ] || ln -s /usr/bin/libtool
@@ -72,7 +72,7 @@ override_dh_auto_install:
 	dh_auto_install -- DESTDIR=$(CURDIR)/debian/tmp;
 	for v in $(PYVERS); do \
-	  PYTHON_DIR=$$(python$$v -c "import distutils.sysconfig; print distutils.sysconfig.get_python_lib(0,0);"); \
+	  PYTHON_DIR=$$(python$$v -c "from __future__ import print_function; import distutils.sysconfig; print(distutils.sysconfig.get_python_lib(0,0));"); \
 	  make -C build-python$$v DESTDIR=$(CURDIR)/debian/tmp install-pyldns; \
 	  mv $(CURDIR)/debian/tmp$${PYTHON_DIR}/$$(readlink $(CURDIR)/debian/tmp$${PYTHON_DIR}/ $(CURDIR)/debian/tmp$${PYTHON_DIR}/; \
 	  chrpath -d $(CURDIR)/debian/tmp$${PYTHON_DIR}/; \

--- End Message ---
--- Begin Message ---
Version: 1.7.0-2

ldns (1.7.0-2) unstable; urgency=medium

  [ Christoph Egger ]
  * Add python3 bindings

 -- Ondřej Surý <>  Mon, 19 Jun 2017 10:38:39 +0200



       "Is there not promise of rain?" Ling Tan asked suddenly out
        of the darkness. There had been need of rain for many days.
       "Only a promise," Lao Er said.
                                       Pearl S. Buck - Dragon Seed

--- End Message ---

Reply via email to