From df3fccbdfa7cd7c32e3bb31f917dd9f804a09c28 Mon Sep 17 00:00:00 2001 From: Claudio Matsuoka Date: Fri, 29 Dec 2006 12:46:36 +0000 Subject: Get build user environment when building packages User enviroment read when building packages. This fixes bug #27771 (bash profiles not executed inside iurt). Tested with sipbomber, vtk doesn't need this to build correctly. --- iurt2 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/iurt2 b/iurt2 index df07289..b5421dc 100755 --- a/iurt2 +++ b/iurt2 @@ -827,7 +827,7 @@ retry: $command = "rpm -b$run{stop} /home/$luser/rpm/SPECS/$spec"; } - if (!perform_command(qq(TMP=/home/$luser/tmp/ $sudo chroot $chroot_tmp /bin/su $luser -c "$command"), + if (!perform_command(qq(TMP=/home/$luser/tmp/ $sudo chroot $chroot_tmp /bin/su - $luser -c "$command"), \%run, $config, $cache, mail => $maintainer, error => "[REBUILD] $srpm from $run{distro_tag} does not build correctly on $run{my_arch}", -- cgit v1.2.1