Let pdebuild update build ev

Junichi Uekawa dancer at netfort.gr.jp
Mon Sep 17 00:32:56 UTC 2012


At Wed, 12 Sep 2012 05:46:35 +0200,
Werner Mahr wrote:
> 
> Am Dienstag, 11. September 2012, 10:49:25 schrieben Sie:
> > hmm.. I don't see this is useful ?
> 
> In my situtation it is usefull. I have stable, testing, natty and oneiric 
> machines for amd64 and i386. I could use hooks to update them when they get 
> used, but in that way the update wouldn't be saved (in qemubuilder the items 
> wouldn't even be cached). If I update them in a row, I can use the caching of 
> my proxy to save some time, but then I would have to find out in my script if I 
> would have to call qemubuilder or pbuilder.
> 
> Otoh when I build from cmdline, I don't need to update everytime when I build 
> something, so I have a command to call only one command and I'm done, instead 
> of going everytime trough an update, which would be the case with a hook (I'm 
> not sure if there is a cmdlineoption to let the builder do it everytime it is 
> called, but erverytime is to often).
> 
> I have an i386 machine, so at least in qemubuilder I really like to save every 
> command I can save, as it's much slower than a real machine.

Personally I use a wrapper script that does the following (update the
chroot if it's older than 1 day), you probably want something in the
line. apt-get update etc are slow so you'll probably want to avoid
running it every time.



# pdebuild-normal script for my use.
BASENAME=base.cow

for BASETGZ in $(find /var/cache/pbuilder/ -maxdepth 1 -name ${BASENAME} -mtime +1 -print); do
    sudo cowbuilder --update --basepath ${BASETGZ}
    sudo touch ${BASETGZ}
done

mkdir ~/pending/$(date +%Y%m%d)/ || true
pdebuild --debbuildopts "-I -i -j5 " --buildresult ~/pending/$(date +%Y%m%d)/ --pbuilder cowbuilder -- --hookdir /home/dancer/bin/pbuilder-hook


> 
> -- 
> MfG usw.
> 
> Werner Mahr
> 



More information about the Pbuilder-maint mailing list