Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 933079 - Duplicate "tmp" in do_emerge_pkgs() for stage2
Summary: Duplicate "tmp" in do_emerge_pkgs() for stage2
Status: RESOLVED FIXED
Alias: None
Product: Gentoo/Alt
Classification: Unclassified
Component: Prefix Support (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo Prefix
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-05-28 18:54 UTC by huxnu
Modified: 2024-07-23 06:34 UTC (History)
1 user (show)

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 huxnu 2024-05-28 18:54:58 UTC
In commit b736fab6, the full path is used of do_emerge_pkgs(). It is OK for stage3. However, in stage2 the EPREFIX is "${ROOT}"/tmp, which causes the duplicate "tmp" in path. Maybe a conditional statement for distinguishing stage2 and stage3 is required.

Reproducible: Always

Actual Results:  
Bootstrap interrupted in stage 2
Comment 1 Fabian Groffen gentoo-dev 2024-05-28 18:56:54 UTC
thanks for pointing that out, it seems that changes wasn't very well tested, sorry!
Comment 2 Larry the Git Cow gentoo-dev 2024-05-28 19:02:26 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/proj/prefix.git/commit/?id=7032312c7616e5d19a62ada3b0bf594035bc984c

commit 7032312c7616e5d19a62ada3b0bf594035bc984c
Author:     Fabian Groffen <grobian@gentoo.org>
AuthorDate: 2024-05-28 03:21:05 +0000
Commit:     Fabian Groffen <grobian@gentoo.org>
CommitDate: 2024-05-28 03:21:05 +0000

    scripts/bootstrap-prefix: attempt to fix b736fab6 do_emerge_pkgs
    
    Use ROOT, which should be the same between stages, such that we don't
    reference tmp/tmp.  Thanks huxnu for pointing out.
    
    Bug: https://bugs.gentoo.org/933079
    Signed-off-by: Fabian Groffen <grobian@gentoo.org>

 scripts/bootstrap-prefix.sh | 18 +++++++++++-------
 1 file changed, 11 insertions(+), 7 deletions(-)