Date: Sun, 15 Jan 2017 00:45:21 +0300 From: Timon <timon@timon.net.nz> To: freebsd-ports@freebsd.org Subject: Re: Does building linux packages under poudriere require linux compatibility emulation? Message-ID: <c92bf18c-dfae-31e3-bb92-44168bca7de8@timon.net.nz> In-Reply-To: <82be98ff42ad41e6ba73927eb54ed2ce@ijs.si> References: <82be98ff42ad41e6ba73927eb54ed2ce@ijs.si>
next in thread | previous in thread | raw e-mail | index | archive | help
On 14/01/2017 03:07, Mark Martinec wrote:
> Does building such packages really require linuxilator configured
> on the build host ???
No, it doesn't require linuxulator to be configured, but require
linux.ko (and linux64.ko if your host is amd64) to be loaded. Poudriere
load linux.ko, but doesn't load linux64. Try this patch:
--- /usr/local/share/poudriere/common.sh.orig
+++ /usr/local/share/poudriere/common.sh
@@ -1686,6 +1686,9 @@ jail_start() {
if [ "${arch}" = "i386" -o "${arch}" = "amd64" ]; then
needfs="${needfs} linprocfs"
sysctl -n compat.linux.osrelease >/dev/null
2>&1 || kldload linux
+ if [ "${arch}" = "amd64" ]; then
+ kldload linux64
+ fi
fi
fi
[ -n "${USE_TMPFS}" ] && needfs="${needfs} tmpfs"
--
Aleksandr Matveev
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?c92bf18c-dfae-31e3-bb92-44168bca7de8>
