From owner-freebsd-ports@freebsd.org Sat Jan 14 16:26:53 2017 Return-Path: Delivered-To: freebsd-ports@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 6B9EECAF91B for ; Sat, 14 Jan 2017 16:26:53 +0000 (UTC) (envelope-from paul@gromit.dlib.vt.edu) Received: from mailman.ysv.freebsd.org (unknown [127.0.1.3]) by mx1.freebsd.org (Postfix) with ESMTP id 57D091ECA for ; Sat, 14 Jan 2017 16:26:53 +0000 (UTC) (envelope-from paul@gromit.dlib.vt.edu) Received: by mailman.ysv.freebsd.org (Postfix) id 54051CAF91A; Sat, 14 Jan 2017 16:26:53 +0000 (UTC) Delivered-To: ports@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 53945CAF919; Sat, 14 Jan 2017 16:26:53 +0000 (UTC) (envelope-from paul@gromit.dlib.vt.edu) Received: from gromit.dlib.vt.edu (gromit.dlib.vt.edu [128.173.126.120]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "gromit.dlib.vt.edu", Issuer "Chumby Certificate Authority" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 326CE1EC9; Sat, 14 Jan 2017 16:26:53 +0000 (UTC) (envelope-from paul@gromit.dlib.vt.edu) Received: from mather.chumby.lan (c-71-63-91-41.hsd1.va.comcast.net [71.63.91.41]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by gromit.dlib.vt.edu (Postfix) with ESMTPSA id 23DEB861; Sat, 14 Jan 2017 11:26:46 -0500 (EST) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 9.3 \(3124\)) Subject: Re: Does building linux packages under poudriere require linux compatibility emulation? From: Paul Mather In-Reply-To: <20170114151142.205b9b4b@kalimero.tijl.coosemans.org> Date: Sat, 14 Jan 2017 11:26:45 -0500 Cc: Mark Martinec , ports@freebsd.org, freebsd-stable@freebsd.org Content-Transfer-Encoding: quoted-printable Message-Id: <308E7994-9C4F-462F-B7AD-8CB88D00B4B5@gromit.dlib.vt.edu> References: <82be98ff42ad41e6ba73927eb54ed2ce@ijs.si> <20170114151142.205b9b4b@kalimero.tijl.coosemans.org> To: Tijl Coosemans X-Mailer: Apple Mail (2.3124) X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 14 Jan 2017 16:26:53 -0000 On Jan 14, 2017, at 9:11 AM, Tijl Coosemans wrote: > On Sat, 14 Jan 2017 01:07:09 +0100 Mark Martinec = wrote: >> When building packages under poudriere on 11.0-RELEASE-p7 (from a=20 >> command line in a terminal window) I'm noticing occasional streams of >> diagnostic: >>=20 >> ELF binary type "3" not known. >>=20 >> which seem to be related to building some linux packages (example = below, >> parallel builds). Poudriere still reports success for these builds. >>=20 >> The host where poudriere is running does not have linux.ko loaded. >>=20 >> Does building such packages really require linuxilator configured >> on the build host ??? >=20 > 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=3Dyes > 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=3Dyes 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=3D"linux" Cheers, Paul.=