[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: How to build a 32-bit package in Debian?



Adam Borowski <kilobyte@angband.pl> writes:

> On Mon, Jan 17, 2011 at 11:49:17AM +0800, Paul Wise wrote:
>> On Mon, Jan 17, 2011 at 11:25 AM, Steve M. Robbins <steve@sumost.ca> wrote:
>> 
>> > What is the recommended course of action for such a package?
>> 
>> For now: build on a 32-bit system or in a 32-bit chroot.
>> 
>> Other options in increasing order of preference:
>> 
>> Add deps to ia32-libs.
>> 
>> Add lib32 packages for the deps.

Actually you need ia32-libs-dev and also gcc-multilib when you COMPILE a
32bit package. ia32-libs itself is only sufficient for building non-free
32bit packages with prebuild binaries.

Please file wishlist bugs about any missing libs.
 
>> Help fix squeeze RC bugs then start work on multi-arch when the wheezy
>> cycle starts.
>
> There's a wonderful thing called "xapt", aka "multi-arch working today". 
> Sadly, it can't be integrated into build-depends like real multi-arch will
> be, but getting all libraries you need is a matter of typing:
>
> # xapt -a pdp11 liblossage1 liblossage-dev

Please don't use xapt. That tool is so far purely for use in chroots
(for pbuilder) and for cross compiling. It does not handle any
dependencies between 32bit libs and the native packages. E.g. for shared
files, conffiles, scripts that need to call other binaries. So using it
to execute 32bit binaries will give verry poor results.

The right tool for this would be the old ia32-apt-get or the revised
apt-ma-emu. Saddly the squeeze freeze hit before apt-ma-emu was ready
for upload so it won't be in squeeze.

MfG
        Goswin


Reply to: