From owner-freebsd-stable@FreeBSD.ORG Thu May 5 07:57:48 2011 Return-Path: Delivered-To: freebsd-stable@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E1BEA1065672; Thu, 5 May 2011 07:57:48 +0000 (UTC) (envelope-from fbsdstable@beasties.demon.nl) Received: from smtp-vbr13.xs4all.nl (smtp-vbr13.xs4all.nl [194.109.24.33]) by mx1.freebsd.org (Postfix) with ESMTP id 78CE08FC18; Thu, 5 May 2011 07:57:47 +0000 (UTC) Received: from merom.hotsoft.nl (beasties.demon.nl [82.161.3.114]) by smtp-vbr13.xs4all.nl (8.13.8/8.13.8) with ESMTP id p457vGtL072908; Thu, 5 May 2011 09:57:16 +0200 (CEST) (envelope-from fbsdstable@beasties.demon.nl) Message-ID: <4DC2585C.6090207@beasties.demon.nl> Date: Thu, 05 May 2011 09:57:16 +0200 From: Hans Ottevanger User-Agent: Mozilla/5.0 (X11; U; FreeBSD amd64; en-US; rv:1.9.2.17) Gecko/20110429 Thunderbird/3.1.10 MIME-Version: 1.0 To: Doug Barton References: <4DC13D32.1070503@beasties.demon.nl> <4DC20EEA.5000703@FreeBSD.org> <4DC24A20.5050702@beasties.demon.nl> <4DC24D12.1040306@FreeBSD.org> In-Reply-To: <4DC24D12.1040306@FreeBSD.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by XS4ALL Virus Scanner Cc: freebsd-stable@FreeBSD.org Subject: Re: Daily backups of pkgdb failure X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 05 May 2011 07:57:49 -0000 On 05/05/11 09:09, Doug Barton wrote: > On 05/04/2011 23:56, Hans Ottevanger wrote: >> On 05/05/11 04:43, Doug Barton wrote: >>> On 05/04/2011 04:49, Hans Ottevanger wrote: >>>> make -f/usr/share/mk/bsd.port.mk -V PKG_DBDIR >>>> "/usr/share/mk/bsd.port.mk", line 11: Could not find >>>> /usr/ports/Mk/bsd.port.mk >>>> make: fatal errors encountered -- cannot continue >>> >>> I fixed this in HEAD by setting the default if pulling it from make >>> fails. I will MFC ASAP. >>> >>> >> >> Of course this will solve my "problem" 8-) >> >> But if you use something like >> >> pkg_dbdir=${PKG_DBDIR-/var/db/pkg} >> >> you will also cover the (infrequent) case where people redefine >> PKG_DBDIR while running pkg_add et al (and actually remember to set >> PKG_DBDIR in /etc/crontab !). > > To be honest, I don't care. If you are doing this kind of thing you > deserve what you get. > To be clear. it is OK for me, I use defaults wherever possible. > If you really want to move your PKG_DBDIR and can't be bothered to > define it correctly, use a symlink. Or, if that's a problem, disable the > backup. This "problem" is not going to affect the overwhelming number of > freebsd users, and I don't think going through a lot of gymnastics to > support people who do silly things is a good idea for either side. > My idea was that if you go through the trouble to use make to get PKG_DBDIR from the ports (as possibly redefined in /etc/make.conf) you might as well try something similar while using packages. But again: every deliberate choice is OK for me. Regards, Hans