Package: src:ldns Severity: minor Tags: patch Hi!
Please consider adding a python3 binary. I have attached a working patch! Thanks Christoph -- System Information: Debian Release: 8.0 APT prefers stable APT policy: (990, 'stable'), (500, 'unstable'), (500, 'oldstable'), (1, 'experimental') 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 @@ -debian/tmp/usr/lib/python*/*-packages/_ldns.so -debian/tmp/usr/lib/python*/*-packages/ldns.py +debian/tmp/usr/lib/python2*/*-packages/_ldns.so +debian/tmp/usr/lib/python2*/*-packages/ldns.py 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 export DEB_BUILD_HARDENING=1 -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 ${@} override_dh_auto_clean: [ -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}/_ldns.so) $(CURDIR)/debian/tmp$${PYTHON_DIR}/_ldns.so; \ chrpath -d $(CURDIR)/debian/tmp$${PYTHON_DIR}/_ldns.so; \