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

Bug 587088

Summary: sys-apps/portage: Updates are not using locking
Product: Portage Development Reporter: Michał Górny <mgorny>
Component: UnclassifiedAssignee: Portage team <dev-portage>
Status: RESOLVED FIXED    
Severity: normal Keywords: InVCS
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
See Also: https://bugs.gentoo.org/show_bug.cgi?id=920095
https://github.com/gentoo/portage/pull/1218
https://bugs.gentoo.org/show_bug.cgi?id=684940
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on: 919862    
Bug Blocks:    

Description Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2016-06-25 20:27:24 UTC
Just noticed that if I start two emerge instances in parallel, they both start applying updates. I guess we should use locking to prevent that.
Comment 1 Larry the Git Cow gentoo-dev 2023-12-26 23:15:09 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/proj/portage.git/commit/?id=7100dfb769b9d98eb40a92c37d154cb4bc83292f

commit 7100dfb769b9d98eb40a92c37d154cb4bc83292f
Author:     Zac Medico <zmedico@gentoo.org>
AuthorDate: 2023-12-26 22:24:59 +0000
Commit:     Zac Medico <zmedico@gentoo.org>
CommitDate: 2023-12-26 22:28:07 +0000

    _global_updates: Acquire global vardbapi lock
    
    Also use bindbapi.writable attribute in case the
    PKGDIR is missing for some reason.
    
    Bug: https://bugs.gentoo.org/587088
    Signed-off-by: Zac Medico <zmedico@gentoo.org>

 lib/portage/_global_updates.py | 15 ++++++++++-----
 1 file changed, 10 insertions(+), 5 deletions(-)
Comment 2 Larry the Git Cow gentoo-dev 2023-12-27 21:28:38 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0a1f19cdd7a598070b7eb08b3954e677aa4868ad

commit 0a1f19cdd7a598070b7eb08b3954e677aa4868ad
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2023-12-27 21:27:55 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2023-12-27 21:28:01 +0000

    sys-apps/portage: add 3.0.59
    
    Closes: https://bugs.gentoo.org/587088
    Closes: https://bugs.gentoo.org/822033
    Closes: https://bugs.gentoo.org/915494
    Closes: https://bugs.gentoo.org/916135
    Closes: https://bugs.gentoo.org/917120
    Closes: https://bugs.gentoo.org/919862
    Closes: https://bugs.gentoo.org/920095
    Closes: https://bugs.gentoo.org/920258
    Closes: https://bugs.gentoo.org/920537
    Closes: https://bugs.gentoo.org/920654
    Signed-off-by: Sam James <sam@gentoo.org>

 sys-apps/portage/Manifest              |   1 +
 sys-apps/portage/portage-3.0.59.ebuild | 246 +++++++++++++++++++++++++++++++++
 2 files changed, 247 insertions(+)