Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 668206 - sys-apps/portage: 'Timestamp of chromium-70.0.3538.45.tar.xz has changed; recreating WORKDIR' makes no sense
Summary: sys-apps/portage: 'Timestamp of chromium-70.0.3538.45.tar.xz has changed; rec...
Status: RESOLVED FIXED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Core - Ebuild Support (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 671498
  Show dependency tree
 
Reported: 2018-10-10 06:27 UTC by Michał Górny
Modified: 2019-04-10 04:35 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 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2018-10-10 06:27:56 UTC
After removing distfiles that I no longer needed, I can't resume the already-unpacked build of chromium:

$ ebuild /var/db/repos/gentoo/www-client/chromium/chromium-70.0.3538.45.ebuild package merge
>>> Existing ${T}/environment for 'chromium-70.0.3538.45' will be sourced.
>>> Run 'clean' to start with a fresh environment.
>>> Checking chromium-70.0.3538.45.tar.xz's mtime...
>>> Timestamp of chromium-70.0.3538.45.tar.xz has changed; recreating WORKDIR...


This really makes no sense since the ebuild didn't change, neither did the checksum of distfile, so restarting would either mean unpacking the same file unnecessarily or failing due to checksum mismatch.
Comment 1 Larry the Git Cow gentoo-dev 2018-10-10 07:58:46 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/proj/portage.git/commit/?id=1fc6cae0b2de181df5ba4c5b3f21b06604555387

commit 1fc6cae0b2de181df5ba4c5b3f21b06604555387
Author:     Zac Medico <zmedico@gentoo.org>
AuthorDate: 2018-10-10 07:52:10 +0000
Commit:     Zac Medico <zmedico@gentoo.org>
CommitDate: 2018-10-10 07:57:38 +0000

    doebuild: skip timestamp check for deleted distfiles (bug 668206)
    
    Avoid behavior like this when a distfile has been removed:
    
    >>> Existing ${T}/environment for 'chromium-70.0.3538.45' will be sourced.
    >>> Run 'clean' to start with a fresh environment.
    >>> Checking chromium-70.0.3538.45.tar.xz's mtime...
    >>> Timestamp of chromium-70.0.3538.45.tar.xz has changed; recreating WORKDIR...
    
    Bug: https://bugs.gentoo.org/668206
    Reported-by: Michał Górny <mgorny@gentoo.org>
    Signed-off-by: Zac Medico <zmedico@gentoo.org>

 lib/portage/package/ebuild/doebuild.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
Comment 2 Zac Medico gentoo-dev 2019-04-10 04:35:15 UTC
Fixed in portage-2.3.62.