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

Andres Mejia mcitadel at gmail.com
Mon Jul 19 20:35:16 UTC 2010


On Monday 19 July 2010 15:29:22 Andreas Barth wrote:
> * Andres Mejia (mcitadel at gmail.com) [100719 21:03]:
> > On Monday 19 July 2010 14:43:34 Andreas Barth wrote:
> > > * Andres Mejia (mcitadel at 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.

Well, the debarch_is() function from Dpkg::Arch could probably help with this. 
That's what my patch for quinn-diff was using.

Aside from that, I probably can't help you anymore with this.

> 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

-- 
Regards,
Andres Mejia



More information about the Buildd-tools-devel mailing list