On 21/02/09 at 12:33 +0000, Roger Leigh wrote: > Lucas Nussbaum wrote: >> On 01/10/08 at 17:11 +0100, Roger Leigh wrote: >>> Could you possibly explain what exactly you would like to do with this >>> feature? I would be happy to add some general mechanism to sbuild, >>> such as your patch, but I'd just like to understand the use case for it. >> >> Hi, >> >> Since that feature could help me as well, I'm jumping in and describing >> my use case. >> >> I often run rebuilds with two different "configurations", to be able to >> compare the results. For example: >> - stock Debian unstable >> - Debian unstable with newer GCC >> >> The "newer GCC" part is implemented by adding a line in >> /etc/apt/sources.list and running apt-get update && upgrade, so apt will: >> - install the newer GCC >> - if needed, install the newer deps not part of build-essential (think >> of GCJ). >> >> I implemented that by using two chroots: unstable and unstable-gcc. But >> it's painful to maintain both chroots, and it would be much more easier >> to customize my stock Debian unstable chroot before building, using a >> hook script. > > How would you prefer to choose which variant to use? Would you just > add/remove/alter the hook script
If I could run: sbuild --hook /tmp/myscript .... then it would be enough, I think. > , or would you like sbuild to be able to > pass something in the environment to customise the script so that you > can invoke sbuild with e.g. a new option which can set the desired > behaviour in your script. That would be nice, but not really necessary for me, I think. -- | Lucas Nussbaum | [email protected] http://www.lucas-nussbaum.net/ | | jabber: [email protected] GPG: 1024D/023B3F4F | -- To UNSUBSCRIBE, email to [email protected] with a subject of "unsubscribe". Trouble? Contact [email protected]

