From owner-freebsd-ports@freebsd.org Wed Feb 3 01:21:58 2016 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 11812A992C1 for ; Wed, 3 Feb 2016 01:21:58 +0000 (UTC) (envelope-from deischen@freebsd.org) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id 01F6ED46 for ; Wed, 3 Feb 2016 01:21:58 +0000 (UTC) (envelope-from deischen@freebsd.org) Received: by mailman.ysv.freebsd.org (Postfix) id F3ABAA992BE; Wed, 3 Feb 2016 01:21:57 +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 F33F5A992BC for ; Wed, 3 Feb 2016 01:21:57 +0000 (UTC) (envelope-from deischen@freebsd.org) Received: from mail.netplex.net (mail.netplex.net [204.213.176.9]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "*.netplex.net", Issuer "RapidSSL SHA256 CA - G3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id C2C49D45 for ; Wed, 3 Feb 2016 01:21:57 +0000 (UTC) (envelope-from deischen@freebsd.org) Received: from sea.ntplx.net (sea.ntplx.net [204.213.176.11]) by mail.netplex.net (8.15.1/8.15.1/NETPLEX) with ESMTP id u131LnuV039098 for ; Tue, 2 Feb 2016 20:21:49 -0500 X-Virus-Scanned: by AMaViS and Clam AntiVirus (mail.netplex.net) X-Greylist: Message whitelisted by DRAC access database, not delayed by milter-greylist-4.4.3 (mail.netplex.net [204.213.176.9]); Tue, 02 Feb 2016 20:21:49 -0500 (EST) Date: Tue, 2 Feb 2016 20:21:49 -0500 (EST) From: Daniel Eischen X-X-Sender: eischen@sea.ntplx.net Reply-To: Daniel Eischen To: ports@freebsd.org Subject: Using pkg to fetch packages for different ABI Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 03 Feb 2016 01:21:58 -0000 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 ./ and have it fetch all the required packages for . 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