[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: [buildd-tools-devel] Architecture wildcard support in wanna-build



* Andres Mejia (mcitadel@gmail.com) [100719 21:03]:
> On Monday 19 July 2010 14:43:34 Andreas Barth wrote:
> > * Andres Mejia (mcitadel@gmail.com) [100719 20:30]:
> > > One thing that I think will also be needed for proper architecture
> > > wildcard support will be to allow architecture wildcards for
> > > Packages-arch-specific. This requires fixing architecture wildcard
> > > support in quinn-diff, specifically bug #560058.
> > 
> > We don't use quinn-diff anymore.

> Oh ok. Well I'm curious. How is Packages-arch-specific handled now?

>From this commit on,
commit 15410f04a42f2314ac2c8c2c6cea83d1d179b857
Author: Andreas Barth
Date:   Fri Jun 4 10:04:54 2010 +0000

    add merge-v3:
    + call with installed-packages+ . installed-sources+ [ . available-for-build-packages+ ]
    + can cope with any filetype (including compressed)
    + allows to specify installed packages which are not available for building (and the other way round)
    + does quinn-diff internally, for that:
      + add WB/QD.pm plus testcase in tests/qd.pl
    + reads packages / sources only once
    + uses edos to resolve dep-waits
    + respect $simulate

the suites started to use perl code to parse Packages and Sources
(only) step by step, and now all are converted. (And the call was
changed to
installed-packages+ . installed-sources+ [ .  available-for-build-packages+ [ . sources-installed+ ] ]
(4th are packages like the testing sources for tpu)


The WB::QD needs to be adjusted for architecture wildcards, but that's
another topic.

On the source package level, the only place where the architecture is
striped currently is
sub filterarch {
    return "" unless $_[0];
    return Dpkg::Deps::parse($_[0], ("reduce_arch" => 1, "host_arch" => $_[1]))->dump();
}

On the binary package level, we don't filter the files at all, so to
get that working (e.g. for binary-all-packages) edos needs to be
adjusted. In case edos gets adjusted, we can just drop the
filterarch-function in total.


The current wanna-build version is available via
http://buildd.debian.org/git/wanna-build.git/



Andi


Reply to: