Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 654812 - sys-apps/portage-2.3.35 - leaves behind empty ${PORTAGE_TMPDIR}/portage/${CATEGORY} after successful merge
Summary: sys-apps/portage-2.3.35 - leaves behind empty ${PORTAGE_TMPDIR}/portage/${CAT...
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Unclassified (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Portage team
Depends on:
Blocks: 651804
  Show dependency tree
Reported: 2018-05-04 09:30 UTC by Coacher
Modified: 2018-05-25 03:36 UTC (History)
0 users

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

emerge --info portage (info,7.59 KB, text/plain)
2018-05-04 09:31 UTC, Coacher

Note You need to log in before you can comment on or make changes to this bug.
Description Coacher 2018-05-04 09:30:30 UTC

I've noticed that at least since 2.3.33 portage leaves behind an empty ${PORTAGE_TMPDIR}/portage/${CATEGORY}, e.g. I have PORTAGE_TMPDIR=/vat/tmp and after merging sys-apps/portage I have an empty /var/tmp/portage/sys-apps dir.

Still reproducible with 2.3.35. Wasn't happening at least with 2.3.31
Comment 1 Coacher 2018-05-04 09:31:33 UTC
Created attachment 529714 [details]
emerge --info portage
Comment 2 Larry the Git Cow gentoo-dev 2018-05-04 17:00:56 UTC
The bug has been referenced in the following commit(s):

commit 17604fd598d799c6af24b66fc2c240f90dddd420
Author:     Zac Medico <>
AuthorDate: 2018-05-04 16:47:49 +0000
Commit:     Zac Medico <>
CommitDate: 2018-05-04 16:51:32 +0000

    EbuildMerge: wait build dir to unlock (bug 654812)
    Wait for the build dir to unlock, in order to ensure that
    the category directory is removed when appropriate.
    Fixes: 720fef408d07 ("Binpkg: use async_unlock (bug 614108)")
    Fixes: 5ca8ef781952 ("EbuildBuild: use async_unlock (bug 614108)")

 pym/_emerge/      | 12 +++++++++++-
 pym/_emerge/ | 12 +++++++++++-
 pym/_emerge/ | 26 +++++++++++++++++++++-----
 3 files changed, 43 insertions(+), 7 deletions(-)
Comment 3 Zac Medico gentoo-dev 2018-05-25 03:36:20 UTC
Fixed since portage-2.3.36.