From owner-freebsd-pkgbase@freebsd.org Mon Mar 7 17:32:58 2016 Return-Path: Delivered-To: freebsd-pkgbase@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 F3B93AC2BB4 for ; Mon, 7 Mar 2016 17:32:57 +0000 (UTC) (envelope-from pbowen@fastmail.fm) Received: from out5-smtp.messagingengine.com (out5-smtp.messagingengine.com [66.111.4.29]) (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 B343FE33 for ; Mon, 7 Mar 2016 17:32:57 +0000 (UTC) (envelope-from pbowen@fastmail.fm) Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.nyi.internal (Postfix) with ESMTP id 6CB8F20B77 for ; Mon, 7 Mar 2016 12:32:56 -0500 (EST) Received: from web5 ([10.202.2.215]) by compute3.internal (MEProxy); Mon, 07 Mar 2016 12:32:56 -0500 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=fastmail.fm; h= content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-sasl-enc :x-sasl-enc; s=mesmtp; bh=fhTpHTSXStToIXcna0z04RSmvoA=; b=oQ+M3S 4ToPmy6MqSpmOa6AlNfpU+dadL3WJAKa3bDYvZiQh9iap4KbT0XRq0DeW5YERGAP LErr0GQ+52SpOdzNe2LoBuBz9VqmhZfZH8KIELEuQeSvDeaAGyAgo6aHsvHMhqB5 ZK5RAnaXlnc+z+AgySDrUSsqhiRUDLWk/ryGg= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-sasl-enc:x-sasl-enc; s=smtpout; bh=fhTpHTSXStToIXc na0z04RSmvoA=; b=VtPQYQC8Xer2tWuVMGB5ucl5s3cCEGniUnEpPZ1b6qYNhw6 jIGQ8Zbgql30BgUWKT4eg8mBX7J8WZ10LPo2wtOLzsg1Ncv2TtX7XNNZrDWpQqob /xutSJrliUv2gKrEwqSpVQSjxUwXV9lGROoHdz0nVyvgsb0PnBgiM6m/qx2o= Received: by web5.nyi.internal (Postfix, from userid 99) id 3B91BA6322E; Mon, 7 Mar 2016 12:32:56 -0500 (EST) Message-Id: <1457371976.4166495.542037666.6A318AB8@webmail.messagingengine.com> X-Sasl-Enc: KIfOJSSRAHBBAxRR4I1Pl/ItegE/aSW0J3P5/ajwTQJa 1457371976 From: Patrick Bowen To: freebsd-pkgbase@freebsd.org MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain X-Mailer: MessagingEngine.com Webmail Interface - ajax-df15e059 Subject: Re: [CFT] packaging the base system with pkg(8) Date: Mon, 07 Mar 2016 11:32:56 -0600 In-Reply-To: <20160302235429.GD75641@FreeBSD.org> References: <20160302235429.GD75641@FreeBSD.org> X-BeenThere: freebsd-pkgbase@freebsd.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Packaging the FreeBSD base system." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 07 Mar 2016 17:32:58 -0000 On Wed, Mar 2, 2016, at 05:54 PM, Glen Barber wrote: > To obtain the sources for testing, please use the projects/release-pkg > branch: > > # svn co svn://svn.freebsd.org/base/projects/release-pkg /usr/src > > The projects/release-pkg branch is (at this time) in sync with head > revision r296327. > > After checking out the project branch, build the userland and kernel as > normal with the 'buildworld' and 'buildkernel' targets. Afterward, > packages can be created with the 'packages' target. > > # cd /usr/src > # make [make flags] buildworld > # make [make flags] buildkernel > # make packages > > At present, the base system consists of 755 packages with the default > build (empty src.conf(5) and make.conf(5)) for amd64. The number of > packages depends on several factors, but for most cases a runtime binary > is split into several components. In particular, most shared libraries > are individually packaged, in addition to debugging symbols, profiling > libraries, and 32-bit packaged separately. > > The package repository will be created within /usr/obj/usr/src/repo by > default. > > To enable the repository, create /usr/local/etc/pkg/repos/base.conf with > the following contents: > > # FreeBSD base system repository > FreeBSD-base: { > url: "file:///usr/obj/usr/src/repo/${ABI}/latest", > mirror_type: "none", > enabled: yes > } > > To initially bootstrap the 'FreeBSD-*' packages, they must be forcibly > installed. Package registration is not performed during 'installworld' > or 'installkernel', and there are no immediate plans to do this. > > This can be done by running: > > # pkg update -r FreeBSD-base > # pkg install -g 'FreeBSD-*' > (/snip) Compiles and runs without any problems on a six year old HP G60, although I initially had kldxref errors running "make packages" right after "make buildkernel" (i.e. kldxref: unknown metadata record 4 in file atacard.ko). Worked fine after running canonical build and install of world and kernel, then "make packages". CPU: Pentium(R) Dual-Core CPU T4200 @ 2.00GHz (1995.05-MHz K8-class CPU) Origin="GenuineIntel" Id=0x1067a Family=0x6 Model=0x17 Stepping=10 uname -a; FreeBSD voldemort 11.0-CURRENT FreeBSD 11.0-CURRENT #0 r296434: Sun Mar 6 22:03:18 CST 2016 root@voldemort:/usr/obj/usr/src/sys/GENERIC amd64 As an simple test, "pkg remove FreeBSD-vi" works as well as "pkg install FreebSD-vi". Haven't tried "pkg remove FreeBSD-*" yet :) -- Patrick Bowen pbowen@fastmail.fm