On Tue, Sep 25, 2012 at 12:36:53PM -0600, Andrew Elian wrote:
> Hello,
> 
 Hi
> 
> The approach I took was to install into DESTDIR (and etc) and then use
> dpkg to keep track of things.  However, I differ from your approach, in
> that I do that as root.  Not as safe, perhaps, but I've not run into the
> errors you have mentioned when working as root.
> 
 Until I started to rewrite my scripts, everything from about the
beginning of chapter 6 has been done as root (I have backups for
completed systems, builds are expendable).  For the LFS packages,
I'm keen not to deviate too far from the book, otherwise I'll cause
myself pain in translating between the one and the other.  For BLFS,
since I'm revising my scripts, I would prefer to build as a user.

 At the moment, I'm trying "Plan B" in LFS chapter 5 - run 'find' at
the start of the package, and again after installing it, then 'diff'
the logs (with suitable arguments, and a sed to remove the junk) -
for the moment this means a large number of log files, but things in
'/scratch' aren't backed up so I can live with that.

 OTOH, the DESTDIR approach in chapter 5 worked fairly well (the
downside was that I had a lot of extra lines to do that, and it
messed up the calculation of SBUs), so I won't really know until I
get through the first few packages in chapter 6.

> Keep at it, I think you'll find a solution. :)
> 
> Andrew
> 
 Cheers - so far I'm stuck in the maths for measuring what gets
installed, but *maybe* I'm now on a more practical approach for the
LFS part of the build.  Time will tell, but at least I've stopped
trying to throw in the towel :)

ĸen
-- 
das eine Mal als Tragödie, das andere Mal als Farce
-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-chat
FAQ: http://www.linuxfromscratch.org/faq/
Unsubscribe: See the above information page

Reply via email to