aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorClaudio Matsuoka <claudio@mandriva.com>2006-12-29 12:46:36 +0000
committerClaudio Matsuoka <claudio@mandriva.com>2006-12-29 12:46:36 +0000
commitdf3fccbdfa7cd7c32e3bb31f917dd9f804a09c28 (patch)
tree5bd90825c3d6e3a4cf5481094fe9004c884e7b8d
parentdb5406752cd9e74f45f13d11c6548aa7c07644bb (diff)
downloadiurt-df3fccbdfa7cd7c32e3bb31f917dd9f804a09c28.tar
iurt-df3fccbdfa7cd7c32e3bb31f917dd9f804a09c28.tar.gz
iurt-df3fccbdfa7cd7c32e3bb31f917dd9f804a09c28.tar.bz2
iurt-df3fccbdfa7cd7c32e3bb31f917dd9f804a09c28.tar.xz
iurt-df3fccbdfa7cd7c32e3bb31f917dd9f804a09c28.zip
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.
-rwxr-xr-xiurt22
1 files changed, 1 insertions, 1 deletions
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}",