Bug#911082: nautilus-python: please build against python3

Jonas Meurer jonas at freesources.org
Fri Jan 25 16:27:36 GMT 2019


Hello,


On Mon, 15 Oct 2018 13:20:48 +0000 Georg Faerber <georg at riseup.net> wrote:
> Package: nautilus-python
> Version: 1.2.2-1
> Control: block 910491 with -1
> 
> Hi all,
> 
> As discussed on IRC:
> 
> 11:39 < georg> Hi all, thanks for the upload of nautilus-python 1.2.2-1. It still builds against python2, which currently blocks #910491, as that needs python3
> 11:39 -zwiebelbot:#debian-gnome- Debian#910491: mat2: Please package the Nautilus extension - https://bugs.debian.org/910491
> 11:39 < georg> Any plan to build against python3 as well?
> 11:39 < georg> or in addition to, and ship python3-nautilus?
> 12:41 < jbicha> georg: python-nautilus has a lot of reverse dependencies. Someone would need to test which ones work with python3 and which don't
> 12:41 < jbicha> and the package would need to be split
> 12:42 < jbicha> and it looks like there is a single pkgconfig file so that's "interesting"
> 12:42 < jbicha> anyway, I'm not working on it :)
> 12:58 < georg> jbicha: thanks a lot! should we track progress in a bug against nautilus-python, or is it fine as is for the time being?
> 12:59 < jbicha> please open a bug
> 13:12 < georg> jbicha: sorry, I read "anyway, I'm working on it", that's why I asked.. I'll open a bug report
> 13:13 < jbicha> yeah, no one's working on it. :(
> 13:14 < jbicha> I eventually fixed bug 907591 but it wasn't precise enough :|
> 13:15 < georg> wouldn't it be possible to introduce python3-nautilus (while still shipping python-nautilus), and without checking all the rdepends
> 13:15 < georg> so, leaving the rdepends as is, and new packages could depend on python3-nautilus
> 13:16 < jbicha> you still have the pkgconfig issue and you still probably need to split the documentation out of python-nautilus
> 13:16 < jbicha> but feel free to open a merge request if you think you have something that works
> 13:17 < jbicha> https://salsa.debian.org/gnome-team/nautilus-python
> 13:17 < georg> alright
I just spent some time to get the Python 3 bindings built in the
nautilus-python package. The attached patch - also submitted as merge
request[1] - changes debian/rules in a way that to separate binary
packages are built:

* python-nautilus contains the bindings compiled for Python 2
* python3-nautilus contains the bindings compiled for Python 3

I decided to make python-nautilus and python3-nautilus conflict against
each other. Both provide the same files, but compiled against different
Python versions. I don't see an easy way to get around this conflict. At
least Archlinux seems to do the same.

For that very same reason I also didn't go the usual path to split out
documentation into a separate python-nautilus-doc package. We're only
talking about ~68K of docs/examples anyway and I don't think that
they're worth having a separate package. Especially not since
python-nautilus and python3-nautilus cannot be installed in parallel for
now.

<begging mode>
If you consider this patch sane, would you consider doing an upload
rather soon? I'd love to get python3-nautilus into the archive in time
for Stretch. I'd also be fine with doing an NMU, if you don't mind.

To give a bit more context: python3-nautilus is the last piece missing
for mat2, the sucessor of mat (metadata anonymization toolkit), to
replace its predecessor. Since there's security implications, we (some
from the pkg-privacy team) would like to get full mat2 support into Stretch.

I know that this comes rather late, but I didn't find time earlier to
work on it.
</begging mode>

Cheers
 jonas

[1] https://salsa.debian.org/gnome-team/nautilus-python/merge_requests/1
[2] https://bbs.archlinux.org/viewtopic.php?id=242380
-------------- next part --------------
A non-text attachment was scrubbed...
Name: nautilus-python_python3-bindings.diff
Type: text/x-patch
Size: 6704 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/pkg-gnome-maintainers/attachments/20190125/2ae1c079/attachment-0002.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: OpenPGP digital signature
URL: <http://alioth-lists.debian.net/pipermail/pkg-gnome-maintainers/attachments/20190125/2ae1c079/attachment-0002.sig>


More information about the pkg-gnome-maintainers mailing list