bug 1767576 in fedora-review / mock and relative workarounds

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

 



Hello, in comment
https://bugzilla.redhat.com/show_bug.cgi?id=1767576#c7
I wrote my experience about fedora-review / mock bug that returns message
%{python3_pkgversion} expanded too early.

As workaround I renamed
python3-dateutil-2.8.0-2.fc30.src.rpm
to
pythonX-dateutil-2.8.0-2.fc30.src.rpm
but fedora-review fails and mock instead works. How can this happen?


fedora-review -rn pythonX-dateutil-2.8.0-2.el7.src.rpm -m epel-7-x86_64
messages:

=================
$ cat /home/user/pythonX-dateutil/results/build.log
Mock Version: 1.4.21
Mock Version: 1.4.21
Mock Version: 1.4.21
ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild
-bs --target x86_64 --nodeps
/builddir/build/SPECS/pythonX-dateutil.spec'],
chrootPath='/var/lib/mock/epel-7-x86_64/root'env={'TERM': 'vt100',
'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH':
'/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf
"\\033]0;<mock-chroot>\\007"', 'PS1': '<mock-chroot> \\s-\\v\\$ ',
'LANG': 'it_IT.UTF-8'}shell=Falselogger=<mockbuild.trace_decorator.getLog
object at 0x7fe7d7c86a50>timeout=0uid=1000gid=135user='mockbuild'nspawn_args=['--capability=cap_ipc_lock',
'--bind=/tmp/mock-resolv.0e2zp7jw:/etc/resolv.conf']unshare_net=TrueprintOutput=False)
Using nspawn with args ['--capability=cap_ipc_lock',
'--bind=/tmp/mock-resolv.0e2zp7jw:/etc/resolv.conf']
Executing command: ['/usr/bin/systemd-nspawn', '-q', '-M',
'6a93f12b99554f5187ca6634dde022d3', '-D',
'/var/lib/mock/epel-7-x86_64/root', '-a', '--capability=cap_ipc_lock',
'--bind=/tmp/mock-resolv.0e2zp7jw:/etc/resolv.conf',
'--setenv=TERM=vt100', '--setenv=SHELL=/bin/bash',
'--setenv=HOME=/builddir', '--setenv=HOSTNAME=mock',
'--setenv=PATH=/usr/bin:/bin:/usr/sbin:/sbin',
'--setenv=PROMPT_COMMAND=printf "\\033]0;<mock-chroot>\\007"',
'--setenv=PS1=<mock-chroot> \\s-\\v\\$ ', '--setenv=LANG=it_IT.UTF-8',
'-u', 'mockbuild', 'bash', '--login', '-c', '/usr/bin/rpmbuild -bs
--target x86_64 --nodeps /builddir/build/SPECS/pythonX-dateutil.spec']
with env {'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir',
'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin',
'PROMPT_COMMAND': 'printf "\\033]0;<mock-chroot>\\007"', 'PS1':
'<mock-chroot> \\s-\\v\\$ ', 'LANG': 'it_IT.UTF-8'} and shell False
Creazione piattaforme target in corso: x86_64
Creazione per il target x86_64 in corso
Scritto: /builddir/build/SRPMS/pythonX-dateutil-2.8.0-2.el7.src.rpm
Child return code was: 0
ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild
-bb --target x86_64 --nodeps
/builddir/build/SPECS/pythonX-dateutil.spec'],
chrootPath='/var/lib/mock/epel-7-x86_64/root'env={'TERM': 'vt100',
'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH':
'/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf
"\\033]0;<mock-chroot>\\007"', 'PS1': '<mock-chroot> \\s-\\v\\$ ',
'LANG': 'it_IT.UTF-8'}shell=Falselogger=<mockbuild.trace_decorator.getLog
object at 0x7fe7d7c86a50>timeout=0uid=1000gid=135user='mockbuild'nspawn_args=['--capability=cap_ipc_lock',
'--bind=/tmp/mock-resolv.0e2zp7jw:/etc/resolv.conf']unshare_net=TrueprintOutput=False)
Using nspawn with args ['--capability=cap_ipc_lock',
'--bind=/tmp/mock-resolv.0e2zp7jw:/etc/resolv.conf']
Executing command: ['/usr/bin/systemd-nspawn', '-q', '-M',
'7fc50fbdd7ad47258797050e5baf2177', '-D',
'/var/lib/mock/epel-7-x86_64/root', '-a', '--capability=cap_ipc_lock',
'--bind=/tmp/mock-resolv.0e2zp7jw:/etc/resolv.conf',
'--setenv=TERM=vt100', '--setenv=SHELL=/bin/bash',
'--setenv=HOME=/builddir', '--setenv=HOSTNAME=mock',
'--setenv=PATH=/usr/bin:/bin:/usr/sbin:/sbin',
'--setenv=PROMPT_COMMAND=printf "\\033]0;<mock-chroot>\\007"',
'--setenv=PS1=<mock-chroot> \\s-\\v\\$ ', '--setenv=LANG=it_IT.UTF-8',
'-u', 'mockbuild', 'bash', '--login', '-c', '/usr/bin/rpmbuild -bb
--target x86_64 --nodeps /builddir/build/SPECS/pythonX-dateutil.spec']
with env {'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir',
'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin',
'PROMPT_COMMAND': 'printf "\\033]0;<mock-chroot>\\007"', 'PS1':
'<mock-chroot> \\s-\\v\\$ ', 'LANG': 'it_IT.UTF-8'} and shell False
Creazione piattaforme target in corso: x86_64
Creazione per il target x86_64 in corso
Esecuzione(%prep) in corso: /bin/sh -e /var/tmp/rpm-tmp.7EW5sc
+ umask 022
+ cd /builddir/build/BUILD
+ cd /builddir/build/BUILD
+ rm -rf python-dateutil-2.8.0
+ /usr/bin/gzip -dc /builddir/build/SOURCES/python-dateutil-2.8.0.tar.gz
+ /usr/bin/tar -xf -
+ STATUS=0
+ '[' 0 -ne 0 ']'
+ cd python-dateutil-2.8.0
+ /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w .
+ iconv --from=ISO-8859-1 --to=UTF-8 NEWS
+ mv NEWS.new NEWS
+ exit 0
Esecuzione(%build) in corso: /bin/sh -e /var/tmp/rpm-tmp.nhj7aB
+ umask 022
+ cd /builddir/build/BUILD
+ cd python-dateutil-2.8.0
+ %py3_build
/var/tmp/rpm-tmp.nhj7aB: line 29: fg: no job control
Errori di compilazione RPM:
errore: Stato d'uscita errato da /var/tmp/rpm-tmp.nhj7aB (%build)
    Stato d'uscita errato da /var/tmp/rpm-tmp.nhj7aB (%build)
Child return code was: 1
EXCEPTION: [Error()]
Traceback (most recent call last):
  File "/usr/lib/python3.7/site-packages/mockbuild/trace_decorator.py",
line 95, in trace
    result = func(*args, **kw)
  File "/usr/lib/python3.7/site-packages/mockbuild/util.py", line 746,
in do_with_status
    raise exception.Error("Command failed: \n # %s\n%s" % (command,
output), child.returncode)
mockbuild.exception.Error: Command failed:
 # /usr/bin/systemd-nspawn -q -M 7fc50fbdd7ad47258797050e5baf2177 -D
/var/lib/mock/epel-7-x86_64/root -a --capability=cap_ipc_lock
--bind=/tmp/mock-resolv.0e2zp7jw:/etc/resolv.conf --setenv=TERM=vt100
--setenv=SHELL=/bin/bash --setenv=HOME=/builddir
--setenv=HOSTNAME=mock --setenv=PATH=/usr/bin:/bin:/usr/sbin:/sbin
--setenv=PROMPT_COMMAND=printf "\033]0;<mock-chroot>\007"
--setenv=PS1=<mock-chroot> \s-\v\$  --setenv=LANG=it_IT.UTF-8 -u
mockbuild bash --login -c /usr/bin/rpmbuild -bb --target x86_64
--nodeps /builddir/build/SPECS/pythonX-dateutil.spec

Mock Version: 1.4.21
=================

mock -r epel-7-x86_64 --rebuild python3-dateutil-2.8.0-2.el7.src.rpm
instead worked. Why this difference if fedora-review uses mock as
engine?
_______________________________________________
devel mailing list -- devel@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to devel-leave@xxxxxxxxxxxxxxxxxxxxxxx
Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/devel@xxxxxxxxxxxxxxxxxxxxxxx




[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Fedora Announce]     [Fedora Users]     [Fedora Kernel]     [Fedora Testing]     [Fedora Formulas]     [Fedora PHP Devel]     [Kernel Development]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Gimp]     [Yosemite News]

  Powered by Linux