[Pkg-samba-maint] r1737 - trunk/samba/debian

Steve Langasek vorlon at debian.org
Mon Mar 10 08:00:34 UTC 2008


Hi Eloy!

On Sun, Mar 09, 2008 at 09:23:36PM -0400, Eloy Paris wrote:
> > +if [ -n "$2" ] && dpkg --compare-versions "$2" lt 3.0.28-2; then
> > +	if dpkg --compare-versions "$2" lt 3.0.26a-1 && [ "$2" != "${2%ubuntu*}" ]
> > +	then
> > +		base=dapper
> > +	elif [ "$2" != "${2%ubuntu*}" ]
> > +	then
> > +		base=gutsy
> > +	else
> > +		base=etch
> > +	fi

> I'm curious about this change...

> I guess this is part of the ucf change, but are there substantial
> differences between smb.conf.{dapper,etch,gutsy}? I am not familiar with
> ucf, but is the idea to support the same configuration file with some
> differences across different distributions and distribution releases?

Are the differences substantial?  I would argue that they are not, no.
However, to provide smooth conversion to ucf-managed config files with
support for three-way merging (the killer feature that makes ucf worth
considering), you need to have a valid baseline config to use, and this is
different for each of the three main upgrade paths I know of to the current
packages (dapper, gutsy, and etch).  So however trivial the differences
might be, for best results the initial ucf registration should be done using
the same template that applied at the time of installation (as best this can
be determined).

As soon as Ubuntu 8.04 releases with this support, we can drop the legacy
dapper and gutsy templates; and when Debian 5.0 releases, we can drop the
etch one as well.  In the meantime, just having the ucf support in place
means we can finally be proactive about tweaking things in smb.conf without
worrying about how to communicate these template changes to existing users -
so hopefully one of the side effects will be even greater convergence
between Debian and Ubuntu smb.conf files, for everyone's mutual benefit.

-- 
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 Developer                                    http://www.debian.org/
slangasek at ubuntu.com                                     vorlon at debian.org



More information about the Pkg-samba-maint mailing list