[buildd-tools-devel] Recent changes

Roger Leigh rleigh at codelibre.net
Thu Mar 10 22:42:55 UTC 2011


On Thu, Mar 10, 2011 at 01:28:20AM +0000, Roger Leigh wrote:
> Changes on my current TODO list for the next day or so:
> 
> - log filtering; filter out build-specific paths e.g. replacing
>   /build/rleigh-dadadodo_1.04-3.1-amd64-xubcGh
>   with /dadadodo to reduce the noise when diffing build logs,
>   and to make them more readable.

Done.  Also added colour syntax highlighting when running interactively
on a TTY (not to logs) to highlight important things like errors,
build failure/success etc.  They are sometimes hard to spot, and this
just makes them stand out.

> - reduce path length of build dir.  Can cause issues on some arches,
>   particularly WRT SYSV shm/sem.  Since we have a random part in
>   /build/rleigh-dadadodo_1.04-3.1-amd64-xubcGh we could remove some
>   of the extra information and reduce it e.g. to
>   /build/dadadodo-xubcGh (or even just /build/xubcGh since the
>   actual dadadodo build dir is inside).

Done.  It's now /build/$package-XXXXXX e.g. /build/dadadodo-sLAcda.

> - improve SIGTERM error handling.  Currently does some rather
>   complex stuff and does not clean up the chroot.  Now we have
>   exception support, we can just set an abort flag in the build
>   object and kill dpkg-buildpackage if running, and have a
>   function in the build object to poll the flag and throw an
>   exception if set.  This will make it run all the usual cleanup so
>   hitting ctrl-c won't require cleaning up the mess left in the
>   chroot with e.g. debfoster.

Done.  SIGTERM/SIGINT etc. now just set a flag in the build object,
and the flag is polled regularly during the build.  If triggered,
an exception is thrown and the build is cleaned up.  During running
dpkg-buildpackage, the log loop checks the flag once for each line
logged during the build, which will be fairly frequently for most
builds, and in this case will directly abort dpkg-buildpackage and
then go to cleanup.

> - Completely drop WannaBuild given that it's been in a separate
>   repo for some time now?

Now also done.  It was verified to be broken, and wanna-build.git
is there for those that need it.


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/20110310/14ea6fe4/attachment-0001.pgp>


More information about the Buildd-tools-devel mailing list