Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 07 Mar 2016 11:32:56 -0600
From:      Patrick Bowen <pbowen@fastmail.fm>
To:        freebsd-pkgbase@freebsd.org
Subject:   Re: [CFT] packaging the base system with pkg(8)
Message-ID:  <1457371976.4166495.542037666.6A318AB8@webmail.messagingengine.com>
In-Reply-To: <20160302235429.GD75641@FreeBSD.org>
References:  <20160302235429.GD75641@FreeBSD.org>

next in thread | previous in thread | raw e-mail | index | archive | help


On Wed, Mar 2, 2016, at 05:54 PM, Glen Barber wrote:

<snip> 
> 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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1457371976.4166495.542037666.6A318AB8>