FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Redhat > Fedora Build System

 
 
LinkBack Thread Tools
 
Old 11-05-2011, 06:50 PM
Alfred Landrum
 
Default mock scm write_tar - file changed as we read it

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.

--
buildsys mailing list
buildsys@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/buildsys
 
Old 11-07-2011, 06:44 AM
Marko Myllynen
 
Default mock scm write_tar - file changed as we read it

Hi,

On 2011-11-05 21:50, Alfred Landrum wrote:
> 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
>
> I would expect the '--exclude' to have tar not care about any timestamps
> on less-1.tar.gz, but it looks like it does.

the tarball generating code tried to be perhaps a bit too smart with all
the fancy tar options, it was also incompatible with RHEL 5 tar. While
making it RHEL 5 compatible, the code leading to the above issue was
changed at the same time (BZ#749518).

Please try mock 1.1.17 from updates-testing, it should work.

Cheers,

--
Marko Myllynen
--
buildsys mailing list
buildsys@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/buildsys
 

Thread Tools




All times are GMT. The time now is 06:18 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org