D: [iurt_root_command] chroot warning: %patchN is deprecated (1 usages found), use %patch N (or %patch -P N) Installing /home/pterjan/rpmbuild/SRPMS/perl-Net-FreeDB-0.100.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.CbrdUz + umask 022 + cd /home/pterjan/rpmbuild/BUILD + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + cd /home/pterjan/rpmbuild/BUILD + rm -rf Net-FreeDB-0.10 + /usr/lib/rpm/rpmuncompress -x /home/pterjan/rpmbuild/SOURCES/Net-FreeDB-0.10.tar.gz + STATUS=0 + '[' 0 -ne 0 ']' + cd Net-FreeDB-0.10 + rm -rf /home/pterjan/rpmbuild/BUILD/Net-FreeDB-0.10-SPECPARTS + /usr/bin/mkdir -p /home/pterjan/rpmbuild/BUILD/Net-FreeDB-0.10-SPECPARTS + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + echo 'Patch #0 (Net-FreeDB-0.10-fix-test.patch):' Patch #0 (Net-FreeDB-0.10-fix-test.patch): + /usr/bin/patch --no-backup-if-mismatch -f -p1 --fuzz=0 patching file t/00-basic.t + RPM_EC=0 ++ jobs -p + exit 0 Executing(%build): /bin/sh -e /home/pterjan/rpmbuild/tmp/rpm-tmp.F7rs6c + umask 022 + cd /home/pterjan/rpmbuild/BUILD + cd Net-FreeDB-0.10 + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + /usr/bin/perl Makefile.PL INSTALLDIRS=vendor ############################################################### # This update is NOT compatible with version 0.9 or earlier!! # ############################################################### OS: linux, copying XS file: 1 file copied Checking for Net::Cmd...ok Checking for CDDB::File...ok Checking if your kit is complete... Looks good Generating a Unix-style Makefile Writing Makefile for Net::FreeDB Writing MYMETA.yml and MYMETA.json + /usr/bin/make -O -j8 V=1 VERBOSE=1 Running Mkbootstrap for FreeDB () chmod 644 "FreeDB.bs" "/usr/bin/perl5.38.2" -MExtUtils::Command::MM -e 'cp_nonempty' -- FreeDB.bs blib/arch/auto/Net/FreeDB/FreeDB.bs 644 cp FreeDB.pm blib/lib/Net/FreeDB.pm cp FreeDBConnection.pm blib/lib/Net/FreeDBConnection.pm "/usr/bin/perl5.38.2" "/usr/share/perl5/ExtUtils/xsubpp" -typemap '/usr/share/perl5/ExtUtils/typemap' FreeDB.xs > FreeDB.xsc mv FreeDB.xsc FreeDB.c /usr/bin/cc -c -Ilib -D_REENTRANT -D_GNU_SOURCE -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -fwrapv -fno-strict-aliasing -fstack-protector-strong -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -g -DVERSION=\"0.10\" -DXS_VERSION=\"0.10\" -fPIC "-I/usr/lib64/perl5/CORE" FreeDB.c In file included from lib/discid.h:37, from FreeDB.xs:8: lib/linux.h: In function 'get_disc_id': lib/linux.h:54:24: error: implicit declaration of function 'read_toc' [-Wimplicit-function-declaration] 54 | data.num_of_trks = read_toc(dev); | ^~~~~~~~ make: *** [Makefile:339: FreeDB.o] Error 1 error: Bad exit status from /home/pterjan/rpmbuild/tmp/rpm-tmp.F7rs6c (%build) RPM build warnings: %patchN is deprecated (1 usages found), use %patch N (or %patch -P N) RPM build errors: Bad exit status from /home/pterjan/rpmbuild/tmp/rpm-tmp.F7rs6c (%build) I: [iurt_root_command] ERROR: chroot