Linux Archive

Linux Archive (http://www.linux-archive.org/)
-   Debian Development (http://www.linux-archive.org/debian-development/)
-   -   how to cross architecture build a package (http://www.linux-archive.org/debian-development/3922-how-cross-architecture-build-package.html)

"Ondrej Certik" 11-24-2007 12:30 AM

how to cross architecture build a package
 
On Nov 24, 2007 1:17 AM, Pierre Habouzit <madcoder@debian.org> wrote:
> On Sat, Nov 24, 2007 at 12:01:33AM +0000, Paul Wise wrote:
> > On Nov 24, 2007 6:14 AM, Alex Samad <alex@samad.com.au> wrote:
> >
> > > trying to build a i386 package on a amd64 machine and i keep getting
> >
> > Are you building in an i386 chroot? If not, try that. Adding
> > "--debootstrapopts --arch --debootstrapopts i386" to the
> > pbuilder/cowbuilder create command line should get you an i386 chroot,
> > or just run debootstrap with --arch i386.
>
> and when you build a package in there, wrap the
> debuild/dpkg-buildpackage/... call inside linux32.

Or use qemubuilder, follow the instructions here (find your case in
there - emulating i386 on amd64):

http://wiki.debian.org/qemubuilder

Ondrej


--
To UNSUBSCRIBE, email to debian-devel-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org

Steve Langasek 11-24-2007 01:01 AM

how to cross architecture build a package
 
On Sat, Nov 24, 2007 at 02:30:17AM +0100, Ondrej Certik wrote:
> On Nov 24, 2007 1:17 AM, Pierre Habouzit <madcoder@debian.org> wrote:
> > On Sat, Nov 24, 2007 at 12:01:33AM +0000, Paul Wise wrote:
> > > On Nov 24, 2007 6:14 AM, Alex Samad <alex@samad.com.au> wrote:

> > > > trying to build a i386 package on a amd64 machine and i keep getting

> > > Are you building in an i386 chroot? If not, try that. Adding
> > > "--debootstrapopts --arch --debootstrapopts i386" to the
> > > pbuilder/cowbuilder create command line should get you an i386 chroot,
> > > or just run debootstrap with --arch i386.

> > and when you build a package in there, wrap the
> > debuild/dpkg-buildpackage/... call inside linux32.

> Or use qemubuilder, follow the instructions here (find your case in
> there - emulating i386 on amd64):

> http://wiki.debian.org/qemubuilder

Which is inefficient, since there's no need to emulate i386 in software on
amd64.

--
Steve Langasek Give me a lever long enough and a Free OS
Debian Developer to set it on, and I can move the world.
vorlon@debian.org http://www.debian.org/


--
To UNSUBSCRIBE, email to debian-devel-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org


All times are GMT. The time now is 10:43 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.