Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 301612 - layman failed to delete corrupt tree when using alternative OVERLAY_CACHE_METHOD
Summary: layman failed to delete corrupt tree when using alternative OVERLAY_CACHE_METHOD
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal
Assignee: Sebastian Pipping
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-01-20 11:43 UTC by Jimmy.Jazz
Modified: 2010-02-05 01:41 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jimmy.Jazz 2010-01-20 11:43:34 UTC
Little quirk when using OVERLAY_CACHE_METHOD=sqlite*.
When an overlay has been corrupted, layman -d <overlay> fails to delete it. To restore the overlay, you need to call eix-layman delete <overlay> before.

Sorry no useful log error, except the message

* Error was:




Reproducible: Always

Steps to Reproduce:
1.create a corrupted overlay
2.layman -d <overlay>
3.



Expected Results:  
when deleting an overlay, layman should switch to eix-layman when OVERLAY_CACHE_METHOD='sqlite*' has been set. Or at least a useful warning.

workaround,
example: overlay x11
# layman -d x11
* Error was:

# eix-layman delete x11
# eix-layman add x11

not sure if that still is necessary,
# layman -a x11

version affected: app-portage/layman-1.3.0_rc1-r1, and probably other
Comment 1 Sebastian Pipping gentoo-dev 2010-01-23 23:16:57 UTC
I have difficulties understanding this bug report.  What do you mean by "corrupted"?  How do you know that "layman -d <overlay>" failed to delete it - any other indicators besides the error from layman?
Comment 2 Jimmy.Jazz 2010-01-24 01:16:28 UTC
(In reply to comment #1)
> What do you mean by "corrupted"? 

you cannot sync the overlay and you cannot add/delete it either.

* Errors:
* ------
* 
* Failed to sync overlay "x11".
* Error was: Syncing overlay "x11" returned status 256!


> How do you know that "layman -d <overlay>" failed to delete it -

Sorry, I made a lot of try and fail without taking notes. I cannot tell exactly the error returned, but one of them was a short and terse "* Error was:"

Moreover, I deleted the x11 directory flushed all the references in make.conf, cache_*.xml and overlay.xml, but only  the command 'eix-layman delete x11' was successful.

> any other indicators besides the error from layman?

The "layman -S" status was 256 but I cannot confirm it.
Comment 3 Sebastian Pipping gentoo-dev 2010-01-27 23:56:26 UTC
Jimmy, I have now commited code to Layman that may fix your problems:
http://layman.git.sourceforge.net/git/gitweb.cgi?p=layman/layman;a=commitdiff;h=c654e79fd18adb0e9f1cae6b783f8c81b39dda61
http://layman.git.sourceforge.net/git/gitweb.cgi?p=layman/layman;a=commitdiff;h=7a4e280313f57f714c499aed2566c93744d60851

The easiest way to check it out would be to unmask and emerge =app-portage/layman-9999, the live ebuild of Layman.  Please let me know how it works for you.
Comment 4 Jimmy.Jazz 2010-01-28 00:12:20 UTC
(In reply to comment #3)
> Jimmy, I have now commited code to Layman that may fix your problems:
> http://layman.git.sourceforge.net/git/gitweb.cgi?p=layman/layman;a=commitdiff;h=c654e79fd18adb0e9f1cae6b783f8c81b39dda61
> http://layman.git.sourceforge.net/git/gitweb.cgi?p=layman/layman;a=commitdiff;h=7a4e280313f57f714c499aed2566c93744d60851
> 
> The easiest way to check it out would be to unmask and emerge
> =app-portage/layman-9999, the live ebuild of Layman.  Please let me know how it
> works for you.
> 

I installed it this morning (1am) commit 7a4e280313f5. With about one upgrade per day we will soon see if the issue is over. Let me all this week to try it out.

Thx
Comment 5 Sebastian Pipping gentoo-dev 2010-01-28 00:21:20 UTC
To be sure: are you aware that live ebuilds never update themselves because the version is not bumped as with usual ebuilds?  So you have to run

  # emerge -av =app-portage/layman-9999

manually repeatedly.  Ignore me if that's nothing new.
Comment 6 Jimmy.Jazz 2010-02-04 13:38:00 UTC
(In reply to comment #5)
> To be sure: are you aware that live ebuilds never update themselves because the
> version is not bumped as with usual ebuilds?  So you have to run
> 
>   # emerge -av =app-portage/layman-9999
> 
> manually repeatedly.  Ignore me if that's nothing new.
> 

I did know that, thx anyway.

I have used layman-9999 and eix-sync with sqlite back end lately and the issue has gone.

Since eix is linked to layman, could you please read bug #303014? 
Unfortunately, I was not able to convince Martin of the benefit to use eix-sync without root rights. Using -e isn't convenient because it didn't flush logs.

Thx


Comment 7 Sebastian Pipping gentoo-dev 2010-02-05 01:41:07 UTC
Thanks for testing!  Layman 1.3.1 has just been released, these fixes included.  This is a good occasion to get off the live ebuild again I would say. Just my 2 cents.