+ exec + rm -rf /rpmbuild + mkdir -p /rpmbuild + su -c 'rpmbuild -ba /builddir/build/SPECS/altermime.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.wWO8QN + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf altermime-0.3.10 + /usr/bin/gzip -dc /builddir/build/SOURCES/altermime-0.3.10.tar.gz + /usr/bin/tar -xof - + STATUS=0 + '[' 0 -ne 0 ']' + cd altermime-0.3.10 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + echo 'Patch #0 (altermime-0.3.10-fprintf-compiler-error.patch):' Patch #0 (altermime-0.3.10-fprintf-compiler-error.patch): + /usr/bin/patch --no-backup-if-mismatch -p0 --fuzz=0 patching file qpe.c + echo 'Patch #1 (altermime-0.3.10-cflags.patch):' Patch #1 (altermime-0.3.10-cflags.patch): + /usr/bin/patch --no-backup-if-mismatch -p0 --fuzz=0 patching file Makefile + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.l11hVc + umask 022 + cd /builddir/build/BUILD + cd altermime-0.3.10 + 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 + make -j4 cc -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 strstack.c cc -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 mime_alter.c cc -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 ffget.c cc -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 pldstr.c pldstr.c: In function 'PLD_strtok': pldstr.c:300:30: warning: comparison between pointer and zero character constant [-Wpointer-compare] if ((st->start)&&(st->start != '\0')) ^~ pldstr.c:300:20: note: did you mean to dereference the pointer? if ((st->start)&&(st->start != '\0')) ^ mime_alter.c: In function 'AM_add_disclaimer': mime_alter.c:2435:6: warning: variable 'segment_read' set but not used [-Wunused-but-set-variable] int segment_read = 0; ^~~~~~~~~~~~ mime_alter.c: In function 'AM_attachment_replace_recurse': mime_alter.c:3701:6: warning: variable 'boundary_exists' set but not used [-Wunused-but-set-variable] int boundary_exists=0; ^~~~~~~~~~~~~~~ cc -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 filename-filters.c cc -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 logger.c cc -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 MIME_headers.c cc -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 libmime-decoders.c MIME_headers.c: In function 'MIMEH_read_headers': MIME_headers.c:1089:8: warning: variable 'headerline_end' set but not used [-Wunused-but-set-variable] char *headerline_end; ^~~~~~~~~~~~~~ MIME_headers.c:1084:6: warning: variable 'firstline' set but not used [-Wunused-but-set-variable] int firstline = 1; ^~~~~~~~~ MIME_headers.c: In function 'MIMEH_headers_process': MIME_headers.c:2727:8: warning: variable 'safeh' set but not used [-Wunused-but-set-variable] char *safeh, *h, *safehl; ^~~~~ MIME_headers.c: In function 'MIMEH_headers_get': MIME_headers.c:2948:2: warning: 'memset' used with length equal to number of elements without multiplication by element size [-Wmemset-elt-size] memset(hinfo->defects, 0, _MIMEH_DEFECT_ARRAY_SIZE); ^~~~~~ cc -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 boundary-stack.c mime_alter.c: In function 'AM_add_disclaimer_insert_html': mime_alter.c:1509:45: warning: '__builtin___snprintf_chk' output may be truncated before the last format character [-Wformat-truncation=] snprintf(boundary, sizeof(boundary), "--%s", dd->boundary); ^ In file included from /usr/include/stdio.h:862:0, from mime_alter.c:1: /usr/include/bits/stdio2.h:64:10: note: '__builtin___snprintf_chk' output between 3 and 1026 bytes into a destination of size 1025 return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ __bos (__s), __fmt, __va_arg_pack ()); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ cc -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 qpe.c MIME_headers.c: In function 'MIMEH_save_doubleCR': MIME_headers.c:788:50: warning: '/doubleCR.' directive output may be truncated writing 10 bytes into a region of size between 0 and 1023 [-Wformat-truncation=] snprintf(glb.doubleCRname,_MIMEH_STRLEN_MAX,"%s/doubleCR.%d",glb.output_dir,glb.doubleCR_count); ^~~~~~~~~~ In file included from /usr/include/stdio.h:862:0, from MIME_headers.c:21: /usr/include/bits/stdio2.h:64:10: note: '__builtin___snprintf_chk' output between 12 and 1045 bytes into a destination of size 1023 return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ __bos (__s), __fmt, __va_arg_pack ()); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ qpe.c: In function 'qp_encode': qpe.c:49:15: warning: comparison between pointer and zero character constant [-Wpointer-compare] if (lineend != '\0') { ^~ qpe.c:49:7: note: did you mean to dereference the pointer? if (lineend != '\0') { ^ MIME_headers.c: In function 'MIMEH_parse_contenttype': MIME_headers.c:2014:58: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size 129 [-Wformat-truncation=] snprintf(hinfo->filename, sizeof(hinfo->filename), "%s.applemeta", glb.appledouble_filename ); ^~ ~~~ In file included from /usr/include/stdio.h:862:0, from MIME_headers.c:21: /usr/include/bits/stdio2.h:64:10: note: '__builtin___snprintf_chk' output between 11 and 1034 bytes into a destination of size 129 return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ __bos (__s), __fmt, __va_arg_pack ()); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ MIME_headers.c:2132:61: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size 129 [-Wformat-truncation=] snprintf( hinfo->filename, sizeof(hinfo->filename), "%s", hinfo->name ); ^~ In file included from /usr/include/stdio.h:862:0, from MIME_headers.c:21: /usr/include/bits/stdio2.h:64:10: note: '__builtin_snprintf' output between 1 and 1024 bytes into a destination of size 129 return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ __bos (__s), __fmt, __va_arg_pack ()); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In function 'snprintf', inlined from 'MIMEH_parse_contentlocation.part.4' at MIME_headers.c:2246:4, inlined from 'MIMEH_parse_contentlocation': /usr/include/bits/stdio2.h:64:10: warning: '__builtin___snprintf_chk': specified bound 1024 exceeds the size 129 of the destination [-Wstringop-overflow=] return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ __bos (__s), __fmt, __va_arg_pack ()); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ MIME_headers.c: In function 'MIMEH_parse_contentdisposition': MIME_headers.c:2498:58: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size 129 [-Wformat-truncation=] snprintf( hinfo->filename, sizeof(hinfo->filename), "%s", hinfo->name ); ^~ In file included from /usr/include/stdio.h:862:0, from MIME_headers.c:21: /usr/include/bits/stdio2.h:64:10: note: '__builtin_snprintf' output between 1 and 1024 bytes into a destination of size 129 return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ __bos (__s), __fmt, __va_arg_pack ()); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ MIME_headers.c: In function 'MIMEH_headers_process': MIME_headers.c:2875:36: warning: '%s' directive output may be truncated writing up to 128 bytes into a region of size 124 [-Wformat-truncation=] snprintf( tmp, sizeof(tmp), "mac-%s", hinfo->filename ); ^~ In file included from /usr/include/stdio.h:862:0, from MIME_headers.c:21: /usr/include/bits/stdio2.h:64:10: note: '__builtin___snprintf_chk' output between 5 and 133 bytes into a destination of size 128 return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ __bos (__s), __fmt, __va_arg_pack ()); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ cc -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 altermime.c strstack.o mime_alter.o ffget.o pldstr.o filename-filters.o logger.o MIME_headers.o libmime-decoders.o boundary-stack.o qpe.o -o altermime + exit 0 Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.8Gq7pH + umask 022 + cd /builddir/build/BUILD + '[' /builddir/build/BUILDROOT/altermime-0.3.10-16.fc28.riscv64 '!=' / ']' + rm -rf /builddir/build/BUILDROOT/altermime-0.3.10-16.fc28.riscv64 ++ dirname /builddir/build/BUILDROOT/altermime-0.3.10-16.fc28.riscv64 + mkdir -p /builddir/build/BUILDROOT + mkdir /builddir/build/BUILDROOT/altermime-0.3.10-16.fc28.riscv64 + cd altermime-0.3.10 + rm -rf /builddir/build/BUILDROOT/altermime-0.3.10-16.fc28.riscv64 + /usr/bin/mkdir -p /builddir/build/BUILDROOT/altermime-0.3.10-16.fc28.riscv64/usr/bin + /usr/bin/install -m 755 altermime /builddir/build/BUILDROOT/altermime-0.3.10-16.fc28.riscv64/usr/bin/ + /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: altermime-0.3.10-16.fc28.riscv64 Executing(%doc): /bin/sh -e /var/tmp/rpm-tmp.p0OulR + umask 022 + cd /builddir/build/BUILD + cd altermime-0.3.10 + DOCDIR=/builddir/build/BUILDROOT/altermime-0.3.10-16.fc28.riscv64/usr/share/doc/altermime + export LC_ALL=C + LC_ALL=C + export DOCDIR + /usr/bin/mkdir -p /builddir/build/BUILDROOT/altermime-0.3.10-16.fc28.riscv64/usr/share/doc/altermime + cp -pr CHANGELOG /builddir/build/BUILDROOT/altermime-0.3.10-16.fc28.riscv64/usr/share/doc/altermime + cp -pr LICENCE /builddir/build/BUILDROOT/altermime-0.3.10-16.fc28.riscv64/usr/share/doc/altermime + cp -pr README /builddir/build/BUILDROOT/altermime-0.3.10-16.fc28.riscv64/usr/share/doc/altermime + exit 0 Provides: altermime = 0.3.10-16.fc28 altermime(riscv-64) = 0.3.10-16.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) rtld(GNU_HASH) Checking for unpackaged file(s): /usr/lib/rpm/check-files /builddir/build/BUILDROOT/altermime-0.3.10-16.fc28.riscv64 Wrote: /builddir/build/SRPMS/altermime-0.3.10-16.fc28.src.rpm Wrote: /builddir/build/RPMS/riscv64/altermime-0.3.10-16.fc28.riscv64.rpm Executing(%clean): /bin/sh -e /var/tmp/rpm-tmp.iL0t1o + umask 022 + cd /builddir/build/BUILD + cd altermime-0.3.10 + rm -rf /builddir/build/BUILDROOT/altermime-0.3.10-16.fc28.riscv64 + exit 0 + touch /buildok + cleanup + set +e + sync + sleep 5 + sync + poweroff Terminated ++ cleanup ++ set +e ++ sync ++ sleep 5 +++ cleanup +++ set +e +++ sync +++ sleep 5 +++ sync +++ poweroff