LFS - DESTDIR Style

Randy McMurchy randy at linuxfromscratch.org
Mon Mar 31 11:23:29 MDT 2008


Bruce Dubbs wrote these words on 03/31/08 10:19 CST:

> Looks interesting.  Where do you put your DESTDIR?  Is it a part of the 
> chroot partition?  You said you use scripts. Can you post a typical script?

I suppose I should qualify "scripts". Actually, there is only one main
script I use to copy stuff from DESTDIR to /. I've attached it.
Note that it does nothing about the CMMI to destdir. That is in
individual scripts for each package. This attached script is
used after I determine that I like the way the DESTDIR files
are and I'm ready to install them.

Warning:

I am not an accomplished shell scripter. I know just enough to
get by. The script could probably be faster, more efficient,
smaller and much of it could be done better, I'm sure. However,
it works for me.

This was proof of concept most of all. It is not automated, but
I didn't want my first DESTDIR LFS to be. I purposely put user
interaction in it, so there wouldn't be goof-ups (I try to catch
the goof-ups anyway).

I realize I'm not good, so if anyone wants to comment that it
sucks, you could do better then it does and you probably can.
And if you think so, tell me what you think I should do to make
it better.

-- 
Randy

rmlscsi: [bogomips 1003.22] [GNU ld version 2.16.1] [gcc (GCC) 4.0.3]
[GNU C Library stable release version 2.3.6] [Linux 2.6.14.3 i686]
12:15:00 up 43 days, 3:03, 1 user, load average: 0.00, 0.03, 0.00
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: copy_destdir
Url: http://linuxfromscratch.org/pipermail/lfs-dev/attachments/20080331/4e8aecc7/attachment.ksh 


More information about the lfs-dev mailing list