[Samba] Samba 4.0.6 Ubuntu Package Available

Andrew Bartlett abartlet at samba.org
Mon Jun 10 16:15:30 MDT 2013


On Mon, 2013-06-10 at 11:37 -0500, Mike Ray wrote:
> Andrew-
> 
> After git-building the package with your debian directory (as it was
> at about 9:00 AM UTC-0600), I installed it and started comparing it to
> the package I had crafted.
> 
> There are a large number of differences, but almost all of them seem
> to stem from the work-arounds I implemented to cope with my lack of
> knowledge in package crafting. For instance, with the samba4_4.0.3
> +dfsg1-0.1 debian that we started with, certain variables and paths
> were not expanding properly which led to build failures; I remedied
> this problem by changing the install paths and associated rules.
> 
> It was barbaric methodology, but it did eventually pan out. Other than
> that though, our packages seem to both function (though one morning of
> light usage is not a fair trial); though I'm glad to have a proper
> install thanks to the git tree you linked.
> 
> One difference though that will matter is that wafsamba.py does not
> properly expand python as an environment variable when it preforms
> substitution on the interpreter line for samba_dnsupdate, samba_kcc,
> samba_spnupdate and samba_upgradedns. The interpreter line as is, will
> read "#!/usr/bin/python2.7# vim: expandtab" which causes the 'bad
> interpreter' error when invoked. 
> Changing wafsamba.py as follows seems to fix the issue:
> 
>      if task.env["PYTHON"][0] == "/":
> -        replacement_shebang = "#!%s" % task.env["PYTHON"]
> +        replacement_shebang = "#!%s\n" % task.env["PYTHON"]
>      else:
> -        replacement_shebang = "#!/usr/bin/env %s" %
> task.env["PYTHON"]
> +        replacement_shebang = "#!/usr/bin/env %s\n" %
> task.env["PYTHON"]

This was noticed recently, and will be fixed in the next 4.0 release.
The official patch is attached for curiosity, I'll ensure it's added
into the debian patches in the meantime. 

> I'm rebuilding the package I made available previously with the
> up-to-date debian folder as well as that newline fix and my unofficial
> exclude ip patch.
> 
> Thanks much for the help,
> Mike Ray

I'm very glad to help.  What we need from here is to finish the TODO
items listed in debian/TODO, and try and move this package to
experimental!  Please join the debian list and help out:
http://lists.alioth.debian.org/mailman/listinfo/pkg-samba-maint

Andrew Bartlett

-- 
Andrew Bartlett                                http://samba.org/~abartlet/
Authentication Developer, Samba Team           http://samba.org

-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-build-Add-missing-new-line-to-replaced-python-sheban.patch
Type: text/x-patch
Size: 1941 bytes
Desc: not available
URL: <http://lists.samba.org/pipermail/samba/attachments/20130611/b45de16d/attachment.bin>


More information about the samba mailing list