+ exec
+ rm -rf /rpmbuild
+ mkdir -p /rpmbuild
+ su -c 'rpmbuild -ba /builddir/build/SPECS/liblzf.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.OcDKQ6
+ umask 022
+ cd /builddir/build/BUILD
+ cd /builddir/build/BUILD
+ rm -rf liblzf-3.6
+ /usr/bin/tar -xof -
+ /usr/bin/gzip -dc /builddir/build/SOURCES/liblzf-3.6.tar.gz
+ STATUS=0
+ '[' 0 -ne 0 ']'
+ cd liblzf-3.6
+ /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w .
+ echo 'Patch #0 (liblzf-3.6-autoconf-20140314.patch):'
Patch #0 (liblzf-3.6-autoconf-20140314.patch):
+ /usr/bin/patch --no-backup-if-mismatch -p1 --fuzz=0
patching file bootstrap.sh
patching file config.h.in
patching file configure.ac
patching file liblzf.pc.in
patching file Makefile.am
patching file Makefile.in
+ exit 0
Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.RJDxdd
+ umask 022
+ cd /builddir/build/BUILD
+ cd liblzf-3.6
+ sh ./bootstrap.sh
+ mkdir -p config
+ aclocal -I config
+ autoheader
+ libtoolize --automake
+ automake --add-missing --copy --foreign
configure.ac:22: warning: AM_INIT_AUTOMAKE: two- and three-arguments forms are deprecated.  For more info, see:
configure.ac:22: http://www.gnu.org/software/automake/manual/automake.html#Modernize-AM_005fINIT_005fAUTOMAKE-invocation
configure.ac:7: installing 'config/compile'
configure.ac:5: installing 'config/config.guess'
configure.ac:5: installing 'config/config.sub'
configure.ac:22: installing 'config/install-sh'
configure.ac:22: installing 'config/missing'
Makefile.am:15: warning: 'INCLUDES' is the old name for 'AM_CPPFLAGS' (or '*_CPPFLAGS')
Makefile.am: installing 'config/depcomp'
+ autoconf
+ 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
+ for i in $(find . -name ltmain.sh)
+ /usr/bin/sed -i.backup -e 's~compiler_flags=$~compiler_flags="-specs=/usr/lib/rpm/redhat/redhat-hardened-ld"~' ./config/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 --disable-static
checking build system type... riscv64-redhat-linux-gnu
checking host system type... riscv64-redhat-linux-gnu
checking target system type... riscv64-redhat-linux-gnu
checking for riscv64-redhat-linux-gnu-gcc... 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 whether gcc understands -c and -o together... yes
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 getopt.h usability... yes
checking getopt.h presence... yes
checking for getopt.h... yes
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /usr/bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for style of include used by make... GNU
checking whether make supports nested variables... yes
checking dependency style of gcc... none
checking for maximum warnings compiler flag... -Wall -pedantic -pipe -O3 -funroll-all-loops
checking how to print strings... printf
checking for a sed that does not truncate output... /usr/bin/sed
checking for fgrep... /usr/bin/grep -F
checking for ld used by gcc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B
checking the name lister (/usr/bin/nm -B) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 1572864
checking how to convert riscv64-redhat-linux-gnu file names to riscv64-redhat-linux-gnu format... func_convert_file_noop
checking how to convert riscv64-redhat-linux-gnu file names to toolchain format... func_convert_file_noop
checking for /usr/bin/ld option to reload object files... -r
checking for riscv64-redhat-linux-gnu-objdump... no
checking for objdump... objdump
checking how to recognize dependent libraries... pass_all
checking for riscv64-redhat-linux-gnu-dlltool... no
checking for dlltool... no
checking how to associate runtime and link libraries... printf %s\n
checking for riscv64-redhat-linux-gnu-ar... no
checking for ar... ar
checking for archiver @FILE support... @
checking for riscv64-redhat-linux-gnu-strip... no
checking for strip... strip
checking for riscv64-redhat-linux-gnu-ranlib... no
checking for ranlib... ranlib
checking command to parse /usr/bin/nm -B output from gcc object... ok
checking for sysroot... no
checking for a working dd... /usr/bin/dd
checking how to truncate binary pipes... /usr/bin/dd bs=4096 count=1
checking for riscv64-redhat-linux-gnu-mt... no
checking for mt... no
checking if : is a manifest tool... no
checking for dlfcn.h... yes
checking for objdir... .libs
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -fPIC -DPIC
checking if gcc PIC flag -fPIC -DPIC works... yes
checking if gcc static flag -static works... no
checking if gcc supports -c -o file.o... yes
checking if gcc supports -c -o file.o... (cached) yes
checking whether the gcc linker (/usr/bin/ld) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... no
checking whether ln -s works... yes
checking limits.h usability... yes
checking limits.h presence... yes
checking for limits.h... yes
checking errno.h usability... yes
checking errno.h presence... yes
checking for errno.h... yes
checking fcntl.h usability... yes
checking fcntl.h presence... yes
checking for fcntl.h... yes
checking stdio.h usability... yes
checking stdio.h presence... yes
checking for stdio.h... yes
checking for special C compiler options needed for large files... no
checking for _FILE_OFFSET_BITS value needed for large files... no
checking for riscv64-redhat-linux-gnu-gcc... gcc
checking whether we are using the GNU C compiler... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for gcc option to accept ISO C89... (cached) none needed
checking whether gcc understands -c and -o together... (cached) yes
checking for riscv64-redhat-linux-gnu-ranlib... ranlib
checking for ANSI C header files... (cached) yes
checking for an ANSI C-conforming const... yes
checking for inline... inline
checking for getopt.h... (cached) yes
checking for getopt_long... yes
checking that generated files are newer than configure... done
configure: creating ./config.status
config.status: creating Makefile
config.status: creating liblzf.pc
config.status: creating config.h
config.status: executing depfiles commands
config.status: executing libtool commands
+ make -j4
make  all-am
make[1]: Entering directory '/builddir/build/BUILD/liblzf-3.6'
/bin/sh ./libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I. -I/usr/include -DLOCALEDIR=\"/usr/share/locale\"    -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  -c -o lzf_c.lo lzf_c.c
/bin/sh ./libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I. -I/usr/include -DLOCALEDIR=\"/usr/share/locale\"    -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  -c -o lzf_d.lo lzf_d.c
gcc -DHAVE_CONFIG_H -I. -I/usr/include -DLOCALEDIR=\"/usr/share/locale\"    -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  -c -o lzf.o lzf.c
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I/usr/include -DLOCALEDIR=\"/usr/share/locale\" -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 -c lzf_c.c  -fPIC -DPIC -o .libs/lzf_c.o
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I/usr/include -DLOCALEDIR=\"/usr/share/locale\" -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 -c lzf_d.c  -fPIC -DPIC -o .libs/lzf_d.o
/bin/sh ./libtool  --tag=CC   --mode=link 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  -no-undefined -version-info 1:0:0 -Wl,-z,relro  -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -o liblzf.la -rpath /usr/lib64 lzf_c.lo lzf_d.lo  
libtool: link: gcc -shared  -fPIC -DPIC  .libs/lzf_c.o .libs/lzf_d.o   -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -O2 -g -fstack-protector-strong -grecord-gcc-switches -Wl,-z -Wl,relro   -Wl,-soname -Wl,liblzf.so.1 -o .libs/liblzf.so.1.0.0
libtool: link: (cd ".libs" && rm -f "liblzf.so.1" && ln -s "liblzf.so.1.0.0" "liblzf.so.1")
libtool: link: (cd ".libs" && rm -f "liblzf.so" && ln -s "liblzf.so.1.0.0" "liblzf.so")
libtool: link: ( cd ".libs" && rm -f "liblzf.la" && ln -s "../liblzf.la" "liblzf.la" )
/bin/sh ./libtool  --tag=CC   --mode=link 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   -Wl,-z,relro  -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -o lzf lzf.o  liblzf.la 
libtool: link: 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 -Wl,-z -Wl,relro -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -o .libs/lzf lzf.o  ./.libs/liblzf.so
make[1]: Leaving directory '/builddir/build/BUILD/liblzf-3.6'
+ exit 0
Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.Gsv0Yd
+ umask 022
+ cd /builddir/build/BUILD
+ '[' /builddir/build/BUILDROOT/liblzf-3.6-14.fc28.riscv64 '!=' / ']'
+ rm -rf /builddir/build/BUILDROOT/liblzf-3.6-14.fc28.riscv64
++ dirname /builddir/build/BUILDROOT/liblzf-3.6-14.fc28.riscv64
+ mkdir -p /builddir/build/BUILDROOT
+ mkdir /builddir/build/BUILDROOT/liblzf-3.6-14.fc28.riscv64
+ cd liblzf-3.6
+ make install DESTDIR=/builddir/build/BUILDROOT/liblzf-3.6-14.fc28.riscv64
make[1]: Entering directory '/builddir/build/BUILD/liblzf-3.6'
 /usr/bin/mkdir -p '/builddir/build/BUILDROOT/liblzf-3.6-14.fc28.riscv64/usr/lib64'
 /bin/sh ./libtool   --mode=install /usr/bin/install -c   liblzf.la '/builddir/build/BUILDROOT/liblzf-3.6-14.fc28.riscv64/usr/lib64'
libtool: install: /usr/bin/install -c .libs/liblzf.so.1.0.0 /builddir/build/BUILDROOT/liblzf-3.6-14.fc28.riscv64/usr/lib64/liblzf.so.1.0.0
libtool: install: (cd /builddir/build/BUILDROOT/liblzf-3.6-14.fc28.riscv64/usr/lib64 && { ln -s -f liblzf.so.1.0.0 liblzf.so.1 || { rm -f liblzf.so.1 && ln -s liblzf.so.1.0.0 liblzf.so.1; }; })
libtool: install: (cd /builddir/build/BUILDROOT/liblzf-3.6-14.fc28.riscv64/usr/lib64 && { ln -s -f liblzf.so.1.0.0 liblzf.so || { rm -f liblzf.so && ln -s liblzf.so.1.0.0 liblzf.so; }; })
libtool: install: /usr/bin/install -c .libs/liblzf.lai /builddir/build/BUILDROOT/liblzf-3.6-14.fc28.riscv64/usr/lib64/liblzf.la
libtool: warning: remember to run 'libtool --finish /usr/lib64'
 /usr/bin/mkdir -p '/builddir/build/BUILDROOT/liblzf-3.6-14.fc28.riscv64/usr/bin'
  /bin/sh ./libtool   --mode=install /usr/bin/install -c lzf '/builddir/build/BUILDROOT/liblzf-3.6-14.fc28.riscv64/usr/bin'
libtool: warning: 'liblzf.la' has not been installed in '/usr/lib64'
libtool: install: /usr/bin/install -c .libs/lzf /builddir/build/BUILDROOT/liblzf-3.6-14.fc28.riscv64/usr/bin/lzf
 /usr/bin/mkdir -p '/builddir/build/BUILDROOT/liblzf-3.6-14.fc28.riscv64/usr/include'
 /usr/bin/install -c -m 644 lzf.h lzfP.h '/builddir/build/BUILDROOT/liblzf-3.6-14.fc28.riscv64/usr/include'
 /usr/bin/mkdir -p '/builddir/build/BUILDROOT/liblzf-3.6-14.fc28.riscv64/usr/lib64/pkgconfig'
 /usr/bin/install -c -m 644 liblzf.pc '/builddir/build/BUILDROOT/liblzf-3.6-14.fc28.riscv64/usr/lib64/pkgconfig'
make[1]: Leaving directory '/builddir/build/BUILD/liblzf-3.6'
+ pushd /builddir/build/BUILDROOT/liblzf-3.6-14.fc28.riscv64/usr/bin
~/build/BUILDROOT/liblzf-3.6-14.fc28.riscv64/usr/bin ~/build/BUILD/liblzf-3.6
+ ln -s lzf unlzf
+ popd
~/build/BUILD/liblzf-3.6
+ rm -f /builddir/build/BUILDROOT/liblzf-3.6-14.fc28.riscv64/usr/lib64/liblzf.la
+ /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: liblzf-3.6-14.fc28.riscv64
Executing(%doc): /bin/sh -e /var/tmp/rpm-tmp.ML4GuK
+ umask 022
+ cd /builddir/build/BUILD
+ cd liblzf-3.6
+ DOCDIR=/builddir/build/BUILDROOT/liblzf-3.6-14.fc28.riscv64/usr/share/doc/liblzf
+ export LC_ALL=C
+ LC_ALL=C
+ export DOCDIR
+ /usr/bin/mkdir -p /builddir/build/BUILDROOT/liblzf-3.6-14.fc28.riscv64/usr/share/doc/liblzf
+ cp -pr README /builddir/build/BUILDROOT/liblzf-3.6-14.fc28.riscv64/usr/share/doc/liblzf
+ cp -pr Changes /builddir/build/BUILDROOT/liblzf-3.6-14.fc28.riscv64/usr/share/doc/liblzf
+ cp -pr LICENSE /builddir/build/BUILDROOT/liblzf-3.6-14.fc28.riscv64/usr/share/doc/liblzf
+ cp -pr cs /builddir/build/BUILDROOT/liblzf-3.6-14.fc28.riscv64/usr/share/doc/liblzf
+ exit 0
Provides: liblzf = 3.6-14.fc28 liblzf(riscv-64) = 3.6-14.fc28 liblzf.so.1()(64bit)
Requires(interp): /sbin/ldconfig /sbin/ldconfig
Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1
Requires(post): /sbin/ldconfig
Requires(postun): /sbin/ldconfig
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) liblzf.so.1()(64bit) rtld(GNU_HASH)
Processing files: liblzf-devel-3.6-14.fc28.riscv64
Provides: liblzf-devel = 3.6-14.fc28 liblzf-devel(riscv-64) = 3.6-14.fc28 pkgconfig(liblzf) = 3.6.0
Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1
Requires: /usr/bin/pkg-config liblzf.so.1()(64bit)
Checking for unpackaged file(s): /usr/lib/rpm/check-files /builddir/build/BUILDROOT/liblzf-3.6-14.fc28.riscv64
Wrote: /builddir/build/SRPMS/liblzf-3.6-14.fc28.src.rpm
Wrote: /builddir/build/RPMS/riscv64/liblzf-3.6-14.fc28.riscv64.rpm
Wrote: /builddir/build/RPMS/riscv64/liblzf-devel-3.6-14.fc28.riscv64.rpm
Executing(%clean): /bin/sh -e /var/tmp/rpm-tmp.yTaTHJ
+ umask 022
+ cd /builddir/build/BUILD
+ cd liblzf-3.6
+ /usr/bin/rm -rf /builddir/build/BUILDROOT/liblzf-3.6-14.fc28.riscv64
+ exit 0
+ touch /buildok
+ cleanup
+ set +e
+ sync
+ sleep 5
+ sync
+ poweroff
Terminated
++ cleanup
++ set +e
++ sync
+++ cleanup
+++ set +e
+++ sync
+++ sleep 5
+++ sync
+++ poweroff