[buildd-tools-devel] Bug#657392: Bug#657392: sbuild: Automatically handle --arch=all

Daniel Dehennin daniel.dehennin at baby-gnu.org
Tue Feb 28 14:14:25 UTC 2012


Daniel Dehennin <daniel.dehennin at baby-gnu.org> writes:


[...]

> I'm fine with this I was just making a proposition to handle the case of
> avoiding the build of architecture dependent packages when building
> architecture independent ones.
>
> When I upload a source package to reprepro with 'Architecture: all any',
> I will have the following list with the 'build-needing' reprepro
> command:
>
> <PACKAGE> <VERSION> <DSC FILE> all
> <PACKAGE> <VERSION> <DSC FILE> i386
> <PACKAGE> <VERSION> <DSC FILE> amd64
>
> My reprepro « spooler script » is kept as simple as possible: spool to
> rebuildd for evry architectures listed.
>
> As I have several rebuildd daemon, I don't know which one may build the
> arch:all.
>
> So, to be as simple as possible, I need a way to:
>
> - build Architecture Independant packages only when rebuildd get
>   arch=all (dpkg-buildpackage -A)
>
> - build Architecture dependent packages only when rebuildd get arch!=all
>   (sbuild --no-arch-all == dpkg-buildpackage -B == the default)
>
> "sbuild -A" is not equivalent to "dpkg-buildpackage -A" and I don't see
> which combination of option does the job.


I found a solution:

- To only build arch independant packages: 
  sbuild -A --debbuildopt=-A -d  <DISTRIB> <DSC FILE>

- To only build arch dependent packages (by default in sbuild):
  sbuild -d <DISTRIB> <DSC FILE>


Regards.
-- 
Daniel Dehennin
Récupérer ma clef GPG:
gpg --keyserver pgp.mit.edu --recv-keys 0x6A2540D1
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/buildd-tools-devel/attachments/20120228/b306f874/attachment.pgp>


More information about the Buildd-tools-devel mailing list