From owner-freebsd-current@FreeBSD.ORG Fri Jul 27 09:13:35 2012 Return-Path: Delivered-To: freebsd-current@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id B6BBE106566C for ; Fri, 27 Jul 2012 09:13:35 +0000 (UTC) (envelope-from 000.fbsd@quip.cz) Received: from elsa.codelab.cz (elsa.codelab.cz [94.124.105.4]) by mx1.freebsd.org (Postfix) with ESMTP id 6CF9A8FC12 for ; Fri, 27 Jul 2012 09:13:35 +0000 (UTC) Received: from elsa.codelab.cz (localhost [127.0.0.1]) by elsa.codelab.cz (Postfix) with ESMTP id 34AC228423; Fri, 27 Jul 2012 11:05:59 +0200 (CEST) Received: from [192.168.1.2] (static-84-242-120-26.net.upcbroadband.cz [84.242.120.26]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by elsa.codelab.cz (Postfix) with ESMTPSA id 21EEF28427; Fri, 27 Jul 2012 11:05:57 +0200 (CEST) Message-ID: <501259F4.7050908@quip.cz> Date: Fri, 27 Jul 2012 11:05:56 +0200 From: Miroslav Lachman <000.fbsd@quip.cz> User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.9.1.19) Gecko/20110420 Lightning/1.0b1 SeaMonkey/2.0.14 MIME-Version: 1.0 To: Oliver Fromme References: <201207270832.q6R8WU7i040568@lurza.secnetix.de> In-Reply-To: <201207270832.q6R8WU7i040568@lurza.secnetix.de> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-current@FreeBSD.ORG Subject: Re: Change default for periodic/weekly/400.status-pkg ? X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 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: Fri, 27 Jul 2012 09:13:35 -0000 Oliver Fromme wrote: > Hi, > > Currently, the periodic/weekly/400.status-pkg script uses > the ports' INDEX file if it exists. On my machines, the > INDEX file exists, and the periodic script produces output > like this: > > $ /etc/periodic/weekly/400.status-pkg > > Check for out of date packages: > $ > > That is, apparently everything is up to date, so I don't > have to do anything. But this is wrong. When I change it > to use /nonexistent in place of the INDEX file, I get this > output: > > $ /etc/periodic/weekly/400.status-pkg > > Check for out of date packages: > netpbm-manpages-10.35.85 was orphaned: LOCAL/netpbm-manpages > pkg-config-0.25_1 was orphaned: devel/pkg-config > $ > > A-ha! The first line is to be expected (netpbm-manpages > is a "fake" port that I maintain locally), but the second > line about pkg-config is much more important. Now this > makes me look at ports/UPDATING, revealing that pkg-config > was replaced by pkgconf. > > Therefore I propose to change the default for the periodic > script to use /nonexistent. It does not change the output > that usually appears, it only produces _additional_ output > for installed packages whose origin disappeared. This is > valuable information, I think. Also, the INDEX file could > be outdated, which might lead to wrong results, so using > the INDEX file by default is probably not a good idea anyway. On the other hand - we are using daily `portsnap -I update` so we have updated INDEX on all our machines, but outdated ports tree. (freezed in some point in time, so we can have same versions installed on all servers in a group) I think it should be user configurable in /etc/periodic.conf if somebody want to use INDEX or not. Or the hack with /nonexistent should be mentioned in a comment in /etc/defaults/periodic.conf and in a manpage. Miroslav Lachman