Mock Version: 1.4.21 Mock Version: 1.4.21 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target riscv64 --nodeps /builddir/build/SPECS/certwatch.spec'], chrootPath='/var/lib/mock/f33-build-513963-64522/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': 'en_US.UTF-8'}shell=Falselogger=timeout=432000uid=987gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target riscv64 --nodeps /builddir/build/SPECS/certwatch.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': 'en_US.UTF-8'} and shell False Building target platforms: riscv64 Building for target riscv64 setting SOURCE_DATE_EPOCH=1596240000 Wrote: /builddir/build/SRPMS/certwatch-1.2-4.fc33.src.rpm Child return code was: 0 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --target riscv64 --nodeps /builddir/build/SPECS/certwatch.spec'], chrootPath='/var/lib/mock/f33-build-513963-64522/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': 'en_US.UTF-8'}shell=Falselogger=timeout=432000uid=987gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --target riscv64 --nodeps /builddir/build/SPECS/certwatch.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': 'en_US.UTF-8'} and shell False Building target platforms: riscv64 Building for target riscv64 setting SOURCE_DATE_EPOCH=1596240000 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.dFQHwc + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf certwatch-1.2 + /usr/bin/tar -xof - + /usr/bin/gzip -dc /builddir/build/SOURCES/certwatch-1.2.tar.gz + STATUS=0 + '[' 0 -ne 0 ']' + cd certwatch-1.2 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + autoreconf -i + RPM_EC=0 ++ jobs -p + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.6luiPc + umask 022 + cd /builddir/build/BUILD + cd certwatch-1.2 + CFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection' + export CFLAGS + CXXFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection' + export CXXFLAGS + FFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -I/usr/lib64/gfortran/modules' + export FFLAGS + FCFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -I/usr/lib64/gfortran/modules' + export FCFLAGS + LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld ' + export LDFLAGS + LT_SYS_LIBRARY_PATH=/usr/lib64: + export LT_SYS_LIBRARY_PATH + CC=gcc + export CC + CXX=g++ + export CXX + '[' '-flto=auto -ffat-lto-objectsx' '!=' x ']' ++ find . -type f -name configure -print + for file in $(find . -type f -name configure -print) + /usr/bin/sed -r --in-place=.backup 's/^char \(\*f\) \(\) = /__attribute__ ((used)) char (*f) () = /g' ./configure + diff -u ./configure.backup ./configure + mv ./configure.backup ./configure + /usr/bin/sed -r --in-place=.backup 's/^char \(\*f\) \(\);/__attribute__ ((used)) char (*f) ();/g' ./configure + diff -u ./configure.backup ./configure + mv ./configure.backup ./configure + /usr/bin/sed -r --in-place=.backup 's/^char \$2 \(\);/__attribute__ ((used)) char \$2 ();/g' ./configure + diff -u ./configure.backup ./configure + mv ./configure.backup ./configure + /usr/bin/sed --in-place=.backup '1{$!N;$!N};$!N;s/int x = 1;\nint y = 0;\nint z;\nint nan;/volatile int x = 1; volatile int y = 0; volatile int z, nan;/;P;D' ./configure + diff -u ./configure.backup ./configure + mv ./configure.backup ./configure + /usr/bin/sed --in-place=.backup 's#^lt_cv_sys_global_symbol_to_cdecl=.*#lt_cv_sys_global_symbol_to_cdecl="sed -n -e '\''s/^T .* \\(.*\\)$/extern int \\1();/p'\'' -e '\''s/^$symcode* .* \\(.*\\)$/extern char \\1;/p'\''"#' ./configure + diff -u ./configure.backup ./configure + mv ./configure.backup ./configure + '[' 1 = 1 ']' +++ dirname ./configure ++ find . -name config.guess -o -name config.sub + '[' 1 = 1 ']' + '[' x '!=' 'x-Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld' ']' ++ find . -name ltmain.sh + ./configure --build=riscv64-redhat-linux-gnu --host=riscv64-redhat-linux-gnu --program-prefix= --disable-dependency-tracking --prefix=/usr --exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --sysconfdir=/etc --datadir=/usr/share --includedir=/usr/include --libdir=/usr/lib64 --libexecdir=/usr/libexec --localstatedir=/var --sharedstatedir=/var/lib --mandir=/usr/share/man --infodir=/usr/share/info configure: WARNING: unrecognized options: --disable-dependency-tracking checking for xmlto... xmlto checking for riscv64-redhat-linux-gnu-gcc... gcc checking whether the C compiler works... yes checking for C compiler default output file name... a.out checking for suffix of executables... checking whether we are cross compiling... no checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether gcc accepts -g... yes checking for gcc option to accept ISO C89... none needed checking for X509_get_subject_name in -lcrypto... yes configure: creating ./config.status config.status: creating Makefile configure: WARNING: unrecognized options: --disable-dependency-tracking + /usr/bin/make -O -j4 V=1 VERBOSE=1 gcc -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -Wall -Wextra -Werror=format-security -c -o certwatch.o certwatch.c xmlto man certwatch.cron.xml Note: Writing certwatch.cron.5 xmlto man certwatch.xml Note: Writing certwatch.1 gcc -Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -o certwatch certwatch.o -lcrypto + RPM_EC=0 ++ jobs -p + exit 0 Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.mw5EHb + umask 022 + cd /builddir/build/BUILD + '[' /builddir/build/BUILDROOT/certwatch-1.2-4.fc33.riscv64 '!=' / ']' + rm -rf /builddir/build/BUILDROOT/certwatch-1.2-4.fc33.riscv64 ++ dirname /builddir/build/BUILDROOT/certwatch-1.2-4.fc33.riscv64 + mkdir -p /builddir/build/BUILDROOT + mkdir /builddir/build/BUILDROOT/certwatch-1.2-4.fc33.riscv64 + cd certwatch-1.2 + /usr/bin/make install DESTDIR=/builddir/build/BUILDROOT/certwatch-1.2-4.fc33.riscv64 'INSTALL=/usr/bin/install -p' mkdir -p /builddir/build/BUILDROOT/certwatch-1.2-4.fc33.riscv64/usr/bin /builddir/build/BUILDROOT/certwatch-1.2-4.fc33.riscv64/usr/share/man/man1 /builddir/build/BUILDROOT/certwatch-1.2-4.fc33.riscv64/usr/share/man/man5 cp certwatch /builddir/build/BUILDROOT/certwatch-1.2-4.fc33.riscv64/usr/bin/certwatch cp certwatch.1 /builddir/build/BUILDROOT/certwatch-1.2-4.fc33.riscv64/usr/share/man/man1/certwatch.1 cp certwatch.cron.5 /builddir/build/BUILDROOT/certwatch-1.2-4.fc33.riscv64/usr/share/man/man5/certwatch.cron.5 + install -d -m 755 /builddir/build/BUILDROOT/certwatch-1.2-4.fc33.riscv64/etc/cron.daily + install -m 755 -p certwatch.cron /builddir/build/BUILDROOT/certwatch-1.2-4.fc33.riscv64/etc/cron.daily/certwatch + /usr/lib/rpm/find-debuginfo.sh -j4 --strict-build-id -m -i --build-id-seed 1.2-4.fc33 --unique-debug-suffix -1.2-4.fc33.riscv64 --unique-debug-src-base certwatch-1.2-4.fc33.riscv64 --run-dwz --dwz-low-mem-die-limit 10000000 --dwz-max-die-limit 50000000 -S debugsourcefiles.list /builddir/build/BUILD/certwatch-1.2 explicitly decompress any DWARF compressed ELF sections in /builddir/build/BUILDROOT/certwatch-1.2-4.fc33.riscv64/usr/bin/certwatch extracting debug info from /builddir/build/BUILDROOT/certwatch-1.2-4.fc33.riscv64/usr/bin/certwatch original debug info size: 64kB, size after compression: 68kB /usr/lib/rpm/sepdebugcrcfix: Updated 1 CRC32s, 0 CRC32s did match. 16 blocks + /usr/lib/rpm/check-buildroot + /usr/lib/rpm/redhat/brp-ldconfig + /usr/lib/rpm/brp-compress + /usr/lib/rpm/redhat/brp-strip-lto /usr/bin/strip + /usr/lib/rpm/brp-strip-static-archive /usr/bin/strip + /usr/lib/rpm/redhat/brp-python-bytecompile '' 1 0 + /usr/lib/rpm/brp-python-hardlink + /usr/lib/rpm/redhat/brp-mangle-shebangs mangling shebang in /etc/cron.daily/certwatch from /bin/bash to #!/usr/bin/bash Executing(%check): /bin/sh -e /var/tmp/rpm-tmp.HTXjYa + umask 022 + cd /builddir/build/BUILD + cd certwatch-1.2 + export TZ=UTC + TZ=UTC + make check cd t && prove -v . # Test 9 got: "To: root\nSubject: The certificate for www.example.com will expire today\n\n ################# SSL/TLS Certificate Warning ################\n\n Certificate for hostname 'www.example.com', in file:\n\n certw.1d\n\n The certificate needs to be renewed. Web browsers and \n other clients will not be able to correctly connect to this\n web site using SSL/TLS until the certificate is renewed.\n\n ##############################################################\n Generated by certwatch(1)\n\n" (./certwatch.t at line 37) # Expected: "/Subject: The certificate for www.example.com will expire tomorrow/" # ./certwatch.t line 37 is: ok `$certwatch certw.1d`, "/$pfx will expire tomorrow/"; # Test 10 got: "To: root\nSubject: The certificate for www.example.com will expire in 21 days\n\n ################# SSL/TLS Certificate Warning ################\n\n Certificate for hostname 'www.example.com', in file:\n\n certw.22d\n\n The certificate needs to be renewed. Web browsers and \n other clients will not be able to correctly connect to this\n web site using SSL/TLS until the certificate is renewed.\n\n ##############################################################\n Generated by certwatch(1)\n\n" (./certwatch.t at line 38) # Expected: "/Subject: The certificate for www.example.com will expire in 22 days/" # ./certwatch.t line 38 is: ok `$certwatch certw.22d`, "/$pfx will expire in 22 days/"; # Test 11 got: "To: root\nSubject: The certificate for www.example.com will expire in 28 days\n\n ################# SSL/TLS Certificate Warning ################\n\n Certificate for hostname 'www.example.com', in file:\n\n certw.29d\n\n The certificate needs to be renewed. Web browsers and \n other clients will not be able to correctly connect to this\n web site using SSL/TLS until the certificate is renewed.\n\n ##############################################################\n Generated by certwatch(1)\n\n" (./certwatch.t at line 39) # Expected: "/Subject: The certificate for www.example.com will expire in 29 days/" # ./certwatch.t line 39 is: ok `$certwatch certw.29d`, "/$pfx will expire in 29 days/"; # Test 12 got: "To: root\nSubject: The certificate for www.example.com will expire in 29 days\n\n ################# SSL/TLS Certificate Warning ################\n\n Certificate for hostname 'www.example.com', in file:\n\n certw.31d\n\n The certificate needs to be renewed. Web browsers and \n other clients will not be able to correctly connect to this\n web site using SSL/TLS until the certificate is renewed.\n\n ##############################################################\n Generated by certwatch(1)\n\n" (./certwatch.t at line 40) # Expected: "" # ./certwatch.t line 40 is: ok `$certwatch certw.31d`, ''; # Test 18 got: "" (./certwatch.t at line 47) # Expected: "/Subject: The certificate for another.example.com is not yet valid/" # ./certwatch.t line 47 is: ok `$certwatch notvalid.pem`, # Failed test 20 in ./certwatch.t at line 53 # ./certwatch.t line 53 is: ok system("$certwatch -q certw.$c") != 0; # Test 29 got: "256" (./certwatch.t at line 58 fail #5) # Expected: "0" # ./certwatch.t line 58 is: ok system("$certwatch -q $c"), 0; ./certwatch.t .. 1..39 # Running under perl version 5.032000 for linux # Current time local: Tue Feb 2 09:53:15 2021 # Current time GMT: Tue Feb 2 09:53:15 2021 # Using Test.pm version 1.31 ok 1 ok 2 ok 3 ok 4 ok 5 ok 6 ok 7 ok 8 not ok 9 not ok 10 not ok 11 not ok 12 ok 13 ok 14 ok 15 ok 16 ok 17 not ok 18 ok 19 not ok 20 ok 21 ok 22 ok 23 ok 24 ok 25 ok 26 ok 27 ok 28 not ok 29 ok 30 ok 31 ok 32 ok 33 ok 34 ok 35 ok 36 ok 37 ok 38 ok 39 Failed 7/39 subtests Test Summary Report ------------------- ./certwatch.t (Wstat: 0 Tests: 39 Failed: 7) Failed tests: 9-12, 18, 20, 29 Files=1, Tests=39, 10 wallclock secs ( 0.80 usr 0.19 sys + 5.76 cusr 2.49 csys = 9.24 CPU) Result: FAIL RPM build errors: make: *** [Makefile:26: check] Error 1 error: Bad exit status from /var/tmp/rpm-tmp.HTXjYa (%check) Bad exit status from /var/tmp/rpm-tmp.HTXjYa (%check) Child return code was: 1 EXCEPTION: [Error()] Traceback (most recent call last): File "/usr/lib/python3.8/site-packages/mockbuild/trace_decorator.py", line 95, in trace result = func(*args, **kw) File "/usr/lib/python3.8/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: # bash --login -c /usr/bin/rpmbuild -bb --target riscv64 --nodeps /builddir/build/SPECS/certwatch.spec