Hi Charlie, Thanks for the response, but I'm not sure that the blind leading the blind is ideal. However, see my comments below.
I should also say that I have realised that the script I gave earlier is *massively flawed* and should not be used (I have created a new version that actually does what I intended, but don't have it to hand right at the moment). For anyone who's interested, I'm taking this more manual approach to package management rather than using, for example, 'stow', as I am using LFS as a learning experience. On 28 January 2013 05:00, Charlie Brown <stieizc...@gmail.com> wrote: > Hi Stephen, > I am a beginner of linux myself so maybe I would say something wrong... <snip> > My stupid solution is to change prefix to /tmp/foo and find out what would > be installed, and then make install, then collect the files shattered in my I don't think the 'prefix' parameter in './configure --prefix=/usr' does anything except ensure that when the package is built and running it looks in the '/usr' tree for itself - so any files being created in a new location due to changes to '--prefix' may be a red herring. I could be wrong. <snip> > My final gcc in 6.17 would give different output for the test command <snip> > it. If you know why all these happens, please tell me. I'm not there yet, so I don't like to comment. > 2). I guess - as I am not really familiar with the boot process I can only <snip> I don't know enough about the process of booting, let along the ordering of mounting and execution during boot, so I can't help. > 3). I'm really poor at reading and writing scripts, so I figured that I'd > better use someone else's script. Currently I'm using graft. I think it's > pretty good. OK, I'm taking a different approach. > 4). You may want to keep a log of all errors during make DESTDIR install. > When I accidentally skim through the output of make DESTDIR install one day, > it said that it couldn't generate /usr/share/info/dir. While that's a fairly > small problem(lfs book give us a script in 6.60), I am concerned there may > also be something big. I check the errors as I go... > #3 - Is it actually necessary to soft-link to *every* file in > '/usr/pkg/<pkg_name>/<pkg_ > number>' from the root tree, or is that > overkill? > I put stuffs that should appear in /var and /etc as where they should, > instead of soft linking them. I now regret a little about my decision with > /etc, which is now very messy. In the case of ldconfig, it would generate a > /etc/ld-cache file overiding your old symlink. I was moved by its strong > will and decided to remit the sin of /etc. Another concern is that I want to > keep all my configs and don't want to delete them accidentally by > uninstalling the package. As for /var, I simply just want to leave it as it > is. > I leave the docs in /usr/share/doc. I don't think there is a need to symlink > them. I'm not sure this answers my question, unless you have some reasons for your various choices, beyond things being 'messy' or not and similar. > > Good luck! > Charlie > ----------------------------------------------------- > Here is my script to handle packages with graft, just in case you need it. > I'd be grateful if you point out where the script can be improved. At least > the argument checking part is poorly written. <snip> Are you asking me, if so, why - I'm certainly not an expert? Or are you asking your own question to the mailing list? Steve -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page