Hello everyone- Just a quick little blurb to anyone interested: I've spend some time packaging Samba4 for Ubuntu 12.04 and I believe it is finally "ready". A couple of notes about the package: - it is compiled from the 4.0.6 tarball available from Samba - it has packages for amd64 and i386* class machines - it requires various other non-stable class packages - it uses the file system hierarchy - BIND9_DLZ as a dns-backend has issues with replication between DCs due to a TKEY error that I have not figured out* * - it contains 2 totally unofficial, handcrafted patches -- very briefly one fixed an issue with environment variable substitution and the the other adds some flexibility to samba_dnsupdate to skip IP addresses If anyone wants to give it a try, all the necessary packages are available from here: ppa:xespackages/samba4 Though if you are not going to use bind, you can omit the "bind9-upstart" package. I'm going to be testing with it before it goes live at my place; however, any feedback -- either on the package itself or on the functionality of the resulting Samba install -- is greatly appreciated. A huge shout-out to the Samba Team for developing this software . A personal shout-out to Jelmer for his help in packaging matters . Have a good one, Mike Ray *I've only tested amd64 versions **these issues were also present for me in the source tarball so I am unsure as to whether or not this is a package issue or a Samba bug
On Fri, 2013-06-07 at 16:10 -0500, Mike Ray wrote:> Hello everyone- > > Just a quick little blurb to anyone interested: I've spend some time packaging Samba4 for Ubuntu 12.04 and I believe it is finally "ready". > > A couple of notes about the package: > > - it is compiled from the 4.0.6 tarball available from Samba > - it has packages for amd64 and i386* class machines > - it requires various other non-stable class packages > - it uses the file system hierarchy > - BIND9_DLZ as a dns-backend has issues with replication between DCs due to a TKEY error that I have not figured out* * > - it contains 2 totally unofficial, handcrafted patches -- very briefly one fixed an issue with environment variable substitution and the the other adds some flexibility to samba_dnsupdate to skip IP addresses > > > If anyone wants to give it a try, all the necessary packages are available from here: ppa:xespackages/samba4 > Though if you are not going to use bind, you can omit the "bind9-upstart" package. > > > I'm going to be testing with it before it goes live at my place; however, any feedback -- either on the package itself or on the functionality of the resulting Samba install -- is greatly appreciated. > > > A huge shout-out to the Samba Team for developing this software . > A personal shout-out to Jelmer for his help in packaging matters .Just wondering, are you basing it around the Debian experimental packages I've been working with the debian packaging team on? http://anonscm.debian.org/gitweb/?p=pkg-samba/samba.git;a=shortlog;h=refs/heads/samba_4.0 git://anonscm.debian.org/pkg-samba/samba.git (The reason I ask is that we need help finishing the work, and I'm trying to avoid double-work and get a finished package ready for everyone). Thanks, Andrew Bartlett -- Andrew Bartlett http://samba.org/~abartlet/ Authentication Developer, Samba Team http://samba.org
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"] 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