Bug#398404: Info received (pbuilder: switchable configuration files with "--use suffix" ...)

Osamu Aoki osamu at debian.org
Sun Jun 8 15:12:19 UTC 2008


As I read more about pbuilder source to get bpo optimized environment,
it looks to me what I propose initially is not scalable.

Also, handling of EXPERIMENTAL in pbuilder-createbuildenv seems to be
too ad-hoc.

Instead of playing with suffix, pbuilder-loadconfig should do something
like:

for RCFILE in /usr/share/pbuilder/${PBCONFIGSUFFIX}/pbuilderrc /etc/pbuilder/${PBCONFIGSUFFIX}/pbuilderrc ${HOME}/.pbuilder/${PBCONFIGSUFFIX}/pbuilderrc; do


Here, "classic" as default value for --use option value: ${PBCONFIGSUFFIX}

symlink as /etc/pbuilderrc -> /etc/classic/pbuilderrc

/usr/share/pbuilder/classic/pbuilderrc (current one) 

/usr/share/pbuilder/<use-target>/pbuilderrc (all special preset cases)
/usr/share/pbuilder/<use-target>/etc/apt/*  (all special preset cases)

Here, all <use-target>/pbuilderrc files set APTDIR to
/usr/share/pbuilder/<use-target>/etc/apt/

It could use some symlink to sae space as long as readlink is used
inscript.

System configuration overide files shall be
/etc/pbuilder/<use-target>/pbuilderrc
/etc/pbuilder/<use-target>/etc/apt/*  (populate with right contents)

Here, all /etc/pbuilder/<use-target>/pbuilderrc files set APTDIR to
/usr/share/pbuilder/<use-target>/etc/apt/

/etc/pbuilder/classic/pbuilderrc should also source
${HOME}/.pbuilderrc for compatibility.

Then make [ -n APTDIR ] condition to copy sources.list etc.

This should make it simpler and visible for user.  This makes it weasy
for user to figure out how pbuilder works...

Anyway, do not do tis now for sure.  Too rough.

> -- 
> 398404: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=398404
> Debian Bug Tracking System
> Contact owner at bugs.debian.org with problems
> 





More information about the Pbuilder-maint mailing list