Does building linux packages under poudriere require linux compatibility emulation?

Paul Mather paul at gromit.dlib.vt.edu
Sat Jan 14 16:26:53 UTC 2017


On Jan 14, 2017, at 9:11 AM, Tijl Coosemans <tijl at FreeBSD.org> wrote:

> On Sat, 14 Jan 2017 01:07:09 +0100 Mark Martinec <Mark.Martinec+freebsd at ijs.si> wrote:
>> When building packages under poudriere on 11.0-RELEASE-p7 (from a 
>> command line in a terminal window) I'm noticing occasional streams of
>> diagnostic:
>> 
>>   ELF binary type "3" not known.
>> 
>> which seem to be related to building some linux packages (example below,
>> parallel builds). Poudriere still reports success for these builds.
>> 
>> The host where poudriere is running does not have linux.ko loaded.
>> 
>> Does building such packages really require linuxilator configured
>> on the build host ???
> 
> To build a package, its dependencies need to be installed and on
> installation some packages may need to run certain commands and for
> linux packages these commands may be linux programs.  So, yes, if you
> need to build linux packages the build host should have USE_LINUX=yes
> in /etc/rc.conf.


The only thing you need on the host is to have the linux kernel module loaded.  (You don't need to have any Linux packages installed there.)  The default setting in /usr/local/etc/poudriere.conf is to have NOLINUX=yes commented out, i.e., Linux support in Poudriere is enabled unless you explicitly disable it.

The easiest way to load the linux kernel module on the host for use with Poudriere is to add it to the "kld_list" setting in /etc/rc.conf, e.g.,

	kld_list="linux"


Cheers,

Paul.


More information about the freebsd-ports mailing list