Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 587088 - sys-apps/portage: Updates are not using locking
Summary: sys-apps/portage: Updates are not using locking
Status: RESOLVED FIXED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Unclassified (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords: InVCS
Depends on: 919862
Blocks:
  Show dependency tree
 
Reported: 2016-06-25 20:27 UTC by Michał Górny
Modified: 2024-02-19 01:45 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 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(+)