mock scm write_tar - file changed as we read it

Alfred Landrum alfred.landrum at riverbed.com
Sat Nov 5 19:50:44 UTC 2011


I'm using mock 1.1.16 on fedora 15, and am hitting an error with the
'write_tar' related scm functionality.  It looks like the creation of the
.tar.gz of the source is confusing tar, as it's being created within the
source dir. Example output:

DEBUG: Executing command: ['tar', 'czf',
'/tmp/tmpmnCogc.mock-scm.less/less/less-1.tar.gz', '--exclude',
'/tmp/tmpmnCogc.mock-scm.less/less/less-1.tar.gz',
'--xform=s,^less,less-1,', 'less']
DEBUG: tar: less/less-1.tar.gz: file changed as we read it

This is using tar 1.26 (from tar-1.26-2.fc15.x86_64.rpm).

Mock is being called like so:
mock -v -r mock 
--configdir=/var/build/workers/tasks/shared/91663dc9-8d22-4e73-b0d9-3df6073
b0ed6/mock --no-clean --rebuild --scm-enable --scm-option method=git
--scm-option git_get="git clone
ssh://alandrum@192.168.1.192/~/work/build/base_os/less/.git SCM_PKG"
--scm-option spec="SCM_PKG.spec" --scm-option package=less --scm-option
branch=19bec4b078bcc2b8caa910beee9674f54adf46d7

I'm not sure if its relevant, but here's the top of my spec file:

Name:less
Version:1
Release:1
Summary:test generated spec
License:test
Source0:%{name}-%{version}.tar.gz


I would expect the '--exclude' to have tar not care about any timestamps
on less-1.tar.gz, but it looks like it does.  



More information about the buildsys mailing list