FTBS when using `--with-python=3`. Appears to be the same problem as
described on https://github.com/karelzak/util-linux/issues/489

Attachment: gbp_buildpackage_git_pbuilder.log.gz
Description: application/gzip

diff --git a/debian/changelog b/debian/changelog
index 1e92d9cfa..72cf27923 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,10 @@
+util-linux (2.29.2-5.1) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Create package for Python 3 bindings (closes #811361)
+
+ -- Ludens Snake <lud...@turingmachine.eu>  Sun, 01 Oct 2017 18:42:15 +0200
+
 util-linux (2.29.2-5) unstable; urgency=medium
 
   * Switch to XB-Important: yes to actually apply it.
diff --git a/debian/control b/debian/control
index c460ea928..68b0ce177 100644
--- a/debian/control
+++ b/debian/control
@@ -15,6 +15,7 @@ Build-Depends: bc <!stage1 !nocheck>,
                netbase <!stage1 !nocheck>,
                pkg-config,
                po-debconf,
+               python3-all-dev,
                socat <!stage1 !nocheck>,
                systemd [linux-any] <!stage1>,
                zlib1g-dev
@@ -246,6 +247,19 @@ Description: device mounting library - headers and static libraries
  .
  This package contains the development environment for the mount library.
 
+Package: python3-libmount
+Architecture: linux-any
+Section: libdevel
+Priority: optional
+Depends: libmount-dev (= ${binary:Version}),
+         libblkid-dev,
+         ${misc:Depends}
+Multi-Arch: same
+Description: device mounting library - Python 3 bindings
+ This device mounting library is used by mount and umount helpers.
+ .
+ This package contains the Python 3 bindings to the mount library.
+
 Package: libsmartcols1
 Architecture: any
 Section: libs
diff --git a/debian/python3-libmount.install b/debian/python3-libmount.install
new file mode 100644
index 000000000..c513f327f
--- /dev/null
+++ b/debian/python3-libmount.install
@@ -0,0 +1 @@
+usr/lib/python3.*/site-packages/libmount
diff --git a/debian/rules b/debian/rules
index 104e4697e..ae979838f 100755
--- a/debian/rules
+++ b/debian/rules
@@ -23,7 +23,7 @@ CONFOPTS += --enable-static-programs=fdisk,sfdisk,blkid
 
 # Help welcome packaging the (libmount) python bindings.
 # See http://bugs.debian.org/811361
-CONFOPTS += --without-python
+CONFOPTS += --with-python=3
 
 # disable utilities shipped by other packages
 # => login

Reply via email to