From owner-freebsd-current@freebsd.org Mon Dec 7 11:04:33 2015 Return-Path: Delivered-To: freebsd-current@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 5367E9B916C for ; Mon, 7 Dec 2015 11:04:33 +0000 (UTC) (envelope-from guru@unixarea.de) Received: from ms-10.1blu.de (ms-10.1blu.de [178.254.4.101]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 17EE91D7B for ; Mon, 7 Dec 2015 11:04:32 +0000 (UTC) (envelope-from guru@unixarea.de) Received: from [93.104.2.212] (helo=localhost.unixarea.de) by ms-10.1blu.de with esmtpsa (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.76) (envelope-from ) id 1a5taf-0002RB-PZ for freebsd-current@freebsd.org; Mon, 07 Dec 2015 12:04:23 +0100 Received: from localhost.my.domain (c720-r285885-amd64 [127.0.0.1]) by localhost.unixarea.de (8.15.2/8.14.9) with ESMTPS id tB7B4LXg001772 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO) for ; Mon, 7 Dec 2015 12:04:21 +0100 (CET) (envelope-from guru@unixarea.de) Received: (from guru@localhost) by localhost.my.domain (8.15.2/8.14.9/Submit) id tB7B4KJu001771 for freebsd-current@freebsd.org; Mon, 7 Dec 2015 12:04:20 +0100 (CET) (envelope-from guru@unixarea.de) X-Authentication-Warning: localhost.my.domain: guru set sender to guru@unixarea.de using -f Date: Mon, 7 Dec 2015 12:04:20 +0100 From: Matthias Apitz To: freebsd-current@freebsd.org Subject: Re: pkg does not update the repo catalogue Message-ID: <20151207110420.GA1590@c720-r285885-amd64> Reply-To: Matthias Apitz Mail-Followup-To: Matthias Apitz , freebsd-current@freebsd.org References: <20151207085043.GA3047@c720-r285885-amd64> <56655C00.3000709@freebsd.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <56655C00.3000709@freebsd.org> X-Operating-System: FreeBSD 11.0-CURRENT r285885 (amd64) User-Agent: Mutt/1.5.23 (2014-03-12) X-Con-Id: 51246 X-Con-U: 0-guru X-Originating-IP: 93.104.2.212 X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 07 Dec 2015 11:04:33 -0000 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@unixarea.de, 🌐 http://www.unixarea.de/ ☎ +49-176-38902045