Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 210449 - into prefix does not get reset properly for src_install when using `ebuild`
Summary: into prefix does not get reset properly for src_install when using `ebuild`
Status: RESOLVED FIXED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Core - Ebuild Support (show other bugs)
Hardware: All All
: High normal (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords: InVCS
Depends on:
Blocks: 216231
  Show dependency tree
 
Reported: 2008-02-17 09:56 UTC by SpanKY
Modified: 2010-09-23 02:02 UTC (History)
0 users

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


Attachments
reset desttree state variables before calling src_install (desttree.patch,1.01 KB, patch)
2008-02-19 06:01 UTC, Zac Medico
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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.