Bug#811361: libmount: provide extra package for pylibmount (Python bindings for libmount)

2022-04-12 Thread Chris Hofstaedtler
Control: tags -1 = wontfix

util-linux upstream has indicated on the mailing list that it would
be better if the python bindings were maintained out of tree.

As such I do not intend to ship this as part of the Debian
packaging.

Sorry,
Chris



Bug#811361: libmount: provide extra package for pylibmount (Python bindings for libmount)

2021-03-31 Thread Andreas Henriksson
Hello Ludens (or anyone else interested in picking this up),

Thanks for the patch you submitted for adding a package with python3
bindings for libmount.

Beware: I'm by no means a python (packaging) expert, so anything I say
below might be completely wrong.

Some things you added in the `Package: python3-libmount` part
of debian/control looks possibly wrong to me:

> Package: python3-libmount
> Architecture: linux-any

Why linux-any? libmount1 is any. (Also I'm not sure when
python stuff can be all or any, but I guess any is correct
for something wrapping a c library).

> Section: libdevel

Shouldn't this be 'Section: python` ?

> Priority: optional
> Depends: libmount-dev (= ${binary:Version}),
>  libblkid-dev,
>  ${misc:Depends}

Depending on the -dev packages looks wrong to me. You likely want
to depend on the runtime packages like libmount1. Possibly
via some automatic variable like ${shlibs:Depends}, rather than
hard-coding the actual binary library packages.

Also shouldn't there be some python-related magic variable in
here as well?


> Multi-Arch: same

Are you sure?



FWIW Please open a merge-request against the util-linux packaging
git repo on salsa.debian.org/debian/util-linux for easier review!

Might also be useful to ask the debian-python lists to review
the changes, which should give extra confidence that your
packaging work follows debian python packaging best practices.

Regards,
Andreas Henriksson



Bug#811361: libmount: provide extra package for pylibmount (Python bindings for libmount)

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


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   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 ,
netbase ,
pkg-config,
po-debconf,
+   python3-all-dev,
socat ,
systemd [linux-any] ,
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 0..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


Bug#811361: libmount: provide extra package for pylibmount (Python bindings for libmount)

2016-01-18 Thread Yegor Yefremov
Package: util-linux
Version: 2.27.1-1
Severity: wishlist

Dear Maintainer,

utils-linux provides Python bindings for libmount - pylibmount Python module.
As for now there is no package providing it. I suggest to create two additional
packages from util-linux sources:

1. python-libmount - bindings for Python 2
2. python3-libmount  - binding for Python 3

See Fedora's package for reference [1].

[1] https://apps.fedoraproject.org/packages/python3-libmount

Yegor

*** Reporter, please consider answering these questions, where appropriate ***

   * What led up to the situation?
   * What exactly did you do (or not do) that was effective (or
 ineffective)?
   * What was the outcome of this action?
   * What outcome did you expect instead?

*** End of the template - remove these template lines ***


-- System Information:
Debian Release: stretch/sid
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: amd64 (x86_64)
Foreign Architectures: armhf

Kernel: Linux 4.3.0-1-amd64 (SMP w/1 CPU core)
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)

Versions of packages util-linux depends on:
ii  initscripts 2.88dsf-59.2
ii  libblkid1   2.27.1-1
ii  libc6   2.21-6
ii  libfdisk1   2.27.1-1
ii  libmount1   2.27.1-1
ii  libncursesw56.0+20151024-2
ii  libpam0g1.1.8-3.2
ii  libselinux1 2.4-3
ii  libsmartcols1   2.27.1-1
ii  libsystemd0 228-4
ii  libtinfo5   6.0+20151024-2
ii  libudev1228-4
ii  libuuid12.27.1-1
ii  lsb-base9.20160110
ii  sysvinit-utils  2.88dsf-59.2
ii  tzdata  2015g-1
ii  zlib1g  1:1.2.8.dfsg-2+b1

util-linux recommends no packages.

Versions of packages util-linux suggests:
ii  dosfstools  3.0.28-2
ii  kbd 2.0.3-2
ii  util-linux-locales  2.27.1-1

-- no debconf information