Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

minor Traceback no Fedora 37 #1018

Open
sergiomb2 opened this issue Dec 25, 2022 · 5 comments
Open

minor Traceback no Fedora 37 #1018

sergiomb2 opened this issue Dec 25, 2022 · 5 comments

Comments

@sergiomb2
Copy link
Contributor

sergiomb2 commented Dec 25, 2022

Short description of the problem

when mock builds fails , it ends with Traceback which I think that can be solved

RPM build errors:
error: Bad exit status from /var/tmp/rpm-tmp.7i1xVJ (%install)
Bad exit status from /var/tmp/rpm-tmp.7i1xVJ (%install)
Child return code was: 1
EXCEPTION: [Error('Command failed: \n # /usr/bin/systemd-nspawn -q -M 6e3be579a2a142b19d998c1d1e71baad -D /var/lib/mock/fedora-37-x86_64/root -a -u mockbuild --capability=cap_ipc_lock --bind=/tmp/mock-resolv.zdlk435y:/etc/resolv.conf --bind=/dev/btrfs-control --bind=/dev/mapper/control --bind=/dev/loop-control --bind=/dev/loop0 --bind=/dev/loop1 --bind=/dev/loop2 --bind=/dev/loop3 --bind=/dev/loop4 --bind=/dev/loop5 --bind=/dev/loop6 --bind=/dev/loop7 --bind=/dev/loop8 --bind=/dev/loop9 --bind=/dev/loop10 --bind=/dev/loop11 --console=pipe --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=C.UTF-8 --setenv=CCACHE_DIR=/var/tmp/ccache --setenv=CCACHE_UMASK=002 --resolv-conf=off bash --login -c /usr/bin/rpmbuild -bb --noclean --target x86_64 --nodeps /builddir/build/SPECS/ocamlfuse.spec\n', 1)]
Traceback (most recent call last):
File "/usr/lib/python3.11/site-packages/mockbuild/trace_decorator.py", line 93, in trace
result = func(*args, **kw)
^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/site-packages/mockbuild/util.py", line 598, 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 6e3be579a2a142b19d998c1d1e71baad -D /var/lib/mock/fedora-37-x86_64/root -a -u mockbuild --capability=cap_ipc_lock --bind=/tmp/mock-resolv.zdlk435y:/etc/resolv.conf --bind=/dev/btrfs-control --bind=/dev/mapper/control --bind=/dev/loop-control --bind=/dev/loop0 --bind=/dev/loop1 --bind=/dev/loop2 --bind=/dev/loop3 --bind=/dev/loop4 --bind=/dev/loop5 --bind=/dev/loop6 --bind=/dev/loop7 --bind=/dev/loop8 --bind=/dev/loop9 --bind=/dev/loop10 --bind=/dev/loop11 --console=pipe --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=C.UTF-8 --setenv=CCACHE_DIR=/var/tmp/ccache --setenv=CCACHE_UMASK=002 --resolv-conf=off bash --login -c /usr/bin/rpmbuild -bb --noclean --target x86_64 --nodeps /builddir/build/SPECS/ocamlfuse.spec

Output of rpm -q mock

mock-3.5-1.fc37.noarch

Steps to reproduce issue

Do not forget to mention full commandline with the mock command you executed.

Any additional notes

Output of `mock --debug-conf### Steps to reproduce issue

Do not forget to mention full commandline with the mock command you executed.

Any additional notes

Output of mock --debug-config

not modified /etc/mock/fedora-37-x86_64.cfg
cat ~/.config/mock.cfg

config_opts['dnf_common_opts'] = ['--setopt=deltarpm=False', '--setopt=max_parallel_downloads=10', '--setopt=metadata_expire=259200s']
config_opts['plugin_conf']['ccache_opts']['max_cache_size'] = '20G'
config_opts['plugin_conf']['ccache_enable'] = True
config_opts['backup_on_clean'] = True
config_opts['createrepo_on_rpms'] = True
@praiskup
Copy link
Member

praiskup commented Jan 5, 2023

Makes sense, thank you for the report!

@junaruga
Copy link
Contributor

Any update on this?

@praiskup
Copy link
Member

No, there's no assignee here - patches are welcome!

@sergiomb2
Copy link
Contributor Author

BTW we may also clean this message on mock output

Usage: rpmbuild [OPTION...]
DEBUG util.py:445:  Build options with [ <specfile> | <tarball> | <source package> ]:
DEBUG util.py:445:        -bp                        build through %prep (unpack sources and apply
DEBUG util.py:445:                                   patches) from <specfile>
DEBUG util.py:445:        -bf                        build through %conf (%prep, then %conf) from
DEBUG util.py:445:                                   <specfile>
DEBUG util.py:445:        -bc                        build through %build (%prep, %conf, then
DEBUG util.py:445:                                   compile) from <specfile>
DEBUG util.py:445:        -bd                        check build dependencies <specfile>
DEBUG util.py:445:        -bi                        build through %install (%prep, %conf, %build,
DEBUG util.py:445:                                   then install) from <specfile>
DEBUG util.py:445:        -bl                        verify %files section from <specfile>
DEBUG util.py:445:        -ba                        build source and binary packages from
DEBUG util.py:445:                                   <specfile>
DEBUG util.py:445:        -bb                        build binary package only from <specfile>
DEBUG util.py:445:        -bs                        build source package only from <specfile>
DEBUG util.py:445:        -br                        build source package only from <specfile> -
DEBUG util.py:445:                                   calculate dynamic build requires
DEBUG util.py:445:        -rp                        build through %prep (unpack sources and apply
DEBUG util.py:445:                                   patches) from <source package>
DEBUG util.py:445:        -rf                        build through %conf (%prep, then %conf) from
DEBUG util.py:445:                                   <specfile>
DEBUG util.py:445:        -rc                        build through %build (%prep, %conf, then
DEBUG util.py:445:                                   compile) from <source package>
DEBUG util.py:445:        -rd                        check build dependencies <source package>
DEBUG util.py:445:        -ri                        build through %install (%prep, %conf, %build,
DEBUG util.py:445:                                   then install) from <source package>
DEBUG util.py:445:        -rl                        verify %files section from <source package>
DEBUG util.py:445:        -ra                        build source and binary packages from <source
DEBUG util.py:445:                                   package>
DEBUG util.py:445:        -rb                        build binary package only from <source
DEBUG util.py:445:                                   package>
DEBUG util.py:445:        -rs                        build source package only from <source
DEBUG util.py:445:                                   package>
DEBUG util.py:445:        -rr                        build source package only from <source
DEBUG util.py:445:                                   package> - calculate dynamic build requires
DEBUG util.py:445:        -tp                        build through %prep (unpack sources and apply
DEBUG util.py:445:                                   patches) from <tarball>
DEBUG util.py:445:        -tf                        build through %conf (%prep, then %conf) from
DEBUG util.py:445:                                   <specfile>
DEBUG util.py:445:        -tc                        build through %build (%prep, %conf, then
DEBUG util.py:445:                                   compile) from <tarball>
DEBUG util.py:445:        -td                        check build dependencies <tarball>
DEBUG util.py:445:        -ti                        build through %install (%prep, %conf, %build,
DEBUG util.py:445:                                   then install) from <tarball>
DEBUG util.py:445:        -ta                        build source and binary packages from
DEBUG util.py:445:                                   <tarball>
DEBUG util.py:445:        -tb                        build binary package only from <tarball>
DEBUG util.py:445:        -ts                        build source package only from <tarball>
DEBUG util.py:445:        -tr                        build source package only from <tarball> -
DEBUG util.py:445:                                   calculate dynamic build requires
DEBUG util.py:445:        --rebuild                  build binary package from <source package>
DEBUG util.py:445:        --recompile                build through %install (%prep, %build, then
DEBUG util.py:445:                                   install) from <source package>
DEBUG util.py:445:        --buildroot=DIRECTORY      override build root
DEBUG util.py:445:        --build-in-place           run build in current directory
DEBUG util.py:445:        --clean                    remove build tree when done
DEBUG util.py:445:        --nobuild                  do not execute any stages of the build
DEBUG util.py:445:        --nodeps                   do not verify build dependencies
DEBUG util.py:445:        --nodirtokens              generate package header(s) compatible with
DEBUG util.py:445:                                   (legacy) rpm v3 packaging
DEBUG util.py:445:        --noclean                  do not execute %clean stage of the build
DEBUG util.py:445:        --noprep                   do not execute %prep stage of the build
DEBUG util.py:445:        --nocheck                  do not execute %check stage of the build
DEBUG util.py:445:        --rmsource                 remove sources when done
DEBUG util.py:445:        --rmspec                   remove specfile when done
DEBUG util.py:445:        --short-circuit            skip straight to specified stage (only for
DEBUG util.py:445:                                   c,i)
DEBUG util.py:445:        --target=CPU-VENDOR-OS     override target platform
DEBUG util.py:445:  Common options for all rpm modes and executables:
DEBUG util.py:445:    -D, --define='MACRO EXPR'      define MACRO with value EXPR
DEBUG util.py:445:        --undefine=MACRO           undefine MACRO
DEBUG util.py:445:    -E, --eval='EXPR'              print macro expansion of EXPR
DEBUG util.py:445:        --target=CPU-VENDOR-OS     Specify target platform
DEBUG util.py:445:        --macros=<FILE:...>        read <FILE:...> instead of default file(s)
DEBUG util.py:445:        --load=<FILE>              load a single macro file
DEBUG util.py:445:        --noplugins                don't enable any plugins
DEBUG util.py:445:        --nodigest                 don't verify package digest(s)
DEBUG util.py:445:        --nosignature              don't verify package signature(s)
DEBUG util.py:445:        --rcfile=<FILE:...>        read <FILE:...> instead of default file(s)
DEBUG util.py:445:    -r, --root=ROOT                use ROOT as top level directory (default: "/")
DEBUG util.py:445:        --dbpath=DIRECTORY         use database in DIRECTORY
DEBUG util.py:445:        --querytags                display known query tags
DEBUG util.py:445:        --showrc                   display final rpmrc and macro configuration
DEBUG util.py:445:        --quiet                    provide less detailed output
DEBUG util.py:445:    -v, --verbose                  provide more detailed output
DEBUG util.py:445:        --version                  print the version of rpm being used
DEBUG util.py:445:  Options implemented via popt alias/exec:
DEBUG util.py:445:        --with=<option>            enable configure <option> for build
DEBUG util.py:445:        --without=<option>         disable configure <option> for build
DEBUG util.py:445:        --scm=<scm>                shortcut for '--define="__scm <scm>"'
DEBUG util.py:445:        --buildpolicy=<policy>     set buildroot <policy> (e.g. compress man
DEBUG util.py:445:                                   pages)
DEBUG util.py:445:        --trace                    trace macro expansion
DEBUG util.py:445:        --nodebuginfo              do not generate debuginfo for this package
DEBUG util.py:445:  Help options:
DEBUG util.py:445:    -?, --help                     Show this help message
DEBUG util.py:445:        --usage                    Display brief usage message
DEBUG util.py:596:  Child return code was: 0

@praiskup
Copy link
Member

BTW we may also clean this message on mock output

There's a #999 tracking that issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants