Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 140971

Summary: emerge should use a file lock on PORTAGE_BUILDDIR
Product: Portage Development Reporter: hariseldon78 <hariseldon78>
Component: Core - Interface (emerge)Assignee: Portage team <dev-portage>
Status: RESOLVED FIXED    
Severity: minor CC: hariseldon78
Priority: Low Keywords: InVCS
Version: 2.1   
Hardware: x86   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 147007    

Description hariseldon78 2006-07-18 14:58:05 UTC
if i run 2 parallel emerge of two packages one of them crashes if they come to compile the same package.
probably this is not a bug but maybe emerge could use some sort of locking system so when it find a locked package it can just wait for the other session to end its compilation, and then continue with the other packages in list..
Comment 1 Zac Medico gentoo-dev 2006-07-18 16:42:31 UTC
This is fixed in svn r3920.
Comment 2 Zac Medico gentoo-dev 2006-07-20 14:06:27 UTC
This has been released in 2.1.1_pre3-r2.
Comment 3 Zac Medico gentoo-dev 2006-08-04 21:08:21 UTC
*** Bug 78771 has been marked as a duplicate of this bug. ***
Comment 4 Zac Medico gentoo-dev 2006-09-24 20:48:13 UTC
This is more properly fixed as of svn r4521.  PORTAGE_BUILDDIR is locked throughout all of the phases now, so there's no chance that a parallel emerge process can interfere with it while another one is using it.
Comment 5 Zac Medico gentoo-dev 2006-09-24 23:14:45 UTC
This has been released in 2.1.2_pre1-r2.