Re: pkg does not update the repo catalogue

From: Matthias Apitz <guru_at_unixarea.de>
Date: Mon, 7 Dec 2015 12:04:20 +0100
El día Monday, December 07, 2015 a las 10:14:24AM +0000, Matthew Seaman escribió:

> On 12/07/15 08:50, Matthias Apitz wrote:
> > 
> > Hello,
> > 
> > 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 is
> > now 1691:
> > 
> > # ls *.txz | egrep -v 'packagesite.txz|meta.txz|digests.txz' | wc -l 
> >     1691
> > 
> > My repo definition is:
> > 
> > # 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 }

I did both: renamed the entry to myrepo and added a new file:

# ls -l /usr/local/etc/pkg/repos/
total 8
-rw-r--r--  1 root  wheel   26  7 dic 11:30 FreeBSD.conf
-rw-r--r--  1 root  wheel  114  7 dic 11:21 myrepo.conf

# cat /usr/local/etc/pkg/repos/*

FreeBSD: { enabled: no }

           myrepo: {
               url: "file:/usr/PKGDIR.20150726",
               enabled: true,
           }

Now 'pkg -vv' shows only myrepo; the 'pkg upgrade -f' ended up with
reinstallation of all ~1000 packages;

but all this did not solved the problem;

> If changing the repo tag doesn't fix the problem, try turning on some
> debugging output:
> 
>    env DEBUG_LEVEL=4 pkg update -f

The output of STDERR is here: http://www.unixarea.de/pkg-stderr.txt
(4 MByte, 100.000 lines)

Thanks

	matthias

-- 
Matthias Apitz, ✉ guru_at_unixarea.de, 🌐 http://www.unixarea.de/  ☎ +49-176-38902045
Received on Mon Dec 07 2015 - 10:04:33 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:41:01 UTC