[buildd-tools-devel] Bug#610689: Bug#610689: Bug#610689: sbuild: cross support

Roger Leigh rleigh at codelibre.net
Sat Jan 22 23:49:08 UTC 2011


On Sat, Jan 22, 2011 at 11:16:44PM +0000, Hector Oron wrote:
> Hi,
> 
> 2011/1/22 Roger Leigh <rleigh at codelibre.net>:
> 
> > I've attached a patch (against sbuild git master, also on the
> > cross-build branch of git://git.debian.org/users/rleigh/sbuild.git)
> > which adds --host and --build options and then uses the correct
> > host or build arch in the appropriate places.  While I've tested
> > everything still works fine for normal non-cross builds, this will
> > need testing for cross builds to make sure I've not got the
> > host/build arch mixed up in any places (since I will not have
> > picked any error up when they are both the same).
> 
> Thanks, that was quick...
> 
> From a quick glance, the package is missing automake (and autotools-dev)
> build dependency. It also fails to run bootstrap code...
> 
> make: *** No rule to make target `configure', needed by
> `debian/build/config.status'.  Stop.
> dpkg-buildpackage: error: debian/rules build gave error exit status 2
> 
> Maybe a
> configure:
>    ./bootstrap
> was forgotten on the debian/rules file?

No, this is intended.  The debian packaging builds from the release
tarball, not the plain git repo, which needs "make dist" running to
generate the release tarball (as for most upstream projects--it's not
Debian native).
If you run the top-level ./bootstrap from the git repository, it will
set things up and then autoreconf (it gets the version from NEWS and
the release metadata out of git).

> zumbi at cat:~$ sudo sbuild -d sid_amd64 hello_2.6-1
> Argument "amd64" isn't numeric in numeric ne (!=) at
> /usr/share/perl5/Sbuild/Build.pm line 1809.

Fixed in git on cross-build.

> Use of uninitialized value $ver in hash element at
> /usr/share/perl5/Sbuild/InternalResolver.pm line 558, <$pipe> line 7.

This one I'm not sure about yet; I'll take a better look tomorrow.
I didn't test with "internal" because it most likely can't be made
to work to install cross-build dependencies.

> When trying --host and --build options I get:
> zumbi at cat:~$ sudo sbuild -d sid_amd64 --host=armel --build=amd64 hello_2.6-1

As I mentioned to Loïc, I messed up and confused the host/build.
I'll fix up that and the other issues and then hopefully have a
better place to start testing!

The internal resolver errors look the same as without cross-building.


Many thanks for testing!  I'll get back to you with something better
as soon as I can.


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: 198 bytes
Desc: Digital signature
URL: <http://lists.alioth.debian.org/pipermail/buildd-tools-devel/attachments/20110122/63d11fe4/attachment.pgp>


More information about the Buildd-tools-devel mailing list