Hello,
if you want to run the newest version of mock (0.9.19) with RHEL5/CentOS5, you can use a backported version from:
http://www.jur-linux.org/rpms/el-updates/5/SRPMS/mock-0.9.19-1.el5.src.rpm http://www.jur-linux.org/rpms/el-updates/5/i386/mock-0.9.19-1.el5.noarch.rpm
regards,
Florian La Roche
On 11/12/2009 06:40 AM, Florian La Roche wrote:
Hello,
if you want to run the newest version of mock (0.9.19) with RHEL5/CentOS5, you can use a backported version from:
Have you done any tests to see how the output changes from what we have in extras/ now ? Are these test results public somewhere ?
Hi,
how far I see, mock is now completely ported to Python. if you really decide to put the new version to C5/Extras, so please let me know so I may include my new cache method (hardlink+rsync) to it. Sorry I'm not a pygrammer so I have to deal with Python first before I can make a patch for the new version.
After I installed the reqired pkgs from EPEL5, I tried to initialize a centos-5 chroot - my first impression is following:
[mockbuild@sinistar el5]# mock init INFO: mock.py version 0.9.19 starting... State Changed: init plugins State Changed: start State Changed: lock buildroot State Changed: clean State Changed: init State Changed: lock buildroot Mock Version: 0.9.19 INFO: Mock Version: 0.9.19 INFO: enabled root cache INFO: enabled yum cache State Changed: cleaning yum metadata INFO: enabled ccache State Changed: running yum ERROR: 'str' object has no attribute 'items' Traceback (most recent call last): File "/usr/sbin/mock", line 686, in ? main(retParams) File "/usr/sbin/mock", line 562, in main chroot.init() File "<peak.util.decorators.rewrap wrapping mock.backend.init at 0x2AD258A99050>", line 3, in init def init(self): return __decorated(self) File "/usr/lib/python2.4/site-packages/mock/trace_decorator.py", line 70, in trace result = func(*args, **kw) File "/usr/lib/python2.4/site-packages/mock/backend.py", line 154, in init self._init() File "<peak.util.decorators.rewrap wrapping mock.backend._init at 0x2AD258A99500>", line 3, in _init def _init(self): return __decorated(self) File "/usr/lib/python2.4/site-packages/mock/trace_decorator.py", line 70, in trace result = func(*args, **kw) File "/usr/lib/python2.4/site-packages/mock/backend.py", line 270, in _init self._buildDirSetup() File "<peak.util.decorators.rewrap wrapping mock.backend._buildDirSetup at 0x2AD258A9DF50>", line 3, in _buildDirSetup def _buildDirSetup(self): return __decorated(self) File "/usr/lib/python2.4/site-packages/mock/trace_decorator.py", line 70, in trace result = func(*args, **kw) File "/usr/lib/python2.4/site-packages/mock/backend.py", line 649, in _buildDirSetup for key, value in self.macros.items(): AttributeError: 'str' object has no attribute 'items'
- I completely removed the old mock and /var/lib/mock before and also got this error. On 'mock init' the yum process works for some seconds before it breaks down. What I have to pay attention to? What did I wrong? mockbuild is a member of the mock group. And there is 70 GB free on the hard drive.
Cheers,
Brian.