+ exec + rm -rf /rpmbuild + mkdir -p /rpmbuild + su -c 'rpmbuild -ba /builddir/build/SPECS/units.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.aNLJUv + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf units-2.14 + /usr/bin/gzip -dc /builddir/build/SOURCES/units-2.14.tar.gz + /usr/bin/tar -xof - + STATUS=0 + '[' 0 -ne 0 ']' + cd units-2.14 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + echo 'Patch #1 (0001-units-2.14-units_cur-default-path.patch):' Patch #1 (0001-units-2.14-units_cur-default-path.patch): + /usr/bin/patch --no-backup-if-mismatch -p1 --fuzz=0 patching file Makefile.in + install -p -m0755 /builddir/build/SOURCES/units-2.15-units_cur units_cur2 + touch units_cur3 + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.OIJsAV + umask 022 + cd /builddir/build/BUILD + cd units-2.14 + 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 + '[' 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 configure: WARNING: unrecognized options: --disable-dependency-tracking checking for riscv64-redhat-linux-gnu-gcc... no checking for riscv64-redhat-linux-gnu-cc... no checking for riscv64-redhat-linux-gnu-egcs... no checking for riscv64-redhat-linux-gnu-cl.exe... no checking for 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 gcc option to accept ISO C99... none needed checking whether C compiler accepts -fpic... yes checking for an ANSI C-conforming const... yes checking for a BSD-compatible install... /usr/bin/install -c checking for a thread-safe mkdir -p... /usr/bin/mkdir -p checking for library containing sin... -lm checking for readline in -lreadline... yes checking whether rl_completion_suppress_append is declared... no checking how to run the C preprocessor... gcc -E checking for grep that handles long lines and -e... /usr/bin/grep checking for egrep... /usr/bin/grep -E checking for ANSI C header files... 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 for stdlib.h... (cached) yes checking for strchr... yes checking for strspn... yes checking for strtok... yes checking for setenv... yes checking for setlocale... yes checking for locale and UTF-8 support... yes checking for isfinite... yes checking for mksinfo... no checking for python... /usr/bin/python configure: creating ./config.status config.status: creating Makefile configure: WARNING: unrecognized options: --disable-dependency-tracking + make -j4 gcc -DUNITSFILE=\"/usr/share/units/definitions.units\" -DLOCALEMAP=\"/usr/share/units/locale_map.txt\" -DREADLINE -DNO_SUPPRESS_APPEND -DSUPPORT_UTF8 -DPACKAGE_NAME=\"GNU\ units\" -DPACKAGE_TARNAME=\"units\" -DPACKAGE_VERSION=\"2.14\" -DPACKAGE_STRING=\"GNU\ units\ 2.14\" -DPACKAGE_BUGREPORT=\"adrianm@gnu.org\" -DPACKAGE_URL=\"http://www.gnu.org/software/units/\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -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 -fpic -I. -c units.c gcc -DUNITSFILE=\"/usr/share/units/definitions.units\" -DLOCALEMAP=\"/usr/share/units/locale_map.txt\" -DREADLINE -DNO_SUPPRESS_APPEND -DSUPPORT_UTF8 -DPACKAGE_NAME=\"GNU\ units\" -DPACKAGE_TARNAME=\"units\" -DPACKAGE_VERSION=\"2.14\" -DPACKAGE_STRING=\"GNU\ units\ 2.14\" -DPACKAGE_BUGREPORT=\"adrianm@gnu.org\" -DPACKAGE_URL=\"http://www.gnu.org/software/units/\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -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 -fpic -I. -c parse.tab.c gcc -DUNITSFILE=\"/usr/share/units/definitions.units\" -DLOCALEMAP=\"/usr/share/units/locale_map.txt\" -DREADLINE -DNO_SUPPRESS_APPEND -DSUPPORT_UTF8 -DPACKAGE_NAME=\"GNU\ units\" -DPACKAGE_TARNAME=\"units\" -DPACKAGE_VERSION=\"2.14\" -DPACKAGE_STRING=\"GNU\ units\ 2.14\" -DPACKAGE_BUGREPORT=\"adrianm@gnu.org\" -DPACKAGE_URL=\"http://www.gnu.org/software/units/\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -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 -fpic -I. -c getopt.c gcc -DUNITSFILE=\"/usr/share/units/definitions.units\" -DLOCALEMAP=\"/usr/share/units/locale_map.txt\" -DREADLINE -DNO_SUPPRESS_APPEND -DSUPPORT_UTF8 -DPACKAGE_NAME=\"GNU\ units\" -DPACKAGE_TARNAME=\"units\" -DPACKAGE_VERSION=\"2.14\" -DPACKAGE_STRING=\"GNU\ units\ 2.14\" -DPACKAGE_BUGREPORT=\"adrianm@gnu.org\" -DPACKAGE_URL=\"http://www.gnu.org/software/units/\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -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 -fpic -I. -c getopt1.c sed s!@DATAFILE@!/usr/share/units/definitions.units! ./units.man > units.1 Creating units_cur for Python 2 sed -e "s@outfile_name = 'currency.units'@outfile_name='/usr/share/units/currency.units'@"\ -e "s@/usr/bin/python@/usr/bin/python@" \ units_cur > units_cur_inst units.c: In function 'readunits': units.c:735:41: warning: value computed is not used [-Wunused-value] #define readerror (goterr=1) && errfile && fprintf ^ units.c:1560:9: note: in expansion of macro 'readerror' readerror(errfile, "%s: %s on line %d of '%s'\n", ^~~~~~~~~ units.c:735:41: warning: value computed is not used [-Wunused-value] #define readerror (goterr=1) && errfile && fprintf ^ units.c:1569:11: note: in expansion of macro 'readerror' readerror(errfile, VAGUE_ERR); ^~~~~~~~~ units.c:735:41: warning: value computed is not used [-Wunused-value] #define readerror (goterr=1) && errfile && fprintf ^ units.c:1582:13: note: in expansion of macro 'readerror' readerror(errfile, ^~~~~~~~~ units.c:735:41: warning: value computed is not used [-Wunused-value] #define readerror (goterr=1) && errfile && fprintf ^ units.c:1586:13: note: in expansion of macro 'readerror' readerror(errfile, ^~~~~~~~~ units.c:735:41: warning: value computed is not used [-Wunused-value] #define readerror (goterr=1) && errfile && fprintf ^ units.c:1590:13: note: in expansion of macro 'readerror' readerror(errfile, ^~~~~~~~~ units.c:735:41: warning: value computed is not used [-Wunused-value] #define readerror (goterr=1) && errfile && fprintf ^ units.c:1598:15: note: in expansion of macro 'readerror' readerror(errfile, ^~~~~~~~~ units.c:735:41: warning: value computed is not used [-Wunused-value] #define readerror (goterr=1) && errfile && fprintf ^ units.c:1610:13: note: in expansion of macro 'readerror' readerror(errfile, ^~~~~~~~~ units.c:735:41: warning: value computed is not used [-Wunused-value] #define readerror (goterr=1) && errfile && fprintf ^ units.c:1620:13: note: in expansion of macro 'readerror' readerror(errfile, ^~~~~~~~~ units.c:735:41: warning: value computed is not used [-Wunused-value] #define readerror (goterr=1) && errfile && fprintf ^ units.c:1624:13: note: in expansion of macro 'readerror' readerror(errfile, ^~~~~~~~~ units.c:735:41: warning: value computed is not used [-Wunused-value] #define readerror (goterr=1) && errfile && fprintf ^ units.c:1636:13: note: in expansion of macro 'readerror' readerror(errfile, ^~~~~~~~~ units.c:735:41: warning: value computed is not used [-Wunused-value] #define readerror (goterr=1) && errfile && fprintf ^ units.c:1645:13: note: in expansion of macro 'readerror' readerror(errfile,"%s: nested utf8 not allowed, line %d of '%s'\n", ^~~~~~~~~ units.c:735:41: warning: value computed is not used [-Wunused-value] #define readerror (goterr=1) && errfile && fprintf ^ units.c:1652:13: note: in expansion of macro 'readerror' readerror(errfile,"%s: unmatched !endutf8 on line %d of '%s'\n", ^~~~~~~~~ units.c:735:41: warning: value computed is not used [-Wunused-value] #define readerror (goterr=1) && errfile && fprintf ^ units.c:1670:13: note: in expansion of macro 'readerror' readerror(errfile, ^~~~~~~~~ units.c:735:41: warning: value computed is not used [-Wunused-value] #define readerror (goterr=1) && errfile && fprintf ^ units.c:1674:13: note: in expansion of macro 'readerror' readerror(errfile, ^~~~~~~~~ units.c:735:41: warning: value computed is not used [-Wunused-value] #define readerror (goterr=1) && errfile && fprintf ^ units.c:1684:13: note: in expansion of macro 'readerror' readerror(errfile,VAGUE_ERR); ^~~~~~~~~ units.c:735:41: warning: value computed is not used [-Wunused-value] #define readerror (goterr=1) && errfile && fprintf ^ units.c:1693:13: note: in expansion of macro 'readerror' readerror(errfile, ^~~~~~~~~ units.c:735:41: warning: value computed is not used [-Wunused-value] #define readerror (goterr=1) && errfile && fprintf ^ units.c:1702:15: note: in expansion of macro 'readerror' readerror(errfile, ^~~~~~~~~ units.c:735:41: warning: value computed is not used [-Wunused-value] #define readerror (goterr=1) && errfile && fprintf ^ units.c:1724:15: note: in expansion of macro 'readerror' readerror(errfile, "%s: cannot open included file '%s' at line %d of file '%s\n", ^~~~~~~~~ units.c:735:41: warning: value computed is not used [-Wunused-value] #define readerror (goterr=1) && errfile && fprintf ^ units.c:1733:11: note: in expansion of macro 'readerror' readerror(errfile,VAGUE_ERR); ^~~~~~~~~ units.c:735:41: warning: value computed is not used [-Wunused-value] #define readerror (goterr=1) && errfile && fprintf ^ units.c:1741:9: note: in expansion of macro 'readerror' readerror(errfile, ^~~~~~~~~ units.c: In function 'checkcwd': units.c:3856:9: warning: unused variable 'p' [-Wunused-variable] char *p; ^ units.c: In function 'printversion': units.c:4388:21: warning: unused variable 'localemap' [-Wunused-variable] char *unitsfile, *localemap; ^~~~~~~~~ units.c: In function 'showfunction': units.c:2772:21: warning: 'not_dimensionless' may be used uninitialized in this function [-Wmaybe-uninitialized] if (func->dimen && (not_dimensionless || unit.factor != 1)){ ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 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 -fpic -Wl,-z,relro -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -o units units.o parse.tab.o getopt.o getopt1.o -lreadline -lm + exit 0 Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.KfTkaD + umask 022 + cd /builddir/build/BUILD + '[' /builddir/build/BUILDROOT/units-2.14-5.fc28.riscv64 '!=' / ']' + rm -rf /builddir/build/BUILDROOT/units-2.14-5.fc28.riscv64 ++ dirname /builddir/build/BUILDROOT/units-2.14-5.fc28.riscv64 + mkdir -p /builddir/build/BUILDROOT + mkdir /builddir/build/BUILDROOT/units-2.14-5.fc28.riscv64 + cd units-2.14 + make install DESTDIR=/builddir/build/BUILDROOT/units-2.14-5.fc28.riscv64 /usr/bin/mkdir -p /builddir/build/BUILDROOT/units-2.14-5.fc28.riscv64/usr/share/man/man1 /usr/bin/install -c -m 644 units.1 /builddir/build/BUILDROOT/units-2.14-5.fc28.riscv64/usr/share/man/man1/`echo units|sed 's&^&&'`.1 /usr/bin/mkdir -p /builddir/build/BUILDROOT/units-2.14-5.fc28.riscv64/usr/share/info if test -f units.info; then d=.; \ else d=.; fi; \ /usr/bin/install -c -m 644 $d/units.info /builddir/build/BUILDROOT/units-2.14-5.fc28.riscv64/usr/share/info/units.info; \ # Run install-info only if it exists. if test -f /builddir/build/BUILDROOT/units-2.14-5.fc28.riscv64/usr/share/info/dir; then \ if /bin/sh -c 'install-info --version' \ >/dev/null 2>&1; then \ install-info --dir-file=/builddir/build/BUILDROOT/units-2.14-5.fc28.riscv64/usr/share/info/dir \ /builddir/build/BUILDROOT/units-2.14-5.fc28.riscv64/usr/share/info/units.info; \ else true; fi \ else true; fi Trying to update currency.units (will use existing file if this fails) ./units_cur DEPRECATION WARNING: python2 invoked with /usr/bin/python. Use /usr/bin/python3 or /usr/bin/python2 /usr/bin/python will be removed or switched to Python 3 in the future. If you cannot make the switch now, please follow instructions at https://fedoraproject.org/wiki/Changes/Avoid_usr_bin_python_in_RPM_Build#Quick_Opt-Out Traceback (most recent call last): File "./units_cur", line 14, in import requests ImportError: No module named requests make: [Makefile:237: currency.units] Error 1 (ignored) /usr/bin/mkdir -p /builddir/build/BUILDROOT/units-2.14-5.fc28.riscv64/usr/share/units/ /builddir/build/BUILDROOT/units-2.14-5.fc28.riscv64/usr/bin /usr/bin/install -c -m 644 ./definitions.units /builddir/build/BUILDROOT/units-2.14-5.fc28.riscv64/usr/share/units/definitions.units /usr/bin/install -c -m 644 ./currency.units /builddir/build/BUILDROOT/units-2.14-5.fc28.riscv64/usr/share/units/currency.units /usr/bin/install -c -m 644 ./locale_map.txt /builddir/build/BUILDROOT/units-2.14-5.fc28.riscv64/usr/share/units/locale_map.txt if test yes = yes; then \ /usr/bin/install -c units_cur_inst /builddir/build/BUILDROOT/units-2.14-5.fc28.riscv64/usr/bin/`echo units_cur|sed 's&^&&'`;fi if test no = yes; then make install-mks; fi /usr/bin/mkdir -p /builddir/build/BUILDROOT/units-2.14-5.fc28.riscv64/usr/bin /usr/bin/install -c units /builddir/build/BUILDROOT/units-2.14-5.fc28.riscv64/usr/bin/`echo units|sed 's&^&&'` + gzip /builddir/build/BUILDROOT/units-2.14-5.fc28.riscv64/usr/share/info/units.info + ln -s units.1 /builddir/build/BUILDROOT/units-2.14-5.fc28.riscv64/usr/share/man/man1/units_cur.1 + /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 *** WARNING: mangling shebang in ./usr/bin/units_cur from #!/usr/bin/python to #!/usr/bin/python2. This will become an ERROR, fix it manually! Processing files: units-2.14-5.fc28.riscv64 Executing(%doc): /bin/sh -e /var/tmp/rpm-tmp.0KCqr1 + umask 022 + cd /builddir/build/BUILD + cd units-2.14 + DOCDIR=/builddir/build/BUILDROOT/units-2.14-5.fc28.riscv64/usr/share/doc/units + export LC_ALL=C + LC_ALL=C + export DOCDIR + /usr/bin/mkdir -p /builddir/build/BUILDROOT/units-2.14-5.fc28.riscv64/usr/share/doc/units + cp -pr ChangeLog /builddir/build/BUILDROOT/units-2.14-5.fc28.riscv64/usr/share/doc/units + cp -pr COPYING /builddir/build/BUILDROOT/units-2.14-5.fc28.riscv64/usr/share/doc/units + cp -pr NEWS /builddir/build/BUILDROOT/units-2.14-5.fc28.riscv64/usr/share/doc/units + cp -pr README /builddir/build/BUILDROOT/units-2.14-5.fc28.riscv64/usr/share/doc/units + exit 0 Provides: units = 2.14-5.fc28 units(riscv-64) = 2.14-5.fc28 Requires(interp): /bin/sh /bin/sh Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 Requires(post): /bin/sh /sbin/install-info Requires(preun): /bin/sh /sbin/install-info Requires: /usr/bin/python2 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) libm.so.6()(64bit) libm.so.6(GLIBC_2.27)(64bit) libreadline.so.7()(64bit) rtld(GNU_HASH) Checking for unpackaged file(s): /usr/lib/rpm/check-files /builddir/build/BUILDROOT/units-2.14-5.fc28.riscv64 Wrote: /builddir/build/SRPMS/units-2.14-5.fc28.src.rpm Wrote: /builddir/build/RPMS/riscv64/units-2.14-5.fc28.riscv64.rpm Executing(%clean): /bin/sh -e /var/tmp/rpm-tmp.2pfgur + umask 022 + cd /builddir/build/BUILD + cd units-2.14 + /usr/bin/rm -rf /builddir/build/BUILDROOT/units-2.14-5.fc28.riscv64 + exit 0 + touch /buildok + cleanup + set +e + sync + sleep 5 + sync + poweroff Terminated ++ cleanup ++ set +e ++ sync Terminated +++ cleanup +++ set +e +++ sync +++ sleep 5 +++ sync +++ poweroff