Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 3 Feb 2016 07:25:55 +0000
From:      Matthew Seaman <matthew@FreeBSD.org>
To:        freebsd-ports@freebsd.org
Subject:   Re: Using pkg to fetch packages for different ABI
Message-ID:  <56B1AB83.8080504@FreeBSD.org>
In-Reply-To: <Pine.GSO.4.64.1602022226210.15768@sea.ntplx.net>
References:  <Pine.GSO.4.64.1602021951080.15768@sea.ntplx.net> <CABW2x9pxeUwk%2BJqf-vFOTEZCThcUUM2gVTBFZxdArZrHB0=_xA@mail.gmail.com> <Pine.GSO.4.64.1602022226210.15768@sea.ntplx.net>

next in thread | previous in thread | raw e-mail | index | archive | help
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--



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