tech-pkg archive

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

Re: Installing 32-bit packages on 64-bit systems



Pierre Pronchery <khorben%defora.org@localhost> writes:

>                       Hi,
>
> On 05/08/2014 13:05, Greg Troxel wrote:
>>
>> Robert Swindells <rjs%fdy2.co.uk@localhost> writes:
>>
>>> Do we have an easy way to install a 32-bit NetBSD binary package
>>> on a 64-bit NetBSD system ?
>>>
>>> As an example, I would like to be able to pkg_add a i386 build
>>> of x11/motif on an amd64 machine and have it end up under
>>> /usr/pkg/lib/i386 along with i386 builds of any other libraries
>>> it needs like png and jpeg.
>>
>> I don't think that will work.
>>
>> An emul chroot might, as Ottavio suggests.
>>
>> The problem with mixing i386/amd64 in the same /usr/pkg is that
>> each wants to link with dependencies from pkgsrc, so you end up
>> needing i386 dependencies as well.   So I think you really need too
>> trees.
>
> What about pkg_add's -K and -p options, to specify an alternative
> package database and override the default prefix?

That might do it.  But scripts run at install time might not respect the
overridden prefix, as this code path is likely not tested.   And they
might call commands that change the host system rather than the emul
destdir.  Avoiding bugs like that is why I suggested doing the pkg_add
in a chroot.

Attachment: pgpobfyM01HkW.pgp
Description: PGP signature



Home | Main Index | Thread Index | Old Index