Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 3 Sep 2003 14:13:42 -0300
From:      Fernan Aguero <fernan@iib.unsam.edu.ar>
To:        FreeBSD Ports List <freebsd-ports@FreeBSD.ORG>
Cc:        stan <stanb@panix.com>
Subject:   Re: Have I damaged my ports database?
Message-ID:  <20030903171342.GA37603@iib.unsam.edu.ar>
In-Reply-To: <20030903140835.GA15314@teddy.fas.com>
References:  <20030903140835.GA15314@teddy.fas.com>

next in thread | previous in thread | raw e-mail | index | archive | help
+----[ stan <stanb@panix.com> (03.Sep.2003 11:15):
|
| pkg_delete: /var/db/pkg/gnomesession-2.2.2_1/+CONTENTS: No such file or directory
|
+----]

Hi!

I've run into something similar recently.

Just create an empty +CONTENTS file, and run pkgdb -F again. It
will complain that the port has no origin, let it fix it.
Now the +CONTENTS file will contain just one line and you
will be able to install ports again (do this for all the
ports that have missing +CONTENTS files).

Note that you will have problems trying to remove
(deinstall, pkg_delete) ports with such a minimal +CONTENTS
file. If you also need to do this (it's a good idea),
checkout the port of the same PORTVERSION and PORTREVISION
using cvs, remove the corresponding directory under
/var/db/pkg, and install the checked out port. This will
hopefully produce a clean register in PKGDB that you can use
to then remove the port cleanly or to install a newer
version.

Hope this helps,

Fernan

-- 
F e r n a n   A g u e r o
http://genoma.unsam.edu.ar/~fernan



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