[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

[scl.org] Rebuilding sclo packages in mock



Hi all,

I have a problem similar or at least related to
https://www.redhat.com/archives/sclorg/2016-May/msg00020.html
except I'm trying to do it all in mock.

There's a custom config file with

config_opts['chroot_setup_cmd'] = 'install @buildsys scl-utils-build httpd24-build shadow-utils'

and the command I'm running to just rebuild this package is

mock -r scl-6-x86_64 -D "scl httpd24" httpd24-1.1-18.el6.src.rpm

with the result

...
Start: build setup for httpd24-1.1-18.el6.src.rpm
ERROR: Exception(httpd24-1.1-18.el6.src.rpm) Config(scl-6-x86_64) 0 minutes 31 seconds
INFO: Results and/or logs in: /var/lib/mock/scl-6-x86_64/result
Traceback (most recent call last):
  File "/usr/libexec/mock/mock", line 886, in <module>
    main()
  File "/usr/lib/python2.6/site-packages/mockbuild/trace_decorator.py", line 89, in trace
    result = func(*args, **kw)
  File "/usr/libexec/mock/mock", line 701, in main
    run_command(options, args, config_opts, commands, buildroot, state)
  File "/usr/lib/python2.6/site-packages/mockbuild/trace_decorator.py", line 89, in trace
    result = func(*args, **kw)
  File "/usr/libexec/mock/mock", line 783, in run_command
    do_rebuild(config_opts, commands, buildroot, args)
  File "/usr/lib/python2.6/site-packages/mockbuild/trace_decorator.py", line 89, in trace
    result = func(*args, **kw)
  File "/usr/libexec/mock/mock", line 520, in do_rebuild
    post=post_build, clean=clean)
  File "/usr/lib/python2.6/site-packages/mockbuild/trace_decorator.py", line 89, in trace
    result = func(*args, **kw)
  File "/usr/libexec/mock/mock", line 465, in rebuild_generic
    ret = cmd(item)
  File "/usr/libexec/mock/mock", line 501, in build
    check=config_opts['check'])
  File "/usr/lib/python2.6/site-packages/mockbuild/trace_decorator.py", line 89, in trace
    result = func(*args, **kw)
  File "/usr/lib/python2.6/site-packages/mockbuild/backend.py", line 210, in build
    self.install_srpm(srpm)
  File "/usr/lib/python2.6/site-packages/mockbuild/trace_decorator.py", line 89, in trace
    result = func(*args, **kw)
  File "/usr/lib/python2.6/site-packages/mockbuild/backend.py", line 386, in install_srpm
    nspawn_args=self.config['nspawn_args'])
  File "/usr/lib/python2.6/site-packages/mockbuild/buildroot.py", line 190, in doChroot
    env=env, shell=shell, *args, **kargs)
  File "/usr/lib/python2.6/site-packages/mockbuild/trace_decorator.py", line 89, in trace
    result = func(*args, **kw)
  File "/usr/lib/python2.6/site-packages/mockbuild/util.py", line 532, in do
    preexec_fn=preexec,
  File "/usr/lib64/python2.6/subprocess.py", line 642, in __init__
    errread, errwrite)
  File "/usr/lib64/python2.6/subprocess.py", line 1234, in _execute_child
    raise child_exception
OSError: [Errno 2] No such file or directory

It is not clear which file or directory is missing and the chroot result logs aren't very clear either but this log

DEBUG util.py:439:  No Packages marked for Update
DEBUG util.py:577:  Child return code was: 0
DEBUG util.py:122:  touching file: /var/lib/mock/scl-6-x86_64/root/.initialized
DEBUG util.py:598:  child environment: None
DEBUG util.py:522:  Executing command: ['/bin/rpm', '-Uvh', '--nodeps', '/builddir/build/originals/httpd24-1.1-18.el6.src.rpm'] with env {'LANG': 'C', 'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOSTNAME': 'mock', 'PROMPT_COMMAND': 'printf "\\033]0;<mock-chroot>\\007"', 'HOME': '/builddir', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PS1': '<mock-chroot> \\s-\\v\\$ '} and shell False
DEBUG util.py:188:  kill orphans
DEBUG util.py:598:  child environment: None
DEBUG util.py:522:  Executing command: ['/bin/umount', '-n', '/var/lib/mock/scl-6-x86_64/root/proc/filesystems'] with env {'LANG': 'C', 'TERM': 'vt100', 'SHELL': '/bin/sh', 'HOSTNAME': 'mock', 'HOME': '/builddir', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin'} and shell False
DEBUG util.py:577:  Child return code was: 0

makes me think that the rpm command fails - /builddir/build/originals/httpd24-1.1-18.el6.src.rpm exists, but it evidently hasn't been unpacked.

Adding python to the chroot setup leads to the same error.

I am able to rebuild these packages as root, outside mock.


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]