Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 127930 - ebuild /path/to/ebuild {compile,install,merge} always re-unpacks WORKDIR
Summary: ebuild /path/to/ebuild {compile,install,merge} always re-unpacks WORKDIR
Status: RESOLVED FIXED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Core (show other bugs)
Hardware: All Linux
: High major (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords: InVCS, REGRESSION
Depends on:
Blocks: 115839
  Show dependency tree
 
Reported: 2006-03-28 16:48 UTC by Ed Catmur
Modified: 2006-03-30 03:06 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 Ed Catmur 2006-03-28 16:48:00 UTC
portage-2.1_pre7-r2:

# emerge foo
(emerge fails; cd into $WORKDIR, fix)
# ebuild /path/to/foo-0.ebuild merge
>>> checksums files   ;-) foo-0.ebuild
>>> checksums files   ;-) files/digest-foo-0
>>> checksums src_uri ;-) foo-0.tar.gz
>>> Checking foo-0.tar.gz's mtime...
>>> foo-0.tar.gz has been updated; recreating WORKDIR...

This happens because ebuild.sh looks at ${DISTDIR}/foo-0.tar.gz, which is a symlink to ${PORTAGE_ACTUAL_DISTDIR}/foo-0.tar.gz, and so has mtime from when doebuild is called.

Uh, maybe ebuild.sh should check [ "${PORTAGE_ACTUAL_DISTDIR:-${DISTDIR}}/${x}" -nt "${WORKDIR}" ]?
Comment 1 Zac Medico gentoo-dev 2006-03-29 02:04:32 UTC
Thanks for the patch.  This is in svn r3036 for the next release.
Comment 2 Zac Medico gentoo-dev 2006-03-30 03:06:23 UTC
Released in 2.1_pre7-r3.