- Package:
- util-linux
- Source:
- util-linux
- Description:
- miscellaneous system utilities
- Submitter:
- Yegor Yefremov
- Date:
- 2022-04-12 16:00:02 UTC
- Severity:
- wishlist
- Tags:
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 ***
FTBS when using `--with-python=3`. Appears to be the same problem as described on https://github.com/karelzak/util-linux/issues/489
The linked upstream issue appears to be fixed now, can this be looked at again?
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
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