From owner-freebsd-stable Wed Mar 31 0:53:45 1999 Delivered-To: freebsd-stable@freebsd.org Received: from mail.palmerharvey.co.uk (mail.palmerharvey.co.uk [62.172.109.58]) by hub.freebsd.org (Postfix) with ESMTP id E1D2915BFD; Wed, 31 Mar 1999 00:53:40 -0800 (PST) (envelope-from Dom.Mitchell@palmerharvey.co.uk) Received: from ho-nt-01.pandhm.co.uk (unverified) by mail.palmerharvey.co.uk (Content Technologies SMTPRS 2.0.15) with ESMTP id ; Wed, 31 Mar 1999 09:53:13 +0100 Received: from voodoo.pandhm.co.uk ([10.100.35.12]) by ho-nt-01.pandhm.co.uk with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2448.0) id GZL8KFK4; Wed, 31 Mar 1999 09:46:35 +0100 Received: from dom by voodoo.pandhm.co.uk with local (Exim 2.10 #1) id 10SGnA-0005bh-00; Wed, 31 Mar 1999 09:56:08 +0100 To: asami@cs.berkeley.edu (Satoshi Asami) Cc: current@freebsd.org, stable@freebsd.org Subject: Re: /var/db/pkg/.mkversion X-Mailer: nmh-1.0 X-Colour: Green Organization: Palmer & Harvey McLane In-Reply-To: Satoshi Asami's message of "Tue, 30 Mar 1999 18:47:06 -0800" <199903310247.SAA46577@silvia.hip.berkeley.edu> Date: Wed, 31 Mar 1999 09:56:07 +0100 From: Dom Mitchell Message-Id: Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On 30 March 1999, Satoshi Asami proclaimed: > Some of you may have stumbled upon bsd.port.mk complaining about the > lack of said file even after a make world. This was caused by my > mistake of forgetting to update src/share/mk at the same time I > committed the check to bsd.port.mk. > > I have since corrected it so if you cvsup again and make world again > (actually just "make install" in src/share/mk), all will be well. As > a workaround, "echo 19990328 > /var/db/pkg/.mkversion" will work > equally fine. Just a side note; this new file breaks pkg_info. I've appended a simple patch below; somebody ought to do something better for the version in the src tree. Whilst I'm here, a tip. If you use the zsh, here's command completion for the some of the pkg commands: compctl -g '/var/db/pkg/*(/:t)' pkg_delete pkg_info -- Dom Mitchell -- Palmer & Harvey McLane -- Unix Systems Administrator "Value of 2 may go down as well as up" -- FORTRAN programmers manual diff -urP /usr/src/usr.sbin/pkg_install/info/perform.c pkg_install/info/perform.c --- /usr/src/usr.sbin/pkg_install/info/perform.c Mon Jan 4 06:15:40 1999 +++ pkg_install/info/perform.c Wed Mar 31 09:43:41 1999 @@ -135,8 +135,10 @@ return 1; } if (chdir(log_dir) == FAIL) { - warnx("can't change directory to '%s'!", log_dir); - return 1; + if (strcmp(log_dir, "/var/db/pkg/.mkversion") != 0) { + warnx("can't change directory to '%s'!", log_dir); + return 1; + } } installed = TRUE; } -- ********************************************************************** This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the system manager. This footnote also confirms that this email message has been swept by MIMEsweeper for the presence of computer viruses. ********************************************************************** To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message