Bug#781913: [Pkg-samba-maint] Bug#781913: please build bindings for Python3 and let samba-common-bin use them

2019-08-19 Thread Mathieu Parent
Le dim. 18 août 2019 à 14:15, Laurent Bigonville  a écrit :
>
> Package: src:samba
> Followup-For: Bug #781913
>
> Hi,
>
> samba 4.10 is apparently supporting python3
>
> Are there any plans to upload that soon?

Yes. Work has already started. I plan to finish this during August.

> Not that ubuntu already did the work apparently

I know.

Regards

-- 
Mathieu Paren



Bug#781913: [Pkg-samba-maint] Bug#781913: please build bindings for Python3 and let samba-common-bin use them

2017-10-14 Thread Andrew Bartlett
On Sat, 2017-10-14 at 20:40 -0400, Daniel Kahn Gillmor wrote:
> Control: clone 781913 -1
> Control: retitle -1 please drop dependency on python-talloc from samba-libs
> Control: affects -1 + mpd
> 
> On Sat 2015-04-04 22:10:14 +0200, Matthias Klose wrote:
> > On 04/04/2015 08:47 PM, Jelmer Vernooij wrote:
> > > So if we could move that functionality out to a separate library that
> > > is not included with samba-libs, we could drop the dependency on
> > > python2 in samba-libs.
> > 
> > right, that would get rid off python libs and python-talloc.  However there 
> > is
> > another path in that nautilus-share depends on samba-common | 
> > samba-common-bin,
> > which depend on python-samba.
> 
> Please don't block fixing this python2 dependency of samba-libs on
> fixing the other python2 issues in samba-common and samba-common-bin.
> there are other packages (e.g. mpd) that Depend: samba-libs and do not
> have this additional dependency.
> 
> Fixing the dependency of samba-libs on python-talloc in its own right
> would be a win for minimal systems that run mpd but don't want to carry
> around an unnecessary python interpreter.

Even this is a significant amount of work.  The challenge with
splitting up samba-libs is that there are a lot of libraries which
depend on each other.  Early Samba4 packages did split things into one
package per library, but it became unmanagable. 

One possible approach would be to create a samba-base-libs which
contains the things libsmbclient depends on, which hopefully does not
include python-talloc. 

The alternate, removing just the python dependency from samba-libs
would require more work I think, plus removing or re-structuring the
code in source4/libnet/provision.c that calls into python (rather than
python calling Samba, which is otherwise the pattern). 

I hope this helps.  I do need to make clear that we need significant
help if you wish to see progress here, plus work may be needed upstream
to change the libraries the build system produces.  On the hopeful
side, upstream Samba did merge patches to allow a build without linking
to python recently. 

Thanks!

Andrew Bartlett
-- 
Andrew Bartlett   http://samba.org/~abartlet/
Authentication Developer, Samba Team  http://samba.org
Samba Developer, Catalyst IT  http://catalyst.net.nz/services/samba



Bug#781913: [Pkg-samba-maint] Bug#781913: please build bindings for Python3 and let samba-common-bin use them

2017-10-14 Thread Daniel Kahn Gillmor
Control: clone 781913 -1
Control: retitle -1 please drop dependency on python-talloc from samba-libs
Control: affects -1 + mpd

On Sat 2015-04-04 22:10:14 +0200, Matthias Klose wrote:
> On 04/04/2015 08:47 PM, Jelmer Vernooij wrote:
>> So if we could move that functionality out to a separate library that
>> is not included with samba-libs, we could drop the dependency on
>> python2 in samba-libs.
>
> right, that would get rid off python libs and python-talloc.  However there is
> another path in that nautilus-share depends on samba-common | 
> samba-common-bin,
> which depend on python-samba.

Please don't block fixing this python2 dependency of samba-libs on
fixing the other python2 issues in samba-common and samba-common-bin.
there are other packages (e.g. mpd) that Depend: samba-libs and do not
have this additional dependency.

Fixing the dependency of samba-libs on python-talloc in its own right
would be a win for minimal systems that run mpd but don't want to carry
around an unnecessary python interpreter.

Thanks for maintaining samba in debian!

Regards,

--dkg


signature.asc
Description: PGP signature


Bug#781913: [Pkg-samba-maint] Bug#781913: please build bindings for Python3 and let samba-common-bin use them

2015-04-05 Thread Steve Langasek
On Sun, Apr 05, 2015 at 06:11:09PM +0100, Jelmer Vernooij wrote:
> > Now, with:

> > Description: Nautilus extension to share folder using Samba
> >  Nautilus Share allows you to quickly share a folder from
> >  the GNOME Nautilus file manager without requiring root access.

> > it requires samba to work, so the package installs samba before running
> > anything. I still have to find out why it needs to run these two commands 
> > before
> > installing samba anyway.

> Ah, of course. Why does it not have a hard dependency on Samba
> in that case? It seems like sharing folders over SMB is impossible
> without the server.

To reduce the size of the dependencies pulled in by default on the desktop
before these are needed.  This is a desktop sharing mechanism that's made
available by default, but we don't want the samba server installed (and
therefore enabled) by default on the desktop.

-- 
Steve Langasek   Give me a lever long enough and a Free OS
Debian Developer   to set it on, and I can move the world.
Ubuntu Developerhttp://www.debian.org/
slanga...@ubuntu.com vor...@debian.org


signature.asc
Description: Digital signature


Bug#781913: [Pkg-samba-maint] Bug#781913: please build bindings for Python3 and let samba-common-bin use them

2015-04-05 Thread Jelmer Vernooij
On Sun, Apr 05, 2015 at 06:53:52PM +0200, Matthias Klose wrote:
> On 04/04/2015 10:14 PM, Jelmer Vernooij wrote:
> > On Sat, Apr 04, 2015 at 10:10:14PM +0200, Matthias Klose wrote:
> >> On 04/04/2015 08:47 PM, Jelmer Vernooij wrote:
> >>> On Sat, Apr 04, 2015 at 08:03:19PM +0200, Matthias Klose wrote:
>  On 04/04/2015 07:40 PM, Jelmer Vernooij wrote:
> > On Sat, Apr 04, 2015 at 07:31:59PM +0200, Matthias Klose wrote:
> >> Package: src:samba
> >> Version: 2:4.1.13+dfsg-4
> >>
> >> please build bindings for Python3 and let samba-common-bin use them
> >
> > There are no Python3 bindings for Samba. Porting will be a large 
> > effort, and as
> > upstream we don't want to maintain support for two Python versions. 
> >
> > What do you need the Python3 bindings for? Perhaps there are 
> > alternatives.
> 
>  I was looking what is keeping Python2 on the Ubuntu desktop. For the 
>  samba
>  bindings this is system-config-printer depending on gvfs-backends, 
>  depending on
>  samba-libs.
> >>>
> >>> I think getting rid of the Python dependency in samba-libs is a much
> >>> easier to achieve goal here.
> >>>
> >>> AFAICT The only reason that samba-libs depends on python is because
> >>> libsamba-net can do provisioning of a local DC (requires the 'samba'
> >>> package to be installed) by invoking the provision script using Python.
> >>>
> >>> So if we could move that functionality out to a separate library that
> >>> is not included with samba-libs, we could drop the dependency on
> >>> python2 in samba-libs.
> >>
> >> right, that would get rid off python libs and python-talloc.  However 
> >> there is
> >> another path in that nautilus-share depends on samba-common | 
> >> samba-common-bin,
> >> which depend on python-samba.
> >>
> >> and
> >> $ reverse-depends nautilus-share
> >> Reverse-Recommends
> >> ==
> >> * ubuntu-desktop
> >> * ubuntu-gnome-desktop
> >> * ubuntukylin-desktop
> > 
> > What does it need that dependency for? I would imagine it just uses
> > libsmbclient.
> 
> it doesn't use libsmbclient, it uses the
> 
>   net usershare
> 
> and
> 
>   testparm -s --parameter-name='usershare allow guests
> 
> commands.
> 
> Now, with:
> 
> Description: Nautilus extension to share folder using Samba
>  Nautilus Share allows you to quickly share a folder from
>  the GNOME Nautilus file manager without requiring root access.
> 
> it requires samba to work, so the package installs samba before running
> anything. I still have to find out why it needs to run these two commands 
> before
> installing samba anyway.

Ah, of course. Why does it not have a hard dependency on Samba
in that case? It seems like sharing folders over SMB is impossible
without the server.

Jelmer


signature.asc
Description: Digital signature


Bug#781913: [Pkg-samba-maint] Bug#781913: please build bindings for Python3 and let samba-common-bin use them

2015-04-05 Thread Matthias Klose
On 04/04/2015 10:14 PM, Jelmer Vernooij wrote:
> On Sat, Apr 04, 2015 at 10:10:14PM +0200, Matthias Klose wrote:
>> On 04/04/2015 08:47 PM, Jelmer Vernooij wrote:
>>> On Sat, Apr 04, 2015 at 08:03:19PM +0200, Matthias Klose wrote:
 On 04/04/2015 07:40 PM, Jelmer Vernooij wrote:
> On Sat, Apr 04, 2015 at 07:31:59PM +0200, Matthias Klose wrote:
>> Package: src:samba
>> Version: 2:4.1.13+dfsg-4
>>
>> please build bindings for Python3 and let samba-common-bin use them
>
> There are no Python3 bindings for Samba. Porting will be a large effort, 
> and as
> upstream we don't want to maintain support for two Python versions. 
>
> What do you need the Python3 bindings for? Perhaps there are alternatives.

 I was looking what is keeping Python2 on the Ubuntu desktop. For the samba
 bindings this is system-config-printer depending on gvfs-backends, 
 depending on
 samba-libs.
>>>
>>> I think getting rid of the Python dependency in samba-libs is a much
>>> easier to achieve goal here.
>>>
>>> AFAICT The only reason that samba-libs depends on python is because
>>> libsamba-net can do provisioning of a local DC (requires the 'samba'
>>> package to be installed) by invoking the provision script using Python.
>>>
>>> So if we could move that functionality out to a separate library that
>>> is not included with samba-libs, we could drop the dependency on
>>> python2 in samba-libs.
>>
>> right, that would get rid off python libs and python-talloc.  However there 
>> is
>> another path in that nautilus-share depends on samba-common | 
>> samba-common-bin,
>> which depend on python-samba.
>>
>> and
>> $ reverse-depends nautilus-share
>> Reverse-Recommends
>> ==
>> * ubuntu-desktop
>> * ubuntu-gnome-desktop
>> * ubuntukylin-desktop
> 
> What does it need that dependency for? I would imagine it just uses
> libsmbclient.

it doesn't use libsmbclient, it uses the

  net usershare

and

  testparm -s --parameter-name='usershare allow guests

commands.

Now, with:

Description: Nautilus extension to share folder using Samba
 Nautilus Share allows you to quickly share a folder from
 the GNOME Nautilus file manager without requiring root access.

it requires samba to work, so the package installs samba before running
anything. I still have to find out why it needs to run these two commands before
installing samba anyway.

Matthias


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org



Bug#781913: [Pkg-samba-maint] Bug#781913: please build bindings for Python3 and let samba-common-bin use them

2015-04-04 Thread Jelmer Vernooij
On Sat, Apr 04, 2015 at 10:10:14PM +0200, Matthias Klose wrote:
> On 04/04/2015 08:47 PM, Jelmer Vernooij wrote:
> > On Sat, Apr 04, 2015 at 08:03:19PM +0200, Matthias Klose wrote:
> >> On 04/04/2015 07:40 PM, Jelmer Vernooij wrote:
> >>> On Sat, Apr 04, 2015 at 07:31:59PM +0200, Matthias Klose wrote:
>  Package: src:samba
>  Version: 2:4.1.13+dfsg-4
> 
>  please build bindings for Python3 and let samba-common-bin use them
> >>>
> >>> There are no Python3 bindings for Samba. Porting will be a large effort, 
> >>> and as
> >>> upstream we don't want to maintain support for two Python versions. 
> >>>
> >>> What do you need the Python3 bindings for? Perhaps there are alternatives.
> >>
> >> I was looking what is keeping Python2 on the Ubuntu desktop. For the samba
> >> bindings this is system-config-printer depending on gvfs-backends, 
> >> depending on
> >> samba-libs.
> > 
> > I think getting rid of the Python dependency in samba-libs is a much
> > easier to achieve goal here.
> > 
> > AFAICT The only reason that samba-libs depends on python is because
> > libsamba-net can do provisioning of a local DC (requires the 'samba'
> > package to be installed) by invoking the provision script using Python.
> > 
> > So if we could move that functionality out to a separate library that
> > is not included with samba-libs, we could drop the dependency on
> > python2 in samba-libs.
> 
> right, that would get rid off python libs and python-talloc.  However there is
> another path in that nautilus-share depends on samba-common | 
> samba-common-bin,
> which depend on python-samba.
> 
> and
> $ reverse-depends nautilus-share
> Reverse-Recommends
> ==
> * ubuntu-desktop
> * ubuntu-gnome-desktop
> * ubuntukylin-desktop

What does it need that dependency for? I would imagine it just uses
libsmbclient.

Cheers,

Jelmer

-- 
Jelmer Vernooij 
Debian Developer   https://jelmer.uk/


signature.asc
Description: Digital signature


Bug#781913: [Pkg-samba-maint] Bug#781913: please build bindings for Python3 and let samba-common-bin use them

2015-04-04 Thread Matthias Klose
On 04/04/2015 08:47 PM, Jelmer Vernooij wrote:
> On Sat, Apr 04, 2015 at 08:03:19PM +0200, Matthias Klose wrote:
>> On 04/04/2015 07:40 PM, Jelmer Vernooij wrote:
>>> On Sat, Apr 04, 2015 at 07:31:59PM +0200, Matthias Klose wrote:
 Package: src:samba
 Version: 2:4.1.13+dfsg-4

 please build bindings for Python3 and let samba-common-bin use them
>>>
>>> There are no Python3 bindings for Samba. Porting will be a large effort, 
>>> and as
>>> upstream we don't want to maintain support for two Python versions. 
>>>
>>> What do you need the Python3 bindings for? Perhaps there are alternatives.
>>
>> I was looking what is keeping Python2 on the Ubuntu desktop. For the samba
>> bindings this is system-config-printer depending on gvfs-backends, depending 
>> on
>> samba-libs.
> 
> I think getting rid of the Python dependency in samba-libs is a much
> easier to achieve goal here.
> 
> AFAICT The only reason that samba-libs depends on python is because
> libsamba-net can do provisioning of a local DC (requires the 'samba'
> package to be installed) by invoking the provision script using Python.
> 
> So if we could move that functionality out to a separate library that
> is not included with samba-libs, we could drop the dependency on
> python2 in samba-libs.

right, that would get rid off python libs and python-talloc.  However there is
another path in that nautilus-share depends on samba-common | samba-common-bin,
which depend on python-samba.

and
$ reverse-depends nautilus-share
Reverse-Recommends
==
* ubuntu-desktop
* ubuntu-gnome-desktop
* ubuntukylin-desktop

Matthias


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org



Bug#781913: [Pkg-samba-maint] Bug#781913: please build bindings for Python3 and let samba-common-bin use them

2015-04-04 Thread Jelmer Vernooij
On Sat, Apr 04, 2015 at 08:03:19PM +0200, Matthias Klose wrote:
> On 04/04/2015 07:40 PM, Jelmer Vernooij wrote:
> > On Sat, Apr 04, 2015 at 07:31:59PM +0200, Matthias Klose wrote:
> >> Package: src:samba
> >> Version: 2:4.1.13+dfsg-4
> >>
> >> please build bindings for Python3 and let samba-common-bin use them
> > 
> > There are no Python3 bindings for Samba. Porting will be a large effort, 
> > and as
> > upstream we don't want to maintain support for two Python versions. 
> > 
> > What do you need the Python3 bindings for? Perhaps there are alternatives.
> 
> I was looking what is keeping Python2 on the Ubuntu desktop. For the samba
> bindings this is system-config-printer depending on gvfs-backends, depending 
> on
> samba-libs.

I think getting rid of the Python dependency in samba-libs is a much
easier to achieve goal here.

AFAICT The only reason that samba-libs depends on python is because
libsamba-net can do provisioning of a local DC (requires the 'samba'
package to be installed) by invoking the provision script using Python.

So if we could move that functionality out to a separate library that
is not included with samba-libs, we could drop the dependency on
python2 in samba-libs.

Jelmer

-- 
Jelmer Vernooij 
Debian Developer   https://jelmer.uk/


signature.asc
Description: Digital signature


Bug#781913: [Pkg-samba-maint] Bug#781913: please build bindings for Python3 and let samba-common-bin use them

2015-04-04 Thread Matthias Klose
On 04/04/2015 07:40 PM, Jelmer Vernooij wrote:
> On Sat, Apr 04, 2015 at 07:31:59PM +0200, Matthias Klose wrote:
>> Package: src:samba
>> Version: 2:4.1.13+dfsg-4
>>
>> please build bindings for Python3 and let samba-common-bin use them
> 
> There are no Python3 bindings for Samba. Porting will be a large effort, and 
> as
> upstream we don't want to maintain support for two Python versions. 
> 
> What do you need the Python3 bindings for? Perhaps there are alternatives.

I was looking what is keeping Python2 on the Ubuntu desktop. For the samba
bindings this is system-config-printer depending on gvfs-backends, depending on
samba-libs.


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org



Bug#781913: [Pkg-samba-maint] Bug#781913: please build bindings for Python3 and let samba-common-bin use them

2015-04-04 Thread Jelmer Vernooij
On Sat, Apr 04, 2015 at 07:31:59PM +0200, Matthias Klose wrote:
> Package: src:samba
> Version: 2:4.1.13+dfsg-4
> 
> please build bindings for Python3 and let samba-common-bin use them

There are no Python3 bindings for Samba. Porting will be a large effort, and as
upstream we don't want to maintain support for two Python versions. 

What do you need the Python3 bindings for? Perhaps there are alternatives.


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org