On 09/24/2012 08:31 PM, Ken Moffat wrote:
>   I'm reworking my own buildscripts to get better logging of what was
> installed.  For some time, my attempts to use 'find ... -newer' have
> been giving me dubious results : not only omitting files,
> particularly headers, which were installed with old dates, but also
> repeating files from the previous package.  At one time I altered my
> scripts to cope with what was being recorded in error (sleep after
> touching hte marker), but although that seemed to work for a little
> while, the problem soon resurfaced and it looks as if that approach
> is a loser's game.

I also use a homegrown PM (that is compatible with the logging in 
jhalfs). There should be no need to sleep after touching the timestamp. 
Some packages simply use cp instead of install. Solution is 'find .' and 
touch in the source tree after updating the timestamp file and before 
build and install. I also grep through existing logs and append (M) to 
the end of it if a file is modified. You are welcome to check it out, 
I'll upload a llog-0.2 tarball in /~dj in a few moments, but I think 
once you wrap your head around DESTDIR, you'll be much happier with the 
results of that (but that is admittedly a bit hypocritical, see below).

>
>   So, I decided to try DESTDIR and friends.  I've added su-tools from
> old coreutils to the end of chapter 5. In chapter 6 I'm building as
> root and then doing a DESTDIR install as someone else (lfs) to ensure
> that DESTDIR will be respected), but keep hitting EPERM problems.
> Should I just build as a regular user, then chown the tree to root
> before installing (i.e. deviate even further from the BOOK) ?

Personally, I've given up on the approach of using DESTDIR during the 
initial LFS build. It is perfectly doable, but several packages get 
re-installed or modified after the initial bootstrap so I wind up 
considering the base system much more than just vanilla LFS. I just use 
jhalfs, and then go back and rebuild everything with all the 
dependencies available when I get a hankering for DESTDIR. My latest 
charge is using Pacman (very nicely done up by Baho Utot BTW here 
https://github.com/baho-utot/LFS-pacman). Inevitably, however, I always 
wind up going back to my homegrown system for editing tasks anyway 
because I have all the stuff built in to do editing work (SBU, diskspace 
usage,etc.(which I rarely do anymore anyway)).

-- DJ Lucas

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

Reply via email to