Using pkg to fetch packages for different ABI

Daniel Eischen deischen at freebsd.org
Wed Feb 3 01:21:58 UTC 2016


I want to use pkg to maintain a set of packages for nanobsd
systems that are a different OS version and ABI than the
host system.  Basically, I want to be able to do:

   # pkg fetch -d -r FreeBSD_10x_32 -o ./ <pkgname>

and have it fetch all the required packages for <pkgname>.

The host system is 10.2-RELEASE-p9 amd64, the target system
in this case is similar, but just x86, not amd64.  pkg is
version 1.6.2.

Trying to initially update the repo catalog gives this:

   # cat /usr/local/etc/pkg/repos/FreeBSD_10x_32.conf
   FreeBSD_10x_32: {
     ABI: "FreeBSD:x86:32"
     url: "pkg+http://pkg.FreeBSD.org/freebsd:10:x86:32/latest",
     mirror_type: "srv",
     signature_type: "fingerprints",
     fingerprints: "/usr/share/keys/pkg",
     enabled: yes
   }

   # pkg update -r FreeBSD_10x_32
   Updating FreeBSD_10x_32 repository catalogue...
   Fetching meta.txz: 100%    944 B   0.9kB/s    00:01
   Fetching packagesite.txz: 100%    5 MiB   2.8MB/s    00:02
   Processing entries:   0%
   pkg: wrong architecture: freebsd:10:x86:32 instead of FreeBSD:10:amd64
   pkg: repository FreeBSD_10x_32 contains packages with wrong ABI:  freebsd:10:x86:32
   Processing entries: 100%
   Unable to update repository FreeBSD_10x_32

Why does 'pkg' care what the ABI is unless we try to actually
install the packages?

-- 
DE


More information about the freebsd-ports mailing list