On Wed, 2006-04-26 at 09:33 +0100, gheet wrote: > > On Tue, 2006-04-25 at 16:16 -0300, rafael david tinoco wrote: > >> Hello everybody, I'm getting some weird errors compiling JDS. > >> > >> Okay, first of all, I have compiled CBE environment. > >> After this I had to change the default PATH in /etc/default/su to have > >> the /jds/cbe/bin dir. (first thing). > > > > Yes, this has been reported before. > > It only happens if you try to build as root. > > Thew problem here is the script kick off the build command, > su -c 'pkgbuild ....'
If you build as root, yes. That's why I was suggesting not to build as root. > When doing su when you are root, the environment values do not get carry > forward, hence the build script failed at this point. As the main page > of su says, > > If the first argument to su is a dash (-), the environment > will be changed to what would be expected if the user actu- > ally logged in as the specified user. Otherwise, the > environment is passed along, with the exception of $PATH, > which is controlled by PATH and SUPATH in /etc/default/su. > > So what Rafael did is absolutely correct. Well, except if you change /etc/default/su, it affects all uses of su, not just when building JDS. Anyway, I'll fix this in the next version of pkgbuild. > May be this is a feature for pkgtool that should be documented :) No, it's a bug that should be fixed. Laca > > It's a better idea to update /etc/user_attr so that the build > > user has Software Installation privileges and then build as > > the build user.
