Thinking forward LFS-7.0
dj at linuxfromscratch.org
Sat Mar 26 19:36:57 PDT 2011
On 03/14/2011 08:56 PM, Bruce Dubbs wrote:
> I really don't have a problem with adding DESTDIR in Chapter 6. In most
> cases I suspect it would only require a few more cp commands and an
> explanation in the Package Management section. For BLFS to follow would
> be a much larger effort.
Just wanted to show a single sample before I go too far with it. I
wanted to get anyone's input on how the page should look, flow, and
read. Anything different, explanation, leading text, or just keep it
simple like below? Also need to work in some additional text regarding
the package management page, but as you can see, not much for change in
the packages themselves.
--- chapter06/autoconf.xml (revision 9491)
+++ chapter06/autoconf.xml (working copy)
@@ -57,10 +57,30 @@
that use Automake. For full test coverage, Autoconf can be re-tested
after Automake has been installed.</para>
- <para>Install the package:</para>
+ <para>Install the package into the temporary directory:</para>
-<screen><userinput remap="install">make install</userinput></screen>
+<screen><userinput remap="install">make DESTDIR="$PWD/package_dir"
+ <!-- Begin extra sample that I used last time -->
+ <para>Create a list of installed files (This is only for book editors, but
+ I figured I'd drop it in as an example of what could be done with
+<screen><userinput remap="install">cd package_dir
+for dir in `find . -type d`
+ ls -ld $dir | sed -e "s@ ./@ /@" -e "/ .\$/d"
+done > ../../autoconf-&autoconf-version;-contents.txt &&
+for file in `find . -type f`
+ ls -l $file | sed "s@ ./@ /@"
+done > ../../autoconf-&autoconf-version;-contents.txt</userinput></screen>
+ <!-- End sample -->
+ <para>Install the package with the following commands:</para>
+<screen><userinput remap="install">cp -R * / &&
<sect2 id="contents-autoconf" role="content">
Simple enough? :-) This is pretty much the gist of everything in LFS.
The little sample addition was for my own use, but figured I'd leave it
in there for others if they wanted to use something similar.
-- DJ Lucas
This message has been scanned for viruses and
dangerous content, and is believed to be clean.
More information about the lfs-dev