[buildd-tools-devel] Bug#609932: Bug#609932: Bug#609932: Bug#609932: sbuild now runs apt-get update automatically while building

Roger Leigh rleigh at codelibre.net
Sun Feb 27 14:04:27 UTC 2011


tags 609932 + fixed-upstream pending
thanks

On Sun, Jan 16, 2011 at 02:48:35PM +0000, Roger Leigh wrote:
> > Also, = 0 seems to be the default, in sbuild.conf, which is also
> > misleading.
> 
> Quite a number of the sbuild.conf defaults need re-synching with the
> current defaults.  Ideally, I'd like to autogenerate the entire
> file from the configuration class.  The sticking point is the
> mapping between the internal name and the variable name e.g.
> 
>   APT_UPGRADE ←→ $apt_upgrade
> 
> If we could automatically insert the vars into the symbol table, we
> could provide both the help text and variable name directly with the
> defaults like so:
> 
>         'APT_UPGRADE'                           => {
>             DEFAULT => 1,
> 	    SYMBOL => '$apt_upgrade',
> 	    DESC => 'APT upgrade.  1 to enable running "apt-get upgrade" at the start of each build, or 0 to disable.'
>         },
> 
> This would make the configuration much more robust (currently, it needs
> three separate bits to be altered: the definition as above, the symbol
> definition, and the setting logic.  This would require some perl-fu to
> directly alter the symbol table.

This work has been done for sbuild.conf, and is now on git master.
- sbuild.conf is automatically generated, and contains the current
  defaults [note some defaults are user-specific, so it's not yet
  perfect, but all the important ones like in this bug report are
  correct]
- sbuild.conf(5) has been added, which contains the same information
  but is actual proper documentation

This should address the main issue in the bug report, namely that the
defaults will always be reported.  I'll also make more effort to
mention changed defaults in the debian/changelog where they have impact
on end users, otherwise they will always be in the upstream changelog.


Regards,
Roger

-- 
  .''`.  Roger Leigh
 : :' :  Debian GNU/Linux             http://people.debian.org/~rleigh/
 `. `'   Printing on GNU/Linux?       http://gutenprint.sourceforge.net/
   `-    GPG Public Key: 0x25BFB848   Please GPG sign your mail.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://lists.alioth.debian.org/pipermail/buildd-tools-devel/attachments/20110227/7ad13562/attachment.pgp>


More information about the Buildd-tools-devel mailing list