aboutsummaryrefslogtreecommitdiffstats
path: root/ulri
diff options
context:
space:
mode:
authorOlivier Blin <blino@mageia.org>2010-11-25 09:26:01 +0000
committerOlivier Blin <blino@mageia.org>2010-11-25 09:26:01 +0000
commit0340f0a5bfb2ae32f4143085dd019a32ed5b9683 (patch)
tree5bb682077d39895d6ee6816ede1a686c43915e7f /ulri
parent96dfcae3b9c80a6d69a93c8a517923d5ed96e21a (diff)
downloadiurt-0340f0a5bfb2ae32f4143085dd019a32ed5b9683.tar
iurt-0340f0a5bfb2ae32f4143085dd019a32ed5b9683.tar.gz
iurt-0340f0a5bfb2ae32f4143085dd019a32ed5b9683.tar.bz2
iurt-0340f0a5bfb2ae32f4143085dd019a32ed5b9683.tar.xz
iurt-0340f0a5bfb2ae32f4143085dd019a32ed5b9683.zip
x86_64 hosts can now build i586 packages, impressive!
Diffstat (limited to 'ulri')
-rwxr-xr-xulri5
1 files changed, 5 insertions, 0 deletions
diff --git a/ulri b/ulri
index 278465f..e1fcd49 100755
--- a/ulri
+++ b/ulri
@@ -678,6 +678,11 @@ foreach my $prefix (sort keys %pkg_tree) {
plog('DEBUG', "Will compile only with media $media_to_add");
$cmd =~ s!__MEDIA__!$media_to_add!g;
+ #- allow x86_64 hosts to build i586 packages
+ if ($arch eq 'i586') {
+ $cmd = "setarch i586 $cmd";
+ }
+
plog('DEBUG', "Build $pkgs");
ssh($remote, "\'echo PID=\$\$; exec $cmd $pkgs &>$prefix_dir/log/botcmd.\$(date +%s).\$(hostname -s).log\' > $temp &");