Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 1 Mar 2008 02:45:54 +0000
From:      Shaun Amott <shaun@FreeBSD.org>
To:        Patrick Mahan <mahan@mahan.org>
Cc:        ports@freebsd.org, freebsd-questions@freebsd.org
Subject:   Re: Having problems with my ports configuration
Message-ID:  <20080301024554.GA30007@charon.picobyte.net>
In-Reply-To: <47C86A22.4010706@mahan.org>
References:  <47C86A22.4010706@mahan.org>

next in thread | previous in thread | raw e-mail | index | archive | help

--82I3+IH0IqGh5yIs
Content-Type: text/plain; charset=iso-8859-1
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Fri, Feb 29, 2008 at 12:25:06PM -0800, Patrick Mahan wrote:
> One of the issues that came out of this was it seemed that the
> ports database (/var/db/pkg/pkgdb.db) was corrupt.  So I tried
> to rebuild it by deleting it and setting PKG_DBDIR).  I issued
> a 'portsdb -Uu' and it fails -

Do you have anything left under /var/db/pkg (presumably not, unless you
still have PKG_DBDIR set)?

> host# portsdb -Uu
> Updating the ports index ... Generating INDEX.tmp - please=20
> wait..p5-DateTime-Calendar-Japanese-0.06001:=20
> "/usr/ports/japanese/p5-DateTime-Calendar-Japanese-Era" non-existent --=
=20
> dependency list incomplete
> =3D=3D=3D> devel/p5-DateTime-Calendar-Japanese failed
> *** Error code 1
> 1 error

Looks like you might have an old ports tree. Have you updated it lately?

> So, somehow, I have managed to seriously hammer my ports/package
> installation.  Is there a way to recover this info?  Is there any
> way of determing just what is installed (I know of a few: Perl,
> emacs, etc) from info stored under '/usr/ports'?

If you just removed the portupgrade database (which is all you
mentioned), you haven't lost anything important: it can be regenerated.
If the whole of /var/db/pkg was obliterated, you'll have to reinstall
everything. If you know what version of each port you had installed
(plus the OPTIONS, etc., used), installing over the top of what you have
now is probably the best you can do.

--=20
Shaun Amott // PGP: 0x6B387A9A
"A foolish consistency is the hobgoblin
of little minds." - Ralph Waldo Emerson

--82I3+IH0IqGh5yIs
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (FreeBSD)

iD8DBQFHyMNikmhdCGs4epoRAjZWAJ92t1ZPgVtkodnqq2uJUscu/n5MGACfVTTD
Cd/HVEdSek/Y7RHNtT0BDqc=
=pE2A
-----END PGP SIGNATURE-----

--82I3+IH0IqGh5yIs--



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