building samba 4.9.x with python > 2.6

Alex Braunegg alex.braunegg at gmail.com
Thu Apr 4 19:37:52 UTC 2019


The proposed patch still generates an error as compiled with 4.9.5:

ERROR(<type 'exceptions.IndexError'>): uncaught exception - tuple index out of range
  File "/usr/lib64/python2.6/site-packages/samba/netcmd/__init__.py", line 177, in _run
    return self.run(*args, **kwargs)
  File "/usr/lib64/python2.6/site-packages/samba/netcmd/domain.py", line 538, in run
    backend_store=backend_store)
  File "/usr/lib64/python2.6/site-packages/samba/provision/__init__.py", line 2316, in provision
    backend_store=backend_store)
  File "/usr/lib64/python2.6/site-packages/samba/provision/__init__.py", line 1921, in provision_fill
    names.domaindn, lp, use_ntvfs)
  File "/usr/lib64/python2.6/site-packages/samba/provision/__init__.py", line 1693, in setsysvolacl
    userdn = '<SID={1}-{2}>'.format(domainsid, security.DOMAIN_RID_ADMINISTRATOR)


I also have opened 13886 for 8 'invalid syntax' python errors that are generated when byte compiling the .py files when building the RPM files.

Best regards,

Alex

-----Original Message-----
From: Douglas Bagnall [mailto:douglas.bagnall at catalyst.net.nz] 
Sent: Thursday, 4 April 2019 9:26 AM
To: Alex Braunegg; samba-technical at lists.samba.org
Subject: Re: building samba 4.9.x with python > 2.6

On 4/04/19 11:05 AM, Alex Braunegg wrote:
> The error I am seeing comes from executing the binary as build via mock using the 4.9.4 release code.

What happened is the error message you see was not the same as the error
that finally got submitted into bugzilla, most likely because something
along the way decided to sanitise it for HTML.

There is a patch on the bug to try.

cheers
Douglas


> 
> Will attach the build log / root log to the bugzilla ticket.
> 
> -----Original Message-----
> From: Douglas Bagnall [mailto:douglas.bagnall at catalyst.net.nz] 
> Sent: Thursday, 4 April 2019 8:29 AM
> To: samba-technical at lists.samba.org; Alex Braunegg
> Subject: Re: building samba 4.9.x with python > 2.6
> 
> On 4/04/19 8:24 AM, Alex Braunegg via samba-technical wrote:
>> Hi all,
>>
>> Whilst I have submitted a bug for Samba 4.9.x not working (compiles without
>> issue) with Python 2.6 (13882) on CentOS 6.x, I am looking for suggestions
>> on how to re-configure my current rpm spec file or use a ./configure flag to
>> force samba to use python35 rather than the default version of python.
>>
>> Reading the docs / configure scripts etc, nothing is obvious to me where I
>> can say 'go use python version here' to build / compile against.
>>
>> Any suggestions are greatly appreciated.
> 
> The error reported in https://bugzilla.samba.org/show_bug.cgi?id=13882
> doesn't occur in any official Samba release, as far as I can tell. Is
> your spec file applying bad patches?
> 
> A number of Python 2.6 bugs have been fixed in the latest 4.9 and 4.10:
> 
> https://bugzilla.samba.org/show_bug.cgi?id=13837
> 
> but not this one, because it doesn't exist. I wouldn't be surprised if
> there are more hiding in code less travelled.
> 
> cheers,
> Douglas
> 




More information about the samba-technical mailing list