D: [iurt_root_command] chroot warning: %patchN is deprecated (2 usages found), use %patch N (or %patch -P N) Installing /home/pterjan/rpmbuild/SRPMS/ziptool-1.4.0-18.mga10.src.rpm Building target platforms: x86_64 Building for target x86_64 Executing(%prep): /bin/sh -e /home/pterjan/rpmbuild/tmp/rpm-tmp.dKaBVV + umask 022 + cd /home/pterjan/rpmbuild/BUILD + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + cd /home/pterjan/rpmbuild/BUILD + rm -rf ziptool-1.4.0 + /usr/lib/rpm/rpmuncompress -x /home/pterjan/rpmbuild/SOURCES/ziptool-1.4.0.tar.bz2 + STATUS=0 + '[' 0 -ne 0 ']' + cd ziptool-1.4.0 + rm -rf /home/pterjan/rpmbuild/BUILD/ziptool-1.4.0-SPECPARTS + /usr/bin/mkdir -p /home/pterjan/rpmbuild/BUILD/ziptool-1.4.0-SPECPARTS + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + echo 'Patch #0 (ziptool-1.4.0-build-fix.patch):' Patch #0 (ziptool-1.4.0-build-fix.patch): + /usr/bin/patch --no-backup-if-mismatch -f -p1 -b --suffix .build --fuzz=0 patching file ziptool.c + echo 'Patch #1 (ziptool-1.4.0-format-security.patch):' Patch #1 (ziptool-1.4.0-format-security.patch): + /usr/bin/patch --no-backup-if-mismatch -f -p1 -b --suffix .format-security --fuzz=0 patching file ziptool.c Hunk #1 succeeded at 520 (offset -21 lines). + /usr/bin/gzip -d ziptool.1.gz + RPM_EC=0 ++ jobs -p + exit 0 Executing(%build): /bin/sh -e /home/pterjan/rpmbuild/tmp/rpm-tmp.cwZl1v + umask 022 + cd /home/pterjan/rpmbuild/BUILD + cd ziptool-1.4.0 + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + /usr/bin/make -O -j8 V=1 VERBOSE=1 'CFLAGS=-O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=2 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full' cc -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=2 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -I/usr/src/linux/include -o ziptool ziptool.c ziptool.c: In function 'jazip_lockdoor': ziptool.c:313:12: error: type of 'jazipfd' defaults to 'int' [-Wimplicit-int] 313 | static int jazip_lockdoor(jazipfd) | ^~~~~~~~~~~~~~ ziptool.c: In function 'jazip_check_dev': ziptool.c:239:17: warning: ignoring return value of 'fgets' declared with attribute 'warn_unused_result' [-Wunused-result] 239 | fgets(mounts, 254, mtab_fp); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ make: *** [Makefile:33: ziptool] Error 1 error: Bad exit status from /home/pterjan/rpmbuild/tmp/rpm-tmp.cwZl1v (%build) RPM build warnings: %patchN is deprecated (2 usages found), use %patch N (or %patch -P N) RPM build errors: Bad exit status from /home/pterjan/rpmbuild/tmp/rpm-tmp.cwZl1v (%build) I: [iurt_root_command] ERROR: chroot