From 02a41255ed840cd317be40ce426e8d418a633983 Mon Sep 17 00:00:00 2001 From: Pascal Terjan Date: Thu, 9 Jan 2020 22:09:03 +0000 Subject: Give --target to rpmbuild This fixes wrong isa name when building for armv7hl on aarch64 machine. --- NEWS | 1 + iurt | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/NEWS b/NEWS index 4fa0d14..3d7c039 100644 --- a/NEWS +++ b/NEWS @@ -1,4 +1,5 @@ - ulri: allow - in host when parsing lock file name +- iurt: give --target to rpmbuild 0.7.9 - ulri: call setarch for all 32bit targets rather than only when target is diff --git a/iurt b/iurt index a07c49b..add18a4 100755 --- a/iurt +++ b/iurt @@ -808,7 +808,7 @@ retry: debug_mail => $run{debug}, log => $log_dir); # or next; As this failed quite often, do not stop plog('NOTIFY', "Building $srpm"); - my $command = "rpmbuild --rebuild $run{with_flags} /home/$luser/rpmbuild/SRPMS/$srpm"; + my $command = "rpmbuild --target $run{my_arch} --rebuild $run{with_flags} /home/$luser/rpmbuild/SRPMS/$srpm"; if ($run{stop}) { $urpmi->install_packages('chroot', $chroot_tmp, $local_spool, 'configure', "[ADMIN] installation of urpmi and sudo failed in the chroot $run{my_arch}", { check => 1, maintainer => $config->{admin} }, 'urpmi', 'sudo'); add_sudoers($chroot_tmp, $luser); -- cgit v1.2.1