From owner-freebsd-stable@FreeBSD.ORG Wed May 4 12:01:24 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 B29501065670 for ; Wed, 4 May 2011 12:01:24 +0000 (UTC) (envelope-from fbsdstable@beasties.demon.nl) Received: from smtp-vbr15.xs4all.nl (smtp-vbr15.xs4all.nl [194.109.24.35]) by mx1.freebsd.org (Postfix) with ESMTP id 4CBAE8FC1B for ; Wed, 4 May 2011 12:01:23 +0000 (UTC) Received: from merom.hotsoft.nl (beasties.demon.nl [82.161.3.114]) by smtp-vbr15.xs4all.nl (8.13.8/8.13.8) with ESMTP id p44Bn60f043737 for ; Wed, 4 May 2011 13:49:06 +0200 (CEST) (envelope-from fbsdstable@beasties.demon.nl) Message-ID: <4DC13D32.1070503@beasties.demon.nl> Date: Wed, 04 May 2011 13:49:06 +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: freebsd-stable@freebsd.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by XS4ALL Virus Scanner Subject: 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: Wed, 04 May 2011 12:01:24 -0000 Hi, I upgraded my Soekris 4801 boxes from 8.1 to 8.2-STABLE (r221326) a few days ago and now I get the following error in the daily mail: Backing up package db directory: tar: : Cannot stat: No such file or directory tar: Error exit delayed from previous errors. These messages originate from /etc/periodic/daily/220.backup-pkgdb, apparently a recent addition. The culprit is probably on line 21: 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 If there is no /usr/ports present on the system, the script will fail. Of course my systems are not unique in this respect: many people install pre-built packages instead of building ports themselves, especially on minimal hardware configurations. Would it be a good idea to check for the presence of /usr/ports (or /usr/ports/Mk/bsd.ports.mk) first before calling make, and then try $PKG_DBDIR and /var/db/pkg, in that order, if this is not the case? As far as I know this issue also affects 9.0-CURRENT. Kind regards, Hans Ottevanger