L.P.H. van Belle belle at
Mon Jun 4 08:11:09 UTC 2018

Hi Rowland, 

Read this threads, i can try to explain that, but its a much easier read for you.

This one is known in debian samba bug list.

But these should help you understanding better whats going on here.

For you, my packages need the gpgme still, untill we move up to buster, this is because of a build depend with qtbase5-dev.
Installing that, will remove my needed packages from backports: debhelper dh-autoreconf dh-exec dh-strip-nondeterminism dh-systemd equivs
And yes, i could fix the build-depend, but then im getting to much packages im need to backport.

As far i could understand the python-gpgme in buster and up depends on python-gpg and are useing the same source.

Samba ( at least my packages ) and Debian Testing and up use 

Sources : 

Sources: (0.3-1.2) 

But the gpgme to python-gpg transition is still a bit of a maze to me.




> -----Oorspronkelijk bericht-----
> Van: samba-technical 
> [mailto:samba-technical-bounces at] Namens 
> Rowland Penny via samba-technical
> Verzonden: vrijdag 1 juni 2018 18:27
> Aan: samba-technical at
> Onderwerp: samba-tool
> At the top of, there is this:
> try:
>     import io
>     import gpgme
>     gpgme_support = True
>     decrypt_samba_gpg_help = "Decrypt the SambaGPG password 
> as cleartext source"
> except ImportError as e:
>     gpgme_support = False
>     decrypt_samba_gpg_help = "Decrypt the SambaGPG password 
> not supported, " + \
>             "python-gpgme required"
> The Debian based distros are moving to python-gpg instead of
> python-gpgme, but the 'samba_tool.user.samba.tests.samba_tool.user'
> test fails with python-gpg:
> time: 2018-06-01 13:59:27.457334Z
> failure: 
> samba.tests.samba_tool.user.samba.tests.samba_tool.user.UserCm
> dTestCase.test_setpassword(ad_dc_ntvfs:local) [
> Exception: Exception: Traceback (most recent call last):
>   File 
> "/usr/src/git/samba-master/bin/python/samba/tests/samba_tool/u", line 214, in test_setpassword
>     self.assertCmdSuccess(result, out, err, "Ensure 
> syncpasswords --cache-ldb-initialize runs")
>   File 
> "/usr/src/git/samba-master/bin/python/samba/tests/samba_tool/b", line 110, in assertCmdSuccess
>     exit, out, err, msg))
> AssertionError: exit[-1] stdout[] stderr[ERROR: Decrypt the 
> SambaGPG password not supported, python-gpgme required
> ]: Ensure syncpasswords --cache-ldb-initialize runs
> I suppose I could replace 'import gpgme' with 'import python-gpg', but
> I feel this will break other distros.
> Suggestions ??
> Rowland

More information about the samba-technical mailing list