Bug 768436 - mock 1.1.18 can't build packages for rawhide
Summary: mock 1.1.18 can't build packages for rawhide
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Fedora EPEL
Classification: Fedora
Component: mock
Version: el6
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Clark Williams
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-12-16 16:26 UTC by Jonathan Underwood
Modified: 2012-03-09 13:12 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-03-09 13:12:12 UTC
Type: ---


Attachments (Terms of Use)

Description Jonathan Underwood 2011-12-16 16:26:28 UTC
Description of problem:
Mock on el6 can't build against rawhide (can everything else):

$ mock -r fedora-rawhide-x86_64 --no-cleanup-after /local/home/rpmb/rpmbuild/SRPMS/gerris-1.3.2-3.20111123.el6.src.rpm
INFO: mock.py version 1.1.18 starting...
State Changed: init plugins
INFO: selinux enabled
WARNING: selinux: 'yum' does not support '--setopt' option
State Changed: start
INFO: Start(/local/home/rpmb/rpmbuild/SRPMS/gerris-1.3.2-3.20111123.el6.src.rpm)  Config(fedora-rawhide-x86_64)
State Changed: lock buildroot
State Changed: clean
INFO: chroot (/var/lib/mock/fedora-rawhide-x86_64) unlocked and deleted
State Changed: unlock buildroot
State Changed: init
State Changed: lock buildroot
Mock Version: 1.1.18
INFO: Mock Version: 1.1.18
INFO: calling preinit hooks
INFO: enabled root cache
INFO: enabled yum cache
State Changed: cleaning yum metadata
INFO: enabled ccache
State Changed: running yum
ERROR: Exception(/local/home/rpmb/rpmbuild/SRPMS/gerris-1.3.2-3.20111123.el6.src.rpm) Config(fedora-rawhide-x86_64) 0 minutes 4 seconds
INFO: Results and/or logs in: /var/lib/mock/fedora-rawhide-x86_64/result
ERROR: Command failed: 
 # ['/usr/bin/yum', '--installroot', '/var/lib/mock/fedora-rawhide-x86_64/root/', 'groupinstall', 'buildsys-build']
Traceback (most recent call last):
  File "/usr/bin/yum", line 29, in <module>
    yummain.user_main(sys.argv[1:], exit_code=True)
  File "/usr/share/yum-cli/yummain.py", line 254, in user_main
    errcode = main(args)
  File "/usr/share/yum-cli/yummain.py", line 109, in main
    result, resultmsgs = base.doCommands()
  File "/usr/share/yum-cli/cli.py", line 353, in doCommands
    self._getTs(needTsRemove)
  File "/usr/lib/python2.6/site-packages/yum/depsolve.py", line 99, in _getTs
    self._getTsInfo(remove_only)
  File "/usr/lib/python2.6/site-packages/yum/depsolve.py", line 110, in _getTsInfo
    pkgSack = self.pkgSack
  File "/usr/lib/python2.6/site-packages/yum/__init__.py", line 774, in <lambda>
    pkgSack = property(fget=lambda self: self._getSacks(),
  File "/usr/lib/python2.6/site-packages/yum/__init__.py", line 564, in _getSacks
    self.repos.populateSack(which=repos)
  File "/usr/lib/python2.6/site-packages/yum/repos.py", line 279, in populateSack
    sack.populate(repo, mdtype, callback, cacheonly)
  File "/usr/lib/python2.6/site-packages/yum/yumRepo.py", line 164, in populate
    if self._check_db_version(repo, mydbtype):
  File "/usr/lib/python2.6/site-packages/yum/yumRepo.py", line 223, in _check_db_version
    return repo._check_db_version(mdtype)
  File "/usr/lib/python2.6/site-packages/yum/yumRepo.py", line 1227, in _check_db_version
    repoXML = self.repoXML
  File "/usr/lib/python2.6/site-packages/yum/yumRepo.py", line 1427, in <lambda>
    repoXML = property(fget=lambda self: self._getRepoXML(),
  File "/usr/lib/python2.6/site-packages/yum/yumRepo.py", line 1419, in _getRepoXML
    self._loadRepoXML(text=self)
  File "/usr/lib/python2.6/site-packages/yum/yumRepo.py", line 1409, in _loadRepoXML
    return self._groupLoadRepoXML(text, self._mdpolicy2mdtypes())
  File "/usr/lib/python2.6/site-packages/yum/yumRepo.py", line 1385, in _groupLoadRepoXML
    self._commonRetrieveDataMD(mdtypes)
  File "/usr/lib/python2.6/site-packages/yum/yumRepo.py", line 1369, in _commonRetrieveDataMD
    misc.bunzipFile(dl_local, local)
  File "/usr/lib/python2.6/site-packages/yum/misc.py", line 687, in bunzipFile
    data = s_fn.read(1024000)
EOFError: compressed file ended before the logical end-of-stream was detected


Version-Release number of selected component (if applicable):
mock-1.1.18-1.el6.noarch

Comment 1 Clark Williams 2011-12-18 14:48:50 UTC
That message comes from yum. It looks like one of the packages yum is trying to download was truncated. Please try running:

$ sudo yum clean all

That will clean out all the yum state, in case you got a truncated package in there somewhere. Then try the mock build again.

Comment 2 Jonathan Underwood 2011-12-19 14:09:27 UTC
I tried yum clean all as you suggested (as root), and mock still fails in the same way.

Comment 3 Clark Williams 2012-01-17 21:21:15 UTC
Are you hosted on RHEL5 or RHEL6?

Comment 4 Jonathan Underwood 2012-01-23 16:29:36 UTC
As I mentioned before, el6 (Scientific Linux 6).

Comment 5 Jonathan Underwood 2012-03-09 13:12:12 UTC
Closing this, as it's seems fixed in 1.1.20.


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