+ exec
+ rm -rf /rpmbuild
+ mkdir -p /rpmbuild
+ su -c 'rpmbuild -ba /builddir/build/SPECS/rootsh.spec            --define "debug_package %{nil}"            --undefine _annotated_build            --define "_missing_doc_files_terminate_build %{nil}"            --define "_emacs_sitestartdir /usr/share/emacs/site-lisp/site-start.d"            --define "_emacs_sitelispdir /usr/share/emacs/site-lisp"            --nocheck   ' mockbuild
Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.b9EG7t
+ umask 022
+ cd /builddir/build/BUILD
+ cd /builddir/build/BUILD
+ rm -rf rootsh-1.5.3
+ /usr/bin/gzip -dc /builddir/build/SOURCES/rootsh-1.5.3.tar.gz
+ /usr/bin/tar -xof -
+ STATUS=0
+ '[' 0 -ne 0 ']'
+ cd rootsh-1.5.3
+ /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w .
+ echo 'Patch #0 (rootsh-1.5.3-open-needs-3-args.patch):'
Patch #0 (rootsh-1.5.3-open-needs-3-args.patch):
+ /usr/bin/patch --no-backup-if-mismatch -p1 --fuzz=0
patching file src/rootsh.c
+ exit 0
Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.54bOPy
+ umask 022
+ cd /builddir/build/BUILD
+ cd rootsh-1.5.3
+ CFLAGS='-O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 '
+ export CFLAGS
+ CXXFLAGS='-O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 '
+ export CXXFLAGS
+ FFLAGS='-O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1  -I/usr/lib64/gfortran/modules'
+ export FFLAGS
+ FCFLAGS='-O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1  -I/usr/lib64/gfortran/modules'
+ export FCFLAGS
+ LDFLAGS='-Wl,-z,relro  -specs=/usr/lib/rpm/redhat/redhat-hardened-ld'
+ export LDFLAGS
+ '[' 1 = 1 ']'
+++ dirname ./configure
++ find . -name config.guess -o -name config.sub
+ for i in $(find $(dirname ./configure) -name config.guess -o -name config.sub)
++ basename ./config/config.sub
+ '[' -f /usr/lib/rpm/redhat/config.sub ']'
+ /usr/bin/rm -f ./config/config.sub
++ basename ./config/config.sub
+ /usr/bin/cp -fv /usr/lib/rpm/redhat/config.sub ./config/config.sub
'/usr/lib/rpm/redhat/config.sub' -> './config/config.sub'
+ for i in $(find $(dirname ./configure) -name config.guess -o -name config.sub)
++ basename ./config/config.guess
+ '[' -f /usr/lib/rpm/redhat/config.guess ']'
+ /usr/bin/rm -f ./config/config.guess
++ basename ./config/config.guess
+ /usr/bin/cp -fv /usr/lib/rpm/redhat/config.guess ./config/config.guess
'/usr/lib/rpm/redhat/config.guess' -> './config/config.guess'
+ '[' 1 = 1 ']'
+ '[' x '!=' x-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
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking build system type... riscv64-redhat-linux-gnu
checking host system type... riscv64-redhat-linux-gnu
checking for syslog... enabled
checking for syslog facility... local5.notice
checking for syslog linenumbering... enabled
checking for username in syslog... enabled
checking for logfile... enabled
checking for logdir... /var/log/rootsh
checking for maximum logfile size... 0
checking for defaultshell... /bin/bash
checking for riscv64-redhat-linux-gnu-gcc... no
checking for riscv64-redhat-linux-gnu-cc... no
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables... 
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 ANSI C... none needed
checking for style of include used by make... GNU
checking dependency style of gcc... none
checking for /etc/shells... found
checking how to run the C preprocessor... gcc -E
checking for egrep... grep -E
checking for ANSI C header files... yes
checking for LIBUTIL=-lutil in -lutil... no
checking for ANSI C header files... (cached) yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for string.h... (cached) yes
checking fcntl.h usability... yes
checking fcntl.h presence... yes
checking for fcntl.h... yes
checking sys/file.h usability... yes
checking sys/file.h presence... yes
checking for sys/file.h... yes
checking sys/param.h usability... yes
checking sys/param.h presence... yes
checking for sys/param.h... yes
checking stropts.h usability... no
checking stropts.h presence... no
checking for stropts.h... no
checking libgen.h usability... yes
checking libgen.h presence... yes
checking for libgen.h... yes
checking pty.h usability... yes
checking pty.h presence... yes
checking for pty.h... yes
checking for forkpty... no
checking for forkpty in -lutil... yes
checking getopt.h usability... yes
checking getopt.h presence... yes
checking for getopt.h... yes
checking for getopt_long... yes
checking for basename... yes
checking for getusershell... yes
checking getusershell prototype... yes
checking for clearenv... yes
checking for sigset... yes
checking for sigaction... yes
checking whether supplying sigset prototypes is permitted... yes
checking return type of signal handlers... void
checking select() and fd_set in sys/select.h and sys/bsdtypes.h... not needed
checking FD_ZERO and strings.h or bstring.h... not needed
checking for master pty... ptmx
checking if your system supports the ttcompat streams module... no
checking operating system... linux
checking for su... /usr/bin/su
checking for a BSD-compatible install... /usr/bin/install -c
checking whether make sets $(MAKE)... (cached) yes
configure: creating ./config.status
config.status: creating Makefile
config.status: creating src/Makefile
config.status: creating src/config.h
config.status: executing depfiles commands
+ make
Making all in src
make[1]: Entering directory '/builddir/build/BUILD/rootsh-1.5.3/src'
make  all-am
make[2]: Entering directory '/builddir/build/BUILD/rootsh-1.5.3/src'
gcc -DHAVE_CONFIG_H -I. -I. -I.     -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1  -Wall -Wstrict-prototypes -Wmissing-declarations   -Wnested-externs -Wpointer-arith -pedantic -pedantic -Wstrict-prototypes -c rootsh.c
rootsh.c:183:1: warning: function declaration isn't a prototype [-Wstrict-prototypes]
 extern int errno;
 ^~~~~~
rootsh.c: In function 'endlogging':
rootsh.c:837:29: warning: value computed is not used [-Wunused-value]
         unlink(logFileName) && rmdir(logFileName);
                             ^~
rootsh.c: In function 'main':
rootsh.c:542:11: warning: ignoring return value of 'write', declared with attribute warn_unused_result [-Wunused-result]
           write(STDOUT_FILENO, buf, n);
           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
rootsh.c: In function 'beginlogging':
rootsh.c:705:5: warning: ignoring return value of 'write', declared with attribute warn_unused_result [-Wunused-result]
     write(logFile, msgbuf, msglen);
     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
rootsh.c: In function 'dologging':
rootsh.c:748:5: warning: ignoring return value of 'write', declared with attribute warn_unused_result [-Wunused-result]
     write(logFile, msgbuf, msglen);
     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
rootsh.c: In function 'endlogging':
rootsh.c:803:5: warning: ignoring return value of 'write', declared with attribute warn_unused_result [-Wunused-result]
     write(logFile, msgbuf, msglen);
     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
gcc -DHAVE_CONFIG_H -I. -I. -I.     -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1  -Wall -Wstrict-prototypes -Wmissing-declarations   -Wnested-externs -Wpointer-arith -pedantic -pedantic -Wstrict-prototypes -c write2syslog.c
gcc  -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1  -Wall -Wstrict-prototypes -Wmissing-declarations   -Wnested-externs -Wpointer-arith -pedantic -pedantic -Wstrict-prototypes  -Wl,-z,relro  -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -o rootsh  rootsh.o write2syslog.o  -lutil
make[2]: Leaving directory '/builddir/build/BUILD/rootsh-1.5.3/src'
make[1]: Leaving directory '/builddir/build/BUILD/rootsh-1.5.3/src'
make[1]: Entering directory '/builddir/build/BUILD/rootsh-1.5.3'
make[1]: Nothing to be done for 'all-am'.
make[1]: Leaving directory '/builddir/build/BUILD/rootsh-1.5.3'
+ exit 0
Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.fWMnrG
+ umask 022
+ cd /builddir/build/BUILD
+ '[' /builddir/build/BUILDROOT/rootsh-1.5.3-13.fc28.riscv64 '!=' / ']'
+ rm -rf /builddir/build/BUILDROOT/rootsh-1.5.3-13.fc28.riscv64
++ dirname /builddir/build/BUILDROOT/rootsh-1.5.3-13.fc28.riscv64
+ mkdir -p /builddir/build/BUILDROOT
+ mkdir /builddir/build/BUILDROOT/rootsh-1.5.3-13.fc28.riscv64
+ cd rootsh-1.5.3
+ rm -rf /builddir/build/BUILDROOT/rootsh-1.5.3-13.fc28.riscv64
+ make DESTDIR=/builddir/build/BUILDROOT/rootsh-1.5.3-13.fc28.riscv64 install
Making install in src
make[1]: Entering directory '/builddir/build/BUILD/rootsh-1.5.3/src'
make[2]: Entering directory '/builddir/build/BUILD/rootsh-1.5.3/src'
test -z "/usr/bin" || mkdir -p -- "/builddir/build/BUILDROOT/rootsh-1.5.3-13.fc28.riscv64/usr/bin"
  /usr/bin/install -c 'rootsh' '/builddir/build/BUILDROOT/rootsh-1.5.3-13.fc28.riscv64/usr/bin/rootsh'
make[2]: Nothing to be done for 'install-data-am'.
make[2]: Leaving directory '/builddir/build/BUILD/rootsh-1.5.3/src'
make[1]: Leaving directory '/builddir/build/BUILD/rootsh-1.5.3/src'
make[1]: Entering directory '/builddir/build/BUILD/rootsh-1.5.3'
make[2]: Entering directory '/builddir/build/BUILD/rootsh-1.5.3'
make[2]: Nothing to be done for 'install-exec-am'.
test -z "/usr/share/man/man1" || mkdir -p -- "/builddir/build/BUILDROOT/rootsh-1.5.3-13.fc28.riscv64/usr/share/man/man1"
 /usr/bin/install -c -m 644 './rootsh.1' '/builddir/build/BUILDROOT/rootsh-1.5.3-13.fc28.riscv64/usr/share/man/man1/rootsh.1'
make[2]: Leaving directory '/builddir/build/BUILD/rootsh-1.5.3'
make[1]: Leaving directory '/builddir/build/BUILD/rootsh-1.5.3'
+ mkdir -p /builddir/build/BUILDROOT/rootsh-1.5.3-13.fc28.riscv64/var/log/rootsh
+ /usr/lib/rpm/check-buildroot
+ /usr/lib/rpm/redhat/brp-ldconfig
/sbin/ldconfig: Warning: ignoring configuration file that cannot be opened: /etc/ld.so.conf: No such file or directory
+ /usr/lib/rpm/brp-compress
+ /usr/lib/rpm/brp-strip /usr/bin/strip
+ /usr/lib/rpm/brp-strip-comment-note /usr/bin/strip /usr/bin/objdump
+ /usr/lib/rpm/brp-strip-static-archive /usr/bin/strip
+ /usr/lib/rpm/brp-python-bytecompile /usr/bin/python 1
+ /usr/lib/rpm/brp-python-hardlink
+ /usr/lib/rpm/redhat/brp-mangle-shebangs
Processing files: rootsh-1.5.3-13.fc28.riscv64
Executing(%doc): /bin/sh -e /var/tmp/rpm-tmp.86HF4h
+ umask 022
+ cd /builddir/build/BUILD
+ cd rootsh-1.5.3
+ DOCDIR=/builddir/build/BUILDROOT/rootsh-1.5.3-13.fc28.riscv64/usr/share/doc/rootsh
+ export LC_ALL=C
+ LC_ALL=C
+ export DOCDIR
+ /usr/bin/mkdir -p /builddir/build/BUILDROOT/rootsh-1.5.3-13.fc28.riscv64/usr/share/doc/rootsh
+ cp -pr README /builddir/build/BUILDROOT/rootsh-1.5.3-13.fc28.riscv64/usr/share/doc/rootsh
+ cp -pr AUTHORS /builddir/build/BUILDROOT/rootsh-1.5.3-13.fc28.riscv64/usr/share/doc/rootsh
+ cp -pr ChangeLog /builddir/build/BUILDROOT/rootsh-1.5.3-13.fc28.riscv64/usr/share/doc/rootsh
+ cp -pr THANKS /builddir/build/BUILDROOT/rootsh-1.5.3-13.fc28.riscv64/usr/share/doc/rootsh
+ cp -pr INSTALL /builddir/build/BUILDROOT/rootsh-1.5.3-13.fc28.riscv64/usr/share/doc/rootsh
+ cp -pr COPYING /builddir/build/BUILDROOT/rootsh-1.5.3-13.fc28.riscv64/usr/share/doc/rootsh
+ exit 0
Provides: rootsh = 1.5.3-13.fc28 rootsh(riscv-64) = 1.5.3-13.fc28
Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1
Requires: ld-linux-riscv64-lp64d.so.1()(64bit) ld-linux-riscv64-lp64d.so.1(GLIBC_2.27)(64bit) libc.so.6()(64bit) libc.so.6(GLIBC_2.27)(64bit) libutil.so.1()(64bit) libutil.so.1(GLIBC_2.27)(64bit) rtld(GNU_HASH)
Checking for unpackaged file(s): /usr/lib/rpm/check-files /builddir/build/BUILDROOT/rootsh-1.5.3-13.fc28.riscv64
Wrote: /builddir/build/SRPMS/rootsh-1.5.3-13.fc28.src.rpm
Wrote: /builddir/build/RPMS/riscv64/rootsh-1.5.3-13.fc28.riscv64.rpm
Executing(%clean): /bin/sh -e /var/tmp/rpm-tmp.yBXsqn
+ umask 022
+ cd /builddir/build/BUILD
+ cd rootsh-1.5.3
+ rm -rf /builddir/build/BUILDROOT/rootsh-1.5.3-13.fc28.riscv64
+ exit 0
+ touch /buildok
+ cleanup
+ set +e
+ sync
+ sleep 5
+ sync
+ poweroff
Terminated
++ cleanup
++ set +e
++ sync
++ sleep 5
Terminated
+++ cleanup
+++ set +e
+++ sync
+++ sleep 5
+++ sync
+++ poweroff