Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 26 Nov 1999 09:05:35 -0800
From:      Chris Piazza <cpiazza@jaxon.net>
To:        Kris Kennaway <kris@hub.freebsd.org>
Cc:        chad@rez.com, ports@FreeBSD.ORG
Subject:   Re: Fwd: Re: pkg database
Message-ID:  <19991126090535.E39460@norn.ca.eu.org>
In-Reply-To: <Pine.BSF.4.21.9911260159300.43928-100000@hub.freebsd.org>; from kris@hub.freebsd.org on Fri, Nov 26, 1999 at 02:00:24AM -0800
References:  <199911252223.PAA14503@chad.anasazi.com> <Pine.BSF.4.21.9911260159300.43928-100000@hub.freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, Nov 26, 1999 at 02:00:24AM -0800, Kris Kennaway wrote:
> This should have gone to ports-
> 
> Kris
> 
> On Thu, 25 Nov 1999, Chad R. Larson wrote:
> 
> > I believe maybe this went by a couple of months back, but...
> > 
> > Whenever I CVSup 2.2-STABLE, a file (/var/db/pgk/.mkversion) gets
> > installed on my machine.  This, in turn, causes pkg_info to
> > complain:
> > 
> >     chad> pkg_info -Ia > /dev/null
> >     pkg_info: can't change directory to '/var/db/pkg/.mkversion'!
> > 
> > I looked at the pkg_info code; it expects every entry in /var/db/pkg to
> > be a directory.  My fix has been to delete the file.  What's the
> > "official" fix?
> > 

On April 15th obrien changed this from /var/db/pkg/.mkversion to 
/var/db/port.mkversion, but only in releng_3 and head.  If you
apply this patch in src/share/mk/ and remove /var/db/pkg/.mkversion
it should all work out.  If you don't want to rebuild world to get the
new file there, just run the date command shown below.
This should be committed some time.

Index: Makefile
===================================================================
RCS file: /home/ncvs/src/share/mk/Makefile,v
retrieving revision 1.13.2.6
diff -u -r1.13.2.6 Makefile
--- Makefile    1999/09/05 11:27:18     1.13.2.6
+++ Makefile    1999/11/26 17:01:28
@@ -14,6 +14,6 @@
 afterinstall:
        ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m ${SHAREMODE} ${FILES} \
            ${DESTDIR}${BINDIR}/mk
-       date '+%Y%m%d' > ${DESTDIR}/var/db/pkg/.mkversion
+       date '+%Y%m%d' > ${DESTDIR}/var/db/port.mkversion

-Chris
-- 
cpiazza@jaxon.net   cpiazza@FreeBSD.org
        Abbotsford, BC, Canada


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19991126090535.E39460>