Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 116676 - /usr/lib/portage/bin/clean_locks documentation example could make use use DISTDIR
Summary: /usr/lib/portage/bin/clean_locks documentation example could make use use DIS...
Status: RESOLVED FIXED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Documentation (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords: InVCS
Depends on:
Blocks: 115839
  Show dependency tree
 
Reported: 2005-12-25 03:00 UTC by Petteri Räty (RETIRED)
Modified: 2006-04-29 08:31 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 Petteri Räty (RETIRED) gentoo-dev 2005-12-25 03:00:13 UTC
pena cacao # /usr/lib/portage/bin/clean_locks

You must specify directories with hardlink-locks to clean.
You may optionally specify --force, which will remove all
of the locks, even if we can't establish if they are in use.
Please attempt cleaning without force first.

/usr/lib/portage/bin/clean_locks /usr/portage/distfiles/.locks
/usr/lib/portage/bin/clean_locks --force /usr/portage/distfiles/.locks

Just make /usr/portage/distfiles/ in the example be the actual DISTDIR and users can just copy - paste the line.
Comment 1 Brian Harring (RETIRED) gentoo-dev 2005-12-25 03:02:46 UTC
Automated lookup would be pretty damn slow, portageq call.

The *really* fun thing is that hardlink locking can be used in other places then distdir- if there is a crap lock sitting around, it could deadlock portageq.

Don't like that possibility...
Comment 2 Petteri Räty (RETIRED) gentoo-dev 2005-12-25 03:04:29 UTC
(In reply to comment #1)
> Automated lookup would be pretty damn slow, portageq call.
> 

Why portageq when clean_locks is implemented in python?
Comment 3 Brian Harring (RETIRED) gentoo-dev 2005-12-25 04:00:43 UTC
Bleh, pardon, still doesn't matter if it's portageq or direct access to portage.

Portage does a couple of nasty things during import, what I'm questioning is the possibility of triggering a deadlock via the portage import; random crazy example is cleansing of incomplete merge in vdb while doing the forced virtuals lookup (vdb cpv_all walk).
Comment 4 Petteri Räty (RETIRED) gentoo-dev 2005-12-25 04:04:20 UTC
(In reply to comment #3)
>
> Portage does a couple of nasty things during import, what I'm questioning is
> the possibility of triggering a deadlock via the portage import; random crazy
> example is cleansing of incomplete merge in vdb while doing the forced virtuals
> lookup (vdb cpv_all walk).
> 

Well then this will probably have to wait until portage is more modular and one can just import the needed parts.
Comment 5 SpanKY gentoo-dev 2005-12-27 00:24:02 UTC
people have already resigned themselves that portage-related stuff is going to be slow, so i dont see why we cant throw a portageq into this mix
Comment 6 Brian Harring (RETIRED) gentoo-dev 2006-04-16 16:23:25 UTC
zmedico modified portage to do delayed loading of virtuals- should be possible now without 10s delays for instantiating crap we don't need...

Eg, someone split a patch. :)
Comment 7 Zac Medico gentoo-dev 2006-04-21 18:11:32 UTC
This is fixed in svn r3188.
Comment 8 Zac Medico gentoo-dev 2006-04-29 08:31:28 UTC
Released in 2.1_pre10.