Hey Dan,

> You su command
> looks "elegant" though. When in your script do you invoke it or do you
> call the script after invoking it?

Near the top of my build script, I define:
   run="su $package_user -c "

Then whenever a command, say `configure_commands' needs to be run as the
package user, I just have something like the following:

   { $run configure_commands 3>&1 1>&2 2>&3 \
        | tee "$package_home/configure.err" ;} \
   &>"$package_home/configure.log"
   test_pipe

Then if I have, say, some post-install stuff that I need to do as root,
like ldconfig, I just omit the `$run'.


> After I rebuild manually, I'd be more than happy to work with you and
> update the hint.

Sounds good :-)



> After
> a couple of packages, I'll let you know how it's working. That idea
> would save a lot of aggravation, especially when you get to BLFS--in
> particular Xorg.

Also sounds good :-)


Cheers,


Tim
-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page

Reply via email to