Mock Version: 3.5 Mock Version: 3.5 Mock Version: 3.5 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --noclean --target loongarch64 --nodeps /builddir/build/SPECS/grubby.spec'], chrootPath='/var/lib/mock/dist-an8.8-build-333686-69617/root'env={'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8'}shell=Falselogger=timeout=86400uid=976gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --noclean --target loongarch64 --nodeps /builddir/build/SPECS/grubby.spec'] with env {'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8'} and shell False Building target platforms: loongarch64 Building for target loongarch64 Wrote: /builddir/build/SRPMS/grubby-8.40-48.an8.src.rpm Child return code was: 0 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --noclean --target loongarch64 --nodeps /builddir/build/SPECS/grubby.spec'], chrootPath='/var/lib/mock/dist-an8.8-build-333686-69617/root'env={'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8'}shell=Falselogger=timeout=86400uid=976gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --noclean --target loongarch64 --nodeps /builddir/build/SPECS/grubby.spec'] with env {'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8'} and shell False Building target platforms: loongarch64 Building for target loongarch64 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.OPMZuT + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf grubby-8.40-1 + /usr/bin/gzip -dc /builddir/build/SOURCES/8.40-1.tar.gz + /usr/bin/tar -xof - + STATUS=0 + '[' 0 -ne 0 ']' + cd grubby-8.40-1 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + git init hint: Using 'master' as the name for the initial branch. This default branch name hint: is subject to change. To configure the initial branch name to use in all hint: of your new repositories, which will suppress this warning, call: hint: hint: git config --global init.defaultBranch hint: hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and hint: 'development'. The just-created branch can be renamed via this command: hint: hint: git branch -m Initialized empty Git repository in /builddir/build/BUILD/grubby-8.40-1/.git/ + git config user.email noone@example.com + git config user.name 'no one' + git add . + git commit -a -q -m '8.40 baseline' + git branch start + git am /builddir/build/SOURCES/0001-Set-envFile-from-env-when-bootloader-is-not-specifie.patch /builddir/build/SOURCES/0002-add-README-with-description-of-the-test-suite.patch /builddir/build/SOURCES/0003-Fix-some-stray-whitespace.patch /builddir/build/SOURCES/0004-grubby-properly-handle-mixed-and-and-nested-quotes.patch /builddir/build/SOURCES/0005-Don-t-put-spaces-in-debug-entries-on-zipl-platforms.patch /builddir/build/SOURCES/0006-Drop-SEGV-handler.patch /builddir/build/SOURCES/0007-Add-a-bunch-of-tests-for-various-default-kernel-titl.patch /builddir/build/SOURCES/0008-Emit-better-systemd-debug-settings-on-debug-entries.patch /builddir/build/SOURCES/0009-Add-a-new-makefile-target-that-does-everything-neede.patch /builddir/build/SOURCES/0010-Make-the-grub1-defaultkernel-test-more-reliable.patch /builddir/build/SOURCES/0011-Don-t-leak-from-one-extractTitle-call.patch /builddir/build/SOURCES/0012-ppc64le-sync-grub.cfg-changes-to-disk-1212114.patch /builddir/build/SOURCES/0013-Make-it-possible-to-run-test.sh-verbose-from-the-mak.patch /builddir/build/SOURCES/0014-Lindent-dammit.patch /builddir/build/SOURCES/0015-Make-SET_VARIABLE-get-handled-individually-in-GetNex.patch /builddir/build/SOURCES/0016-Specify-bootloader-directory-in-the-test-case-for-11.patch /builddir/build/SOURCES/0017-Fix-dracut-cmdline-options-and-conditionalize-them-t.patch /builddir/build/SOURCES/0018-Add-missing-space.patch /builddir/build/SOURCES/0019-Always-do-the-rungrubby-debug-after-the-normal-kerne.patch /builddir/build/SOURCES/0020-grubby-add-set-index-to-specify-which-position-to-ad.patch /builddir/build/SOURCES/0021-Fix-thinko-on-set-index-naming.patch /builddir/build/SOURCES/0022-Add-a-test-case-for-a-failure-rmarshall-saw-in-set-i.patch /builddir/build/SOURCES/0023-Ensure-command-line-updates-also-honor-set-index.patch /builddir/build/SOURCES/0024-Change-debug-entry-insertion-order-rhbz-1285601.patch /builddir/build/SOURCES/0025-Reorganize-grubby-man-page-1232168.patch /builddir/build/SOURCES/0026-Update-grubby-man-page-contents-bz1232168.patch /builddir/build/SOURCES/0027-Fix-inline-help-typo-1232168.patch /builddir/build/SOURCES/0028-More-edits-for-grubby.8-1232168.patch /builddir/build/SOURCES/0029-Minor-man-page-changes-1232168.patch /builddir/build/SOURCES/0030-Rename-setDefaultImage-variables.patch /builddir/build/SOURCES/0031-Add-index-constant-definitions-instead-of-open-coded.patch /builddir/build/SOURCES/0032-Track-configuration-modifications.patch /builddir/build/SOURCES/0033-Fix-some-test-cases-where-the-resulting-default-inde.patch /builddir/build/SOURCES/0034-Don-t-assume-make-default-just-because-set-index-was.patch /builddir/build/SOURCES/0035-Clarify-set-default-index-in-the-man-page.patch /builddir/build/SOURCES/0036-Add-multi-entry-removal-test-1285601.patch /builddir/build/SOURCES/0037-Fix-findTemplate-index-logic-1285601.patch /builddir/build/SOURCES/0038-Write-correct-default-to-environment-1285601.patch /builddir/build/SOURCES/0039-Initialize-variable-for-ppc-environment-1285601.patch /builddir/build/SOURCES/0040-Fix-initial-saved_entry-read-issue-1285601.patch /builddir/build/SOURCES/0041-Add-s390-s390x-info-test-1285601.patch /builddir/build/SOURCES/0042-Fix-info-for-s390x-s390-1285601.patch /builddir/build/SOURCES/0043-Add-s390-s390x-set-default-index-test-1285601.patch /builddir/build/SOURCES/0044-Fix-setDefaultImage-for-s390-s390x-1285601.patch /builddir/build/SOURCES/0045-Be-more-thorough-about-flushing-our-config-file-when.patch /builddir/build/SOURCES/0046-Fix-incorrect-test-case-and-remove-args-with-a-value.patch /builddir/build/SOURCES/0047-grubby-Make-sure-configure-BOOTLOADER-variables-are-.patch /builddir/build/SOURCES/0048-remove-the-old-crufty-u-boot-support.patch /builddir/build/SOURCES/0049-Change-return-type-in-getRootSpecifier.patch /builddir/build/SOURCES/0050-Add-btrfs-subvolume-support-for-grub2.patch /builddir/build/SOURCES/0051-Add-tests-for-btrfs-support.patch /builddir/build/SOURCES/0052-Use-system-LDFLAGS.patch /builddir/build/SOURCES/0053-Honor-sbindir.patch /builddir/build/SOURCES/0054-Make-installkernel-to-use-kernel-install-scripts-on-.patch /builddir/build/SOURCES/0055-Add-usr-libexec-rpm-sort.patch /builddir/build/SOURCES/0056-Improve-man-page-for-info-option.patch .git/rebase-apply/patch:56: trailing whitespace. .git/rebase-apply/patch:80: trailing whitespace. initial test conditions (either existing one or a new one), provide a warning: 2 lines add whitespace errors. .git/rebase-apply/patch:2475: trailing whitespace. probably responsible for putting new images in the wrong .git/rebase-apply/patch:7919: trailing whitespace. /* don't have a template, so start the entry with the .git/rebase-apply/patch:7920: trailing whitespace. * appropriate starting line warning: 3 lines add whitespace errors. .git/rebase-apply/patch:118: trailing whitespace. option may not be used in the same invocation. warning: 1 line adds whitespace errors. .git/rebase-apply/patch:146: new blank line at EOF. + warning: 1 line adds whitespace errors. Applying: Set envFile from --env when bootloader is not specified Applying: add README with description of the test suite Applying: Fix some stray whitespace Applying: grubby: properly handle mixed ' and " and nested quotes Applying: Don't put spaces in debug entries on zipl platforms. Applying: Drop SEGV handler Applying: Add a bunch of tests for various --default-{kernel,title,index}. Applying: Emit better systemd debug settings on debug entries. Applying: Add a new makefile target that does everything needed for jenkins. Applying: Make the grub1 "defaultkernel" test more reliable. Applying: Don't leak from one extractTitle() call. Applying: ppc64le sync grub.cfg changes to disk (#1212114) Applying: Make it possible to run "test.sh --verbose" from the make command line. Applying: Lindent, dammit. Applying: Make SET_VARIABLE get handled individually in GetNextLine() Applying: Specify bootloader directory in the test case for 1152550. Applying: Fix dracut cmdline options and conditionalize them to --add-dracut-args Applying: Add missing space Applying: Always do the "rungrubby --debug" after the normal kernel on install. Applying: grubby: add --set-index to specify which position to add new entries as Applying: Fix thinko on --set-index naming. Applying: Add a test case for a failure rmarshall saw in --set-index= Applying: Ensure command line updates also honor --set-index Applying: Change debug entry insertion order (rhbz#1285601) Applying: Reorganize grubby man page (#1232168) Applying: Update grubby man page contents (#bz1232168) Applying: Fix inline help typo (#1232168) Applying: More edits for grubby.8 (#1232168) Applying: Minor man page changes (#1232168) Applying: Rename setDefaultImage variables Applying: Add index constant definitions instead of open-coded values. Applying: Track configuration modifications Applying: Fix some test cases where the resulting default index is wrong Applying: Don't assume --make-default just because --set-index was passed. Applying: Clarify --set-default-index in the man page. Applying: Add multi-entry removal test (#1285601) Applying: Fix findTemplate index logic (#1285601) Applying: Write correct default to environment (#1285601) Applying: Initialize variable for ppc environment (#1285601) Applying: Fix initial saved_entry read issue (#1285601) Applying: Add s390/s390x --info test (#1285601) Applying: Fix --info for s390x/s390 (#1285601) Applying: Add s390/s390x set-default-index test (#1285601) Applying: Fix setDefaultImage for s390/s390x (#1285601) Applying: Be more thorough about flushing our config file when writing. Applying: Fix incorrect test case and --remove-args with a value. Applying: grubby: Make sure configure$BOOTLOADER variables are set correctly. Applying: remove the old crufty u-boot support Applying: Change return type in getRootSpecifier() Applying: Add btrfs subvolume support for grub2 Applying: Add tests for btrfs support Applying: Use system LDFLAGS Applying: Honor sbindir Applying: Make installkernel to use kernel-install scripts on BLS configuration Applying: Add /usr/libexec/rpm-sort Applying: Improve man page for --info option + git config --unset user.email + git config --unset user.name + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.I8Z8Jn + umask 022 + cd /builddir/build/BUILD + cd grubby-8.40-1 + CFLAGS='-O2 -g' + export CFLAGS + CXXFLAGS='-O2 -g' + export CXXFLAGS + FFLAGS='-O2 -g -I/usr/lib64/gfortran/modules' + export FFLAGS + FCFLAGS='-O2 -g -I/usr/lib64/gfortran/modules' + export FCFLAGS + LDFLAGS='-Wl,-z,relro -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld' + export LDFLAGS + make -j16 'LDFLAGS=-Wl,-z,relro -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld' gcc -O2 -g -O2 -g -std=gnu99 -Wall -Werror -Wno-error=unused-function -Wno-unused-function -ggdb -DVERSION='"8.40"' -c -o grubby.o grubby.c gcc -O2 -g -O2 -g -std=gnu99 -Wall -Werror -Wno-error=unused-function -Wno-unused-function -ggdb -DVERSION='"8.40"' -c -o log.o log.c gcc -O2 -g -O2 -g -std=gnu99 -Wall -Werror -Wno-error=unused-function -Wno-unused-function -ggdb -DVERSION='"8.40"' -c -o rpm-sort.o rpm-sort.c gcc -O2 -g -O2 -g -std=gnu99 -Wall -Werror -Wno-error=unused-function -Wno-unused-function -ggdb -Wl,-z,relro -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -o rpm-sort rpm-sort.o -lrpm grubby.c: In function 'grub2ExtractTitle': grubby.c:488:3: error: 'strncat' output truncated before terminating nul copying as many bytes from a string as its length [-Werror=stringop-truncation] strncat(result, current_indent, current_indent_len); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ grubby.c:486:24: note: length computed here current_indent_len = strlen(current_indent); ^~~~~~~~~~~~~~~~~~~~~~ grubby.c:490:4: error: 'strncat' output truncated before terminating nul copying as many bytes from a string as its length [-Werror=stringop-truncation] strncat(result, current, current_len); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ grubby.c:484:17: note: length computed here current_len = strlen(current); ^~~~~~~~~~~~~~~ grubby.c: In function 'main': grubby.c:5214:3: error: 'strncat' output may be truncated copying 1 byte from a string of length 1 [-Werror=stringop-truncation] strncat(saved_command_line, j == argc - 1 ? "" : " ", 1); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In function 'readConfig', inlined from 'main' at grubby.c:5495:11: grubby.c:1456:6: error: 'strncat' specified bound depends on the length of the source argument [-Werror=stringop-overflow=] strncat(buf, title, len - 1); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ grubby.c: In function 'main': grubby.c:1454:11: note: length computed here len = strlen(title); ^~~~~~~~~~~~~ cc1: all warnings being treated as errors make: *** [Makefile:43: grubby.o] Error 1 error: Bad exit status from /var/tmp/rpm-tmp.I8Z8Jn (%build) RPM build errors: Bad exit status from /var/tmp/rpm-tmp.I8Z8Jn (%build) Child return code was: 1 EXCEPTION: [Error('Command failed: \n # bash --login -c /usr/bin/rpmbuild -bb --noclean --target loongarch64 --nodeps /builddir/build/SPECS/grubby.spec\n', 1)] Traceback (most recent call last): File "/usr/lib/python3.6/site-packages/mockbuild/trace_decorator.py", line 93, in trace result = func(*args, **kw) File "/usr/lib/python3.6/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: # bash --login -c /usr/bin/rpmbuild -bb --noclean --target loongarch64 --nodeps /builddir/build/SPECS/grubby.spec