From owner-freebsd-ports@freebsd.org Wed Feb 3 07:26:18 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 98268A98CC4 for ; Wed, 3 Feb 2016 07:26:18 +0000 (UTC) (envelope-from matthew@FreeBSD.org) Received: from smtp.infracaninophile.co.uk (smtp.infracaninophile.co.uk [IPv6:2001:8b0:151:1:3cd3:cd67:fafa:3d78]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.infracaninophile.co.uk", Issuer "infracaninophile.co.uk" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 4165B8DC for ; Wed, 3 Feb 2016 07:26:18 +0000 (UTC) (envelope-from matthew@FreeBSD.org) Received: from liminal.local (liminal.infracaninophile.co.uk [IPv6:2001:8b0:151:1:3636:3bff:fed4:b0d6]) (authenticated bits=0) by smtp.infracaninophile.co.uk (8.15.2/8.15.2) with ESMTPSA id u137Q6jp050788 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NO) for ; Wed, 3 Feb 2016 07:26:06 GMT (envelope-from matthew@FreeBSD.org) Authentication-Results: smtp.infracaninophile.co.uk; dmarc=none header.from=FreeBSD.org DKIM-Filter: OpenDKIM Filter v2.10.3 smtp.infracaninophile.co.uk u137Q6jp050788 Authentication-Results: smtp.infracaninophile.co.uk/u137Q6jp050788; dkim=none; dkim-atps=neutral X-Authentication-Warning: lucid-nonsense.infracaninophile.co.uk: Host liminal.infracaninophile.co.uk [IPv6:2001:8b0:151:1:3636:3bff:fed4:b0d6] claimed to be liminal.local Subject: Re: Using pkg to fetch packages for different ABI To: freebsd-ports@freebsd.org References: From: Matthew Seaman X-Enigmail-Draft-Status: N1110 Message-ID: <56B1AB83.8080504@FreeBSD.org> Date: Wed, 3 Feb 2016 07:25:55 +0000 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.11; rv:38.0) Gecko/20100101 Thunderbird/38.5.1 MIME-Version: 1.0 In-Reply-To: Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="WLqkIprJxWTSMQdk9dOrAStr84l1VbFGa" X-Virus-Scanned: clamav-milter 0.99 at lucid-nonsense.infracaninophile.co.uk X-Virus-Status: Clean X-Spam-Status: No, score=-2.6 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00 autolearn=ham autolearn_force=no version=3.4.1 X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on lucid-nonsense.infracaninophile.co.uk 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 07:26:18 -0000 This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --WLqkIprJxWTSMQdk9dOrAStr84l1VbFGa Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable On 03/02/2016 03:37, Daniel Eischen wrote: > Interesting, that works. I would have thought setting it in > the repo.conf would have worked too, though. You'ld need to set ABI in pkg.conf rather than repo.conf > So, can I have one (1) repo.conf and use it for multiple ABIs, > like so?: >=20 > $ cat /usr/local/etc/pkg/repos/FreeBSD_10x.conf > FreeBSD_10x: { > url: "pkg+http://pkg.FreeBSD.org/${ABI}/latest > mirror_type: "srv", > signature_type: "fingerprints", > fingerprints: "/usr/share/keys/pkg", > enabled: yes > } This is not a good idea. You're better off having a series of different repo.conf files, one for each ABI you want to handle. Otherwise you risk ending up with a mish-mash of the various different repository catalogues in your ${PKGDIR}/repo-FreeBSD_10.sqlite DB. In fact, if you're going to be managing the package sets for a separate system image you'ld be better off using a custom PKGDIR specifically for that image, and keep the default /var/db/pkg for managing the packages on the parent host. Cheers, Matthew --WLqkIprJxWTSMQdk9dOrAStr84l1VbFGa Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG/MacGPG2 v2 iQJ7BAEBCgBmBQJWsauOXxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w ZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXQ2NTNBNjhCOTEzQTRFNkNGM0UxRTEzMjZC QjIzQUY1MThFMUE0MDEzAAoJELsjr1GOGkATljQP+KIT1wRSWBEQoaLYP9Ogg1vd jw6z/cSJdUQQcbkBKmU7E4ZtkY8zwUlzP5V4AV6iXziyKPUsBMWc8y+ImDxLcKum akCjv9QWRvuCy+/7kOVyOXMio6q2fFR+lNPiP0pD+km9HAEaHbjUjzI5b7hxLlm+ QcUv2/wWYzasSysZCt0bi2xD8NwaceepzpD4AqdeLyQ7YlcDAwknLikbbZkxwZgk pPGKGX6tziK6AXkh3YjwigQJA7LWs821vyzqwlkbsG2t+ZHegMG23jwdUgS+BFkJ h3Qj9ivwR5mBpMF9fcoTturoaxVzzYNSYPrzOKoANUBjhOmggDWAMNjhm02d73bd 1PeFaNf/9KnScekvlWhaBmKzJwXLfzPB9QuyJl6evAdMvelvDw9OBT31aXTy8PFt CsGBUCNqIkg5bfIo2d/C5dUGDoaSJ97t7c/ouKQvzgs5qP66MuSjCGkJlS+Azlz4 ww0VjnNlczNTJfGCY+dJCwQOS0fjlS3eTD9fKy/sDhyR9FUeGvnyZr4WIml/GT+r gsyzzyjm3ynuZ7RhjiXGhmGeGLsvBVE/pu2R4ndu8Crn7mP+PexQELBEhm1FQ6SE SI0O++7Jw2OmV8/0ZwdYasqM/tlkk/sdo60xS2bulxnKSRMXJ0tukfw45RGErYet geuzLBUmCut79x+mRWY= =kq8u -----END PGP SIGNATURE----- --WLqkIprJxWTSMQdk9dOrAStr84l1VbFGa--