diff options
author | Claudio Matsuoka <claudio@mandriva.com> | 2006-12-29 12:46:36 +0000 |
---|---|---|
committer | Claudio Matsuoka <claudio@mandriva.com> | 2006-12-29 12:46:36 +0000 |
commit | df3fccbdfa7cd7c32e3bb31f917dd9f804a09c28 (patch) | |
tree | 5bd90825c3d6e3a4cf5481094fe9004c884e7b8d | |
parent | db5406752cd9e74f45f13d11c6548aa7c07644bb (diff) | |
download | iurt-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-x | iurt2 | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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}", |