From owner-freebsd-stable@freebsd.org Sun Jan 15 00:11:40 2017 Return-Path: Delivered-To: freebsd-stable@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id B9EEBCB0A39; Sun, 15 Jan 2017 00:11:40 +0000 (UTC) (envelope-from Mark.Martinec+freebsd@ijs.si) Received: from mail.ijs.si (mail.ijs.si [IPv6:2001:1470:ff80::25]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 6EAAD130A; Sun, 15 Jan 2017 00:11:40 +0000 (UTC) (envelope-from Mark.Martinec+freebsd@ijs.si) Received: from amavis-ori.ijs.si (localhost [IPv6:::1]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.ijs.si (Postfix) with ESMTPS id 3v1Gxj0hQJz1J6; Sun, 15 Jan 2017 01:11:37 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ijs.si; h= user-agent:message-id:references:in-reply-to:organization :subject:subject:from:from:date:date:content-transfer-encoding :content-type:content-type:mime-version:received:received :received:received; s=jakla4; t=1484439092; x=1487031093; bh=UpC s4rJqKTMiPifHs/ItdjQ3HZmBlzFQNg9Iv/wmEus=; b=kgJFajfg4rafkJEinby uhetG4iD/s0Uu6B8KHUCi6eAO5bV2d05/uRomnrG2xwl0g3yeJt0/fm1wvn3aAhK jYysHDXz91bl1nTLIXq4CQ/FtWO2wWP1tQmTSQEHu3WZqdjldLft4pBbcFQBf7vY DVG67HArdkVx/GGNGVyPYDcw= X-Virus-Scanned: amavisd-new at ijs.si Received: from mail.ijs.si ([IPv6:::1]) by amavis-ori.ijs.si (mail.ijs.si [IPv6:::1]) (amavisd-new, port 10026) with LMTP id wNoKhgTs9v2M; Sun, 15 Jan 2017 01:11:32 +0100 (CET) Received: from mildred.ijs.si (mailbox.ijs.si [IPv6:2001:1470:ff80::143:1]) by mail.ijs.si (Postfix) with ESMTP id 3v1Gxc6q8pz1J5; Sun, 15 Jan 2017 01:11:32 +0100 (CET) Received: from nabiralnik.ijs.si (nabiralnik.ijs.si [IPv6:2001:1470:ff80::80:16]) by mildred.ijs.si (Postfix) with ESMTP id 3v1Gxc5GqYz15b; Sun, 15 Jan 2017 01:11:32 +0100 (CET) Received: from upc.si.94.140.92.23.dc.cable.static.telemach.net ([94.140.92.23]) by webmail.ijs.si with HTTP (HTTP/1.1 POST); Sun, 15 Jan 2017 01:11:32 +0100 MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Date: Sun, 15 Jan 2017 01:11:32 +0100 From: Mark Martinec To: freebsd-ports@freebsd.org, freebsd-stable@freebsd.org Subject: Re: Does building linux packages under poudriere require linux compatibility emulation? Organization: Jozef Stefan Institute In-Reply-To: References: <82be98ff42ad41e6ba73927eb54ed2ce@ijs.si> Message-ID: <427b7ee73e7155eb3e0584593d9e4ecd@ijs.si> X-Sender: Mark.Martinec+freebsd@ijs.si User-Agent: Roundcube Webmail/1.2.3 X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 15 Jan 2017 00:11:40 -0000 Thanks to all who responded, makes perfect sense now. Paul Mather wrote: > 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" I do have NOLINUX=yes commented out, as is a default. 2017-01-14 22:45 Timon wrote: > 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" Great, that seems to do the trick! (actually, I just loaded the linux64 kmodule, did not try to apply the patch). Thanks! Looks like the poudriere/common.sh needs this patch. Mark