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

Package:
util-linux
Source:
util-linux
Description:
miscellaneous system utilities
Submitter:
Yegor Yefremov
Date:
2022-04-12 16:00:02 UTC
Severity:
wishlist
Tags:
#811361#5
Date:
2016-01-18 10:18:24 UTC
From:
To:
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 ***

#811361#12
Date:
2017-10-01 19:26:21 UTC
From:
To:
FTBS when using `--with-python=3`. Appears to be the same problem as
described on https://github.com/karelzak/util-linux/issues/489

#811361#17
Date:
2020-01-29 19:46:37 UTC
From:
To:
The linked upstream issue appears to be fixed now, can this be looked at
again?

#811361#22
Date:
2021-03-31 18:05:34 UTC
From:
To:
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:

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).


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?

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

#811361#27
Date:
2022-04-12 15:49:03 UTC
From:
To:
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