public inbox for gentoo-dev@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-dev] emerge issue when package does not unmerge correctly
@ 2001-12-30 13:48 Dan Armak
  2001-12-30 16:32 ` Daniel Robbins
  0 siblings, 1 reply; 6+ messages in thread
From: Dan Armak @ 2001-12-30 13:48 UTC (permalink / raw
  To: gentoo-dev

Hi all,

Sometimes an old ebuild cannot be unmerged. This happened to me with the 
recent eclass changes - the old inheriting ebuilds already installed no 
longer worked. (I have since provided backward compatibility.)

This creates a problem: when an older ebuild of the same revision is 
automatically unmerged, if unmerging fails, the old CONTENTS stays in 
/var/db/pkg, but the new files have already been merged into the live 
filesystem. So you are left with a CONTENTS not corresponding to the files 
actually installed (since they all have at least different mtimes).

I think the correct thing here would be to overwrite the old /var/db/pkg 
record with the new one in any case, to ensure that it matches the installed 
files.

-- 

Dan Armak
Gentoo Linux Developer, Desktop Team
Matan, Israel


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [gentoo-dev] emerge issue when package does not unmerge correctly
  2001-12-30 13:48 [gentoo-dev] emerge issue when package does not unmerge correctly Dan Armak
@ 2001-12-30 16:32 ` Daniel Robbins
  2001-12-30 19:39   ` Dan Armak
  0 siblings, 1 reply; 6+ messages in thread
From: Daniel Robbins @ 2001-12-30 16:32 UTC (permalink / raw
  To: gentoo-dev

On Sun, Dec 30, 2001 at 03:48:09PM +0200, Dan Armak wrote:
> Hi all,
> 
> Sometimes an old ebuild cannot be unmerged. This happened to me with the 
> recent eclass changes - the old inheriting ebuilds already installed no 
> longer worked. (I have since provided backward compatibility.)
> 
> This creates a problem: when an older ebuild of the same revision is 
> automatically unmerged, if unmerging fails, the old CONTENTS stays in 
> /var/db/pkg, but the new files have already been merged into the live 
> filesystem. So you are left with a CONTENTS not corresponding to the files 
> actually installed (since they all have at least different mtimes).
> 
> I think the correct thing here would be to overwrite the old /var/db/pkg 
> record with the new one in any case, to ensure that it matches the installed 
> files.

Just try unmerging it again; it should do the right thing.

-- 
Daniel Robbins                                  <drobbins@gentoo.org>
Chief Architect/President                       http://www.gentoo.org 
Gentoo Technologies, Inc.


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [gentoo-dev] emerge issue when package does not unmerge correctly
  2001-12-30 16:32 ` Daniel Robbins
@ 2001-12-30 19:39   ` Dan Armak
  2001-12-30 21:35     ` Daniel Robbins
  2001-12-31  0:30     ` MIkael Hallendal
  0 siblings, 2 replies; 6+ messages in thread
From: Dan Armak @ 2001-12-30 19:39 UTC (permalink / raw
  To: gentoo-dev

On Sunday 30 December 2001 18:32, you wrote:
> Just try unmerging it again; it should do the right thing.

It doesn't.

Details: I did the following test:
1) create a completely empty app-admin/foo/foo-1.ebuild.
2) emerge it.
3) edit /var/db/pkg/app-admin/foo-1/foo-1.ebuild to say "exit 1".
4) modify /usr/portage/app-admin/foo/foo-1.ebuild to say:
src_install() { dodir /tmp; }
to differentiate it by its CONTENTS from the one istalled.
5) emerge app-admin/foo again. It is merged, and e.g. CONTENTS is updated; 
but unmerging fails, and the old foo-1.ebuild is kept in 
/var/db/pkg/app-admin/foo-1, even though all other files (CONTENTS, USE, 
RDEPEND...) are apparently updated.

So, there's a problem. 

-- 

Dan Armak
Gentoo Linux Developer, Desktop Team
Matan, Israel


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [gentoo-dev] emerge issue when package does not unmerge correctly
  2001-12-30 19:39   ` Dan Armak
@ 2001-12-30 21:35     ` Daniel Robbins
  2001-12-31  5:00       ` Dan Armak
  2001-12-31  0:30     ` MIkael Hallendal
  1 sibling, 1 reply; 6+ messages in thread
From: Daniel Robbins @ 2001-12-30 21:35 UTC (permalink / raw
  To: gentoo-dev

On Sun, Dec 30, 2001 at 09:39:40PM +0200, Dan Armak wrote:
> So, there's a problem. 

How exactly is this a problem?  It appears to only be triggerable if you 
have broken ebuilds or mess with stuff in /var/db/pkg.

-- 
Daniel Robbins                                  <drobbins@gentoo.org>
Chief Architect/President                       http://www.gentoo.org 
Gentoo Technologies, Inc.


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [gentoo-dev] emerge issue when package does not unmerge correctly
  2001-12-30 19:39   ` Dan Armak
  2001-12-30 21:35     ` Daniel Robbins
@ 2001-12-31  0:30     ` MIkael Hallendal
  1 sibling, 0 replies; 6+ messages in thread
From: MIkael Hallendal @ 2001-12-31  0:30 UTC (permalink / raw
  To: gentoo-dev

[-- Attachment #1: Type: text/plain, Size: 512 bytes --]

sön 2001-12-30 klockan 20.39 skrev Dan Armak:
> On Sunday 30 December 2001 18:32, you wrote:
> > Just try unmerging it again; it should do the right thing.
> 
> It doesn't.
> 
> Details: I did the following test:
> 1) create a completely empty app-admin/foo/foo-1.ebuild.
> 2) emerge it.
> 3) edit /var/db/pkg/app-admin/foo-1/foo-1.ebuild to say "exit 1".

Why would anyone do this???

/M

-- 

Mikael Hallendal
Gentoo Linux Developer, Desktop Team Leader
CodeFactory AB, Stockholm, Sweden


[-- Attachment #2: Type: application/pgp-signature, Size: 239 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [gentoo-dev] emerge issue when package does not unmerge correctly
  2001-12-30 21:35     ` Daniel Robbins
@ 2001-12-31  5:00       ` Dan Armak
  0 siblings, 0 replies; 6+ messages in thread
From: Dan Armak @ 2001-12-31  5:00 UTC (permalink / raw
  To: gentoo-dev

On Sunday 30 December 2001 23:35, you wrote:
> On Sun, Dec 30, 2001 at 09:39:40PM +0200, Dan Armak wrote:
> > So, there's a problem.
>
> How exactly is this a problem?  It appears to only be triggerable if you
> have broken ebuilds or mess with stuff in /var/db/pkg.
Well, you might have broken ebuilds, concievably, and portage is doing the 
incorrect thing imho - but it's unlikely that people come across it, so if 
you want to dismiss it, that's ok.

-- 

Dan Armak
Gentoo Linux Developer, Desktop Team
Matan, Israel



^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2001-12-31 13:20 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-12-30 13:48 [gentoo-dev] emerge issue when package does not unmerge correctly Dan Armak
2001-12-30 16:32 ` Daniel Robbins
2001-12-30 19:39   ` Dan Armak
2001-12-30 21:35     ` Daniel Robbins
2001-12-31  5:00       ` Dan Armak
2001-12-31  0:30     ` MIkael Hallendal

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox