[Buildd-tools-devel] sbuild/buildd and local wanna-build db
Roger Leigh
rleigh at whinlatter.ukfsn.org
Thu Dec 13 00:21:52 UTC 2007
Florian Lohoff <florian.lohoff at iwho.telefonica.de> writes:
> That one works so far - Now i am trying to get sbuild and buildd run
> together nicely. sbuild from sid (0.56) and buildd from svn (please kill
> the svn ASAP and update pointers from http://www.debian.org/devel/buildd/
> or make a real package with real bugtracking from it)
We are aiming to package it. You can find it at git.debian.org:
git clone git://git.debian.org/git/buildd-tools/buildd.git
However, it's not ready for actual use yet.
> A problem i now discovered is that buildd runs sbuild with
> "--auto-give-back". As i dont have a remote wanna-build its basically
> an empty argument which lets sbuild just return as the package is parsed
> as the wanna-build ssh command.
>
> /usr/bin/sbuild:
> 99 "auto-give-back=s" => sub {
> 100 $main::auto_giveback = 1;
> 101 if ($_[1]) {
> 102 my @parts = split( '@', $_[1] );
> 103 $main::auto_giveback_socket =
> 104 $parts[$#parts-3] if @parts > 3;
> 105 $main::auto_giveback_wb_user =
> 106 $parts[$#parts-2] if @parts > 2;
> 107 $main::auto_giveback_user =
> 108 $parts[$#parts-1] if @parts > 1;
> 109 $main::auto_giveback_host =
> 110 $parts[$#parts];
> 111 }
> 112 },
>
> /usr/bin/buildd:
> 470 my $sbuild_gb = '--auto-give-back';
> 471 if ($conf::sshcmd) {
> 472 $sbuild_gb .= "=";
> 473 $sbuild_gb .= "$conf::sshsocket\@" if $conf::sshsocket;
> 474 $sbuild_gb .= "$conf::wanna_build_user\@" if $conf::wanna_build_user;
> 475 $sbuild_gb .= "$main::sshuser\@" if $main::sshuser;
> 476 $sbuild_gb .= "$main::sshhost";
> 477 }
> 478 push ( @sbuild_args, $sbuild_gb );
> 479 push ( @sbuild_args, "--database=$conf::wanna_build_dbbase" )
> 480 if $conf::wanna_build_dbbase;
> 481
>
> The command line buildd executes is:
>
> /usr/bin/sbuild --batch --dist=kernel-trunk --auto-give-back linux-2.6_2.6.24~rc3-1~experimental.1~snapshot.9858
>
> which obviously breaks with the current sbuild (the one from svn survives this).
>
> GetOpt::Long interprets the package name/version as an option to --auto-give-back whereas the old sbuild
> used some "intelligent" reqexp to whether there is an equal sign ...
>
> Not that the sbuild would have any code to handle local wanna-builds in the later auto_giveback.
Yes. This is a place where there is some ugliness. Ideally, we
should fix the options so that there is a sane way of expressing the
auto-give-back stuff which works with Getopt::Long. This might also
include modifying the buildd code to pass slightly different options
to avoid this.
Packaging buildd properly has been on my TODO list for quite some
time. Due to divergence from the old sbuild codebase, buildd won't
work smoothly with the sbuild in unstable. It will need some work to
get a fully working system.
In the meantime, the sbuild provided with buildd should work for you,
i.e. not the one in unstable.
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: 188 bytes
Desc: not available
Url : http://lists.alioth.debian.org/pipermail/buildd-tools-devel/attachments/20071213/39a603a7/attachment.pgp
More information about the Buildd-tools-devel
mailing list