Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 31 Mar 1999 09:56:07 +0100
From:      Dom Mitchell <Dom.Mitchell@palmerharvey.co.uk>
To:        asami@cs.berkeley.edu (Satoshi Asami)
Cc:        current@freebsd.org, stable@freebsd.org
Subject:   Re: /var/db/pkg/.mkversion 
Message-ID:  <E10SGnA-0005bh-00@voodoo.pandhm.co.uk>
In-Reply-To: Satoshi Asami's message of "Tue, 30 Mar 1999 18:47:06 -0800" <199903310247.SAA46577@silvia.hip.berkeley.edu> 

next in thread | previous in thread | raw e-mail | index | archive | help
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-current" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?E10SGnA-0005bh-00>