[buildd-tools-devel] Multi-Architecture sources in w-b?

Cyril Brulebois cyril.brulebois at kerlabs.com
Sun Jul 5 18:40:25 UTC 2009


Hi,

shouldn't lib/WannaBuild/Database.pm's parse_sources sub be as clever as
lib/Sbuild/Build.pm's fetch_source_files one when it comes to checking
the Architecture field? For now, 69d754a712 fixed a warning, but the
actual problem wasn't addressed:
| $ grep -h ^Architecture /var/lib/apt/lists/*Sources|grep all|grep -v ': all'|wc -l
| 22

So it looks to me that:
|             if ($arch eq "all" && !version_less( $version, $pkg->{'Version'} )) {

has to be changed to check whether “all” is included in the list of
architectures. I think it could be written that way:
| grep {$_ eq "all"} split /\s+/, $arch

Not sure about proper ()-ing, and-ing, or &&-ing in Perl, so not
proposing a patch. ;)

If you want an example in sid/main:
| $ apt-cache showsrc smlnj|grep 'Architecture'
| Architecture: i386 amd64 powerpc all

Cheers,
-- 
Cyril Brulebois
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: Digital signature
URL: <http://lists.alioth.debian.org/pipermail/buildd-tools-devel/attachments/20090705/ff9ecba8/attachment.pgp>


More information about the Buildd-tools-devel mailing list