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

Bug 210449

Summary: into prefix does not get reset properly for src_install when using `ebuild`
Product: Portage Development Reporter: SpanKY <vapier>
Component: Core - Ebuild SupportAssignee: Portage team <dev-portage>
Status: RESOLVED FIXED    
Severity: normal Keywords: InVCS
Priority: High    
Version: unspecified   
Hardware: All   
OS: All   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 216231    
Attachments: reset desttree state variables before calling src_install

Description SpanKY gentoo-dev 2008-02-17 09:56:18 UTC
consider this src_install():
src_install() {
        touch f
        tree "${D}"
        dobin f
        tree "${D}"
        into /moo
        tree "${D}"
        dobin f
        tree "${D}"
}

if you do:
ebuild <ebuild> install
you'll end up with the correct tree the first time:
/var/tmp/portage/app-shells/sandboxshell-0.3-r4/image/
|-- moo
|   `-- bin
|       `-- f
`-- usr
    `-- bin
        `-- f
4 directories, 2 files

but the wrong tree every other time:
/var/tmp/portage/app-shells/sandboxshell-0.3-r4/image/
`-- moo
    `-- bin
        `-- f
2 directories, 1 file




Portage 2.2_pre2 (default-linux/amd64/2006.1/desktop, gcc-4.2.3, glibc-2.7-r1, 2.6.24 x86_64)
Comment 1 Zac Medico gentoo-dev 2008-02-19 06:01:01 UTC
Created attachment 143936 [details, diff]
reset desttree state variables before calling src_install
Comment 2 Zac Medico gentoo-dev 2008-02-29 19:33:42 UTC
This is fixed in 2.2_pre3.
Comment 3 Marius Mauch (RETIRED) gentoo-dev 2008-03-20 18:14:56 UTC
This is supposed to be fixed in portage-2.2_pre5 or earlier.
Comment 4 Marius Mauch (RETIRED) gentoo-dev 2008-03-20 18:15:42 UTC
This is supposed to be fixed in portage-2.2_pre5 or earlier.