Hi,
I'm quite lost here, I followed the doc here:
My spec file is here:
Does not build on copr:
On my machine it works with:
spectool -g -R vera.spec && rpmbuild -bs ./vera.spec && rpmbuild -bb ./vera.spec
With mock:
sudo mock -r fedora-25-x86_64 --scm-enable --scm-option method=git --scm-option package=vera --scm-option git_get='git clone
https://github.com/jeandet/vera-rpm' --scm-option --spec='vera.spec' --scm-option branch=master --scm-option write_tar=True -v
I get errors on checkout:
DEBUG: Executing command: ['git', 'checkout', 'master'] with env environ({'HOME': '/root', 'DISPLAY': ':1', 'USERHELPER_UID': '0', 'SHELL': '/bin/bash', 'TERM': 'xterm-256color', 'LOGNAME': 'root', 'LANG': 'fr_FR.UTF-8', 'PATH': '/usr/sbin:/usr/bin:/sbin:/bin:/root/bin', 'USER': 'root'}) and shell False
ERROR: Exception occurred in preexec_fn.
Traceback (most recent call last):
File "/usr/libexec/mock/mock", line 886, in <module>
main()
File "/usr/lib/python3.5/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/python3.5/site-packages/mockbuild/trace_decorator.py", line 89, in trace
result = func(*args, **kw)
File "/usr/libexec/mock/mock", line 720, in run_command
scmWorker.get_sources()
File "/usr/lib/python3.5/site-packages/mockbuild/trace_decorator.py", line 89, in trace
result = func(*args, **kw)
File "/usr/lib/python3.5/site-packages/mockbuild/scm.py", line 102, in get_sources
util.do(shlex.split(command), shell=False, cwd=self.src_dir, env=os.environ)
File "/usr/lib/python3.5/site-packages/mockbuild/trace_decorator.py", line 89, in trace
result = func(*args, **kw)
File "/usr/lib/python3.5/site-packages/mockbuild/util.py", line 532, in do
preexec_fn=preexec,
File "/usr/lib64/python3.5/subprocess.py", line 676, in __init__
restore_signals, start_new_session)
File "/usr/lib64/python3.5/subprocess.py", line 1283, in _execute_child
raise child_exception_type(err_msg)
subprocess.SubprocessError: Exception occurred in preexec_fn.
Best regards,
Alexis.
Le mercredi 31 mai 2017 à 14:19 +0200, Michal Novotny a écrit :
_______________________________________________
copr-devel mailing list -- copr-devel@lists.fedorahosted.org
To unsubscribe send an email to copr-devel-leave@lists.fedorahosted.org