Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 7 Dec 2015 10:14:24 +0000
From:      Matthew Seaman <matthew@freebsd.org>
To:        freebsd-current@freebsd.org
Subject:   Re: pkg does not update the repo catalogue
Message-ID:  <56655C00.3000709@freebsd.org>
In-Reply-To: <20151207085043.GA3047@c720-r285885-amd64>
References:  <20151207085043.GA3047@c720-r285885-amd64>

next in thread | previous in thread | raw e-mail | index | archive | help
This is an OpenPGP/MIME signed message (RFC 4880 and 3156)
--7H2O8OQ2cJfCVfTXlad6i5nUG0jMqaDGX
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable

On 12/07/15 08:50, Matthias Apitz wrote:
>=20
> Hello,
>=20
> This is with 11-CURRENT and ports from July this year; I have the
> packages which I build with poudriere on some other host in a dir
> /usr/PKGDIR.20150726 and added 8 new packages there, the total number i=
s
> now 1691:
>=20
> # ls *.txz | egrep -v 'packagesite.txz|meta.txz|digests.txz' | wc -l=20
>     1691
>=20
> My repo definition is:
>=20
> # cat /usr/local/etc/pkg/repos/myrepo.conf
>            FreeBSD: {
>                url: "file:/usr/PKGDIR.20150726",
>                enabled: true,
>            }

There's no need to label your custom repo as 'FreeBSD' -- in fact, it's
probably better for you to use a distinct name, as the repo.conf files
accumulate for the same repo tag.  In this case you've possibly
inadvertently got pkg checking the pkg signatures against the default
FreeBSD repository keys, which isn't going to work for locally built
packages.

Just change the tag in the repo.conf to 'myrepo' and then check what
pkg(8) sees overall by running 'pkg -vv'.  You'll need to do a pkg
upgrade -f after that.

If you don't want to use the standard FreeBSD repo at all then you can
add a /usr/local/etc/repos/FreeBSD.conf containing

FreeBSD: { enabled: no }

> When I now want to update the 8 new packages to the repo catalogue, the=
y
> are not added (i.e. the number stays with 1683 and I also can not
> install them with 'pkg instal ...'):
>=20
> # pkg -v
> 1.5.5
> # pkg -R /usr/local/etc/pkg/repos/ update -f
> Updating FreeBSD repository catalogue...
> Fetching meta.txz: 100%    260 B   0.3kB/s    00:01   =20
> Fetching packagesite.txz: 100%  382 KiB 391.6kB/s    00:01   =20
> Processing entries: 100%
> FreeBSD repository update completed. 1683 packages processed.
>=20
> What I'm missing here?

If changing the repo tag doesn't fix the problem, try turning on some
debugging output:

   env DEBUG_LEVEL=3D4 pkg update -f

	Cheers,

	Matthew



--7H2O8OQ2cJfCVfTXlad6i5nUG0jMqaDGX
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"

-----BEGIN PGP SIGNATURE-----

iQIcBAEBCgAGBQJWZVwAAAoJEABRPxDgqeTn+IkQAKRCn9yqhJTohWcOJzlCeEf8
Wcztnuo9j+EOen3G8JIXC5wMg0d6No6UH5vdu4BGZRGkyu6n5YVeCFtseCYy02wH
bvNxzmDoZC+DYXialuXxnB4tqHW8l1d2pirP/27JQxOOpKZC/4X194SWMn2ohJQQ
61VgeCdoUUrWqanDKKyHzZ0q939cyHu3N/5L/ltDi/AdvfcasYoLt8UxeadsxEA5
ZXwr8QpcHIllGV54GFxQM+elZu72G/aTUFVNN2yj34kXZmXZTfXEdUcE1K18UMFs
V7/QG9wXU+R5hBtyYIMRDwikOhQ64OsT+AtNeJKkp61lsnBvUdTFS6DnhR00V3SG
J27Sm7kiAyfdcBHDYNZ6bqiNb/cSCz3K3hO+EwK8JQHRC3CrlY+kTNPcxACciJ3q
MWDZZX6dVoYEjeWzaQMj8Y+/c7Lh0oWhr6LF0u/lbgxl/PdLzzi/WDYZjFamvGI3
X4HUlUrhcJlcsLEtR9Keir9pjJ13RSAAPTHczAZjcDIL1GPcobYWDJOVf+Ympt1p
HeJ5mzq/kldiL5+J8reM4y2Cp+xantgixt/OoDM04r3KWOAtV0gt9dPmsCDZ1oHt
KDOpyrmkvv6+upil1s/48AgzHWRIqOMYI1LkUkORtepMGjiu2A9eo9XfnN+mQ60T
mxK6Gf0qeYS9TywkhB8s
=ZyCO
-----END PGP SIGNATURE-----

--7H2O8OQ2cJfCVfTXlad6i5nUG0jMqaDGX--



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