Bug 672059 - cannot rebuild acl with mock
Summary: cannot rebuild acl with mock
Keywords:
Status: CLOSED WORKSFORME
Alias: None
Product: Fedora
Classification: Fedora
Component: mock
Version: 14
Hardware: x86_64
OS: Linux
unspecified
low
Target Milestone: ---
Assignee: Clark Williams
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-01-23 16:27 UTC by Christoph Karl
Modified: 2013-01-10 06:25 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-06-18 06:52:07 UTC
Type: ---


Attachments (Terms of Use)
Build log for acl (183.77 KB, text/plain)
2011-01-23 16:27 UTC, Christoph Karl
no flags Details
new log file now i386 (517 bytes, text/plain)
2011-01-24 07:35 UTC, Christoph Karl
no flags Details
root.log file for i386 (38.06 KB, text/plain)
2011-01-24 07:36 UTC, Christoph Karl
no flags Details
state.log for i386 (370 bytes, text/plain)
2011-01-24 07:37 UTC, Christoph Karl
no flags Details
Output of cat /proc/meminfo (1.22 KB, text/plain)
2011-05-09 05:50 UTC, Christoph Karl
no flags Details

Description Christoph Karl 2011-01-23 16:27:21 UTC
Created attachment 474831 [details]
Build log for acl

Description of problem:
Rebuilding of acl (acl-2.2.49-8.fc14.src.rpm) does not work.
Error seems to be:
# group: mockbuild != # group: root

Version-Release number of selected component (if applicable):
acl-2.2.49-8.fc14.src.rpm


How reproducible:
always

Steps to Reproduce:
1. sudo bash
2. mock -r ck --clean
3. sudo mock -r ck --rebuild acl-2.2.49-8.fc14.src.rpm
4. See build.log (atttached)
  
Actual results:
Does not build.

Expected results:
Correct build.

Additional info:
1.
/etc/mock/ck.cfg is my config file
Change is only different repo URLs
filled up with current versions
including all updates until now 
(23.01.2011)

2.
I did not figure out why the "sudo mock ..." is necessary
despite there was already a "sudo bash".
Without it I will get:
DEBUG util.py:281:  Executing command: ['ccache', '-M', '4G']
DEBUG util.py:247:  Could not set cache size limit.
DEBUG util.py:320:  Child returncode was: 1

This seems to be a bug in mock.

Comment 1 Kamil Dudka 2011-01-23 17:07:32 UTC
Although I have never found it anywhere documented, mock is not supposed to be run as root: bug #507309 comment #8

Please try adding self to the group mock and build it as a regular user.

Comment 2 Christoph Karl 2011-01-23 17:25:14 UTC
I just tried to build as regular user.
This gives me:
DEBUG util.py:281:  Executing command: ['ccache', '-M', '4G']
DEBUG util.py:247:  Could not set cache size limit.
DEBUG util.py:320:  Child returncode was: 1

Comment 3 Kamil Dudka 2011-01-23 19:58:20 UTC
What does 'id' say in the shell you are trying to run mock?

Comment 4 Christoph Karl 2011-01-23 20:39:53 UTC
>id
uid=30956(ckarl) gid=30956(ckarl) groups=30956(ckarl),486(mock)

Comment 5 Kamil Dudka 2011-01-23 21:16:17 UTC
My guess is that there persists something in the chroot from the previous (incomplete) run of mock under the root.  Please make sure the chroot directory is clean and accessible by the group mock.  But do it carefully, chances are that some mount points are still active in there.

Comment 6 Christoph Karl 2011-01-24 07:35:25 UTC
Created attachment 474910 [details]
new log file now i386

Comment 7 Christoph Karl 2011-01-24 07:36:40 UTC
Created attachment 474911 [details]
root.log file for i386

Comment 8 Christoph Karl 2011-01-24 07:37:18 UTC
Created attachment 474912 [details]
state.log for i386

Comment 9 Christoph Karl 2011-01-24 07:44:01 UTC
Now I did:
1.) rm -r /var/cache/mock
2.) rm -r /var/cache/ccache
3.) mock -r ck --clean
4.) mock -r ck --rebuild /mnt/lager/ARCHIVE/fedora-14-repository/fedora/SRPMS/acl-2.2.49-8.fc14.src.rpm

But still the same error with ccache, see log files

Two Remarks:
1.) I now build on i386 (former was x86_64)
2.) IMO the problem is not acl related but either mock or ccache related,
so feel free to forward this report

Comment 10 Kamil Dudka 2011-01-24 08:54:03 UTC
As for the acl package, the build is known to work in mock with the usual setup and it also runs in rpmbuild as either root or non-root.  If you run it as root it performs some additional tests during %check.

All other issues with mock and ccache are unrelated to the acl package.

Comment 11 Clark Williams 2011-02-20 22:43:43 UTC
I just rebuilt the latest acl SRPM using the x86_64 config for f14 and the just built mock-1.1.9. 

Please try this new mock version and see if you still have build problems.

Comment 12 Christoph Karl 2011-02-27 14:12:20 UTC
I now use "mock-1.1.9-1.fc14.noarch.rpm" with x86_64 config, but I still get:

DEBUG util.py:281:  Executing command: ['ccache', '-M', '4G']
DEBUG util.py:247:  Could not set cache size limit.
DEBUG util.py:320:  Child returncode was: 1

Comment 13 Christoph Karl 2011-02-27 14:13:30 UTC
ccache version is:

>rpm -qa ccache
ccache-3.1.3-1.fc14.x86_64

Comment 14 Fedora Admin XMLRPC Client 2011-03-11 18:10:28 UTC
This package has changed ownership in the Fedora Package Database.  Reassigning to the new owner of this component.

Comment 15 Clark Williams 2011-05-06 20:10:57 UTC
(In reply to comment #13)
> ccache version is:
> 
> >rpm -qa ccache
> ccache-3.1.3-1.fc14.x86_64

Try running:

$ mock -r ck --scrub=c-cache

and see if that cleans up the ccache issues

Comment 16 Christoph Karl 2011-05-07 04:29:56 UTC
Just retried with
mock -r ck --scrub=c-cache --rebuild /mnt/lager/ARCHIVE/fedora-14-repository/fedora/SRPMS/acl-2.2.49-8.fc14.src.rpm
but gives me the very same error.

Comment 17 Christoph Karl 2011-05-07 04:56:20 UTC
Additionally I create a brand new user on my system and tried it again,
but also gives me the same error

Comment 18 Clark Williams 2011-05-08 20:00:21 UTC
I'm quite puzzled about this. The failure you're seeing is from running ccache inside the chroot and telling it that the cache limit is 4GB. Do you have 4GB free on your system?

Comment 19 Christoph Karl 2011-05-09 05:49:10 UTC
I don't know how to exactly calculate if 4 GB free,
but I attached the output of 
cat /proc/meminfo

Comment 20 Christoph Karl 2011-05-09 05:50:21 UTC
Created attachment 497707 [details]
Output of cat /proc/meminfo

Comment 21 Christoph Karl 2011-06-18 06:52:07 UTC
now with f15 and mock-1.1.10-1.fc15 and 
ccache-3.1.4-4.fc15.src.rpm it seems to work as (not root) user.


Note You need to log in before you can comment on or make changes to this bug.