Gentoo Archives: gentoo-dev

From: Daniel Robbins <drobbins@g.o>
To: gentoo-dev@g.o
Subject: Re: [gentoo-dev] emerge issue when package does not unmerge correctly
Date: Sun, 30 Dec 2001 10:32:06
Message-Id: 20011230103206.D19237@chiba.3jane.net
In Reply to: [gentoo-dev] emerge issue when package does not unmerge correctly by Dan Armak
1 On Sun, Dec 30, 2001 at 03:48:09PM +0200, Dan Armak wrote:
2 > Hi all,
3 >
4 > Sometimes an old ebuild cannot be unmerged. This happened to me with the
5 > recent eclass changes - the old inheriting ebuilds already installed no
6 > longer worked. (I have since provided backward compatibility.)
7 >
8 > This creates a problem: when an older ebuild of the same revision is
9 > automatically unmerged, if unmerging fails, the old CONTENTS stays in
10 > /var/db/pkg, but the new files have already been merged into the live
11 > filesystem. So you are left with a CONTENTS not corresponding to the files
12 > actually installed (since they all have at least different mtimes).
13 >
14 > I think the correct thing here would be to overwrite the old /var/db/pkg
15 > record with the new one in any case, to ensure that it matches the installed
16 > files.
17
18 Just try unmerging it again; it should do the right thing.
19
20 --
21 Daniel Robbins <drobbins@g.o>
22 Chief Architect/President http://www.gentoo.org
23 Gentoo Technologies, Inc.

Replies