From 3125dfb87870ddc77229b8e7fa2a1d0bd4d14602 Mon Sep 17 00:00:00 2001 From: Zack Winkles Date: Thu, 6 May 2004 16:50:03 +0000 Subject: Added Readline git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@3492 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689 --- chapter01/changelog.xml | 5 ++++ chapter03/packages.xml | 3 +++ chapter03/patches.xml | 5 +++- chapter06/bash.xml | 2 +- chapter06/chapter06.xml | 1 + chapter06/readline.xml | 64 +++++++++++++++++++++++++++++++++++++++++++++++++ general.ent | 5 ++-- 7 files changed, 81 insertions(+), 4 deletions(-) create mode 100644 chapter06/readline.xml diff --git a/chapter01/changelog.xml b/chapter01/changelog.xml index a481853b4..6a630d013 100644 --- a/chapter01/changelog.xml +++ b/chapter01/changelog.xml @@ -63,6 +63,8 @@ first a summary, then a detailed log. module-init-tools-3.0 net-tools-1.60-gcc34-2.patch net-tools-1.60-kernel-headers-1.patch +readline-4.3 +readline-4.3-gnu-fixes-1.patch sysklogd-1.4.1-kernel-headers-1.patch udev-025 udev-025-config-1.patch @@ -92,6 +94,9 @@ first a summary, then a detailed log. +May 6th, 2004 [winkie]: Chapter 6 - Add Readline installation +and use it when building Bash. + May 4th, 2004 [winkie]: Chapter 6 - Create and use the utmp group. diff --git a/chapter03/packages.xml b/chapter03/packages.xml index 309bb38e3..6b8bf634e 100644 --- a/chapter03/packages.xml +++ b/chapter03/packages.xml @@ -136,6 +136,9 @@ Procps (&procps-version;) - 260 KB: Psmisc (&psmisc-version;) - 375 KB: +Readline (&readline-version;) - 940 KB: + + Sed (&sed-version;) - 751 KB: diff --git a/chapter03/patches.xml b/chapter03/patches.xml index 89c468ba6..946c13fe7 100644 --- a/chapter03/patches.xml +++ b/chapter03/patches.xml @@ -13,7 +13,7 @@ or just make some small modifications to bend things our way. You'll need the following: -Bash Patch - 7 KB: +Bash GNU Fixes Patch - 7 KB: Coreutils Hostname Patch - 1 KB: @@ -55,6 +55,9 @@ Net-tools Kernel Headers Patch - 1 KB: Perl Libc Patch - 1 KB: +Readline GNU Fixes Patch - 5 KB: + + Sysklogd Kernel Headers Patch - 3 KB: diff --git a/chapter06/bash.xml b/chapter06/bash.xml index c1d011a13..36baa30a5 100644 --- a/chapter06/bash.xml +++ b/chapter06/bash.xml @@ -30,7 +30,7 @@ patch: Now prepare Bash for compilation: ./configure --prefix=/usr --bindir=/bin \ - --without-bash-malloc + --without-bash-malloc --with-installed-readline Compile the package: diff --git a/chapter06/chapter06.xml b/chapter06/chapter06.xml index e6425e402..b1a26b25f 100644 --- a/chapter06/chapter06.xml +++ b/chapter06/chapter06.xml @@ -29,6 +29,7 @@ + diff --git a/chapter06/readline.xml b/chapter06/readline.xml new file mode 100644 index 000000000..7105a4afa --- /dev/null +++ b/chapter06/readline.xml @@ -0,0 +1,64 @@ + + + %general-entities; +]> + +Readline-&readline-version; + + +Readline + +The Readline package contains the Readline command-line library. + +&buildtime; XXX SBU +&diskspace; 3.8 MB + +Readline installation depends on: Binutils, Coreutils, Diffutils, Gawk, +GCC, Glibc, Grep, Make, Ncurses, Sed. + + + +Installation of Readline + +Readline has a number of bugs in it that cause it to not behave the +way it is expected at times. Fix this behavior with the following +patch: + +patch -Np1 -i ../readline-&readline-version;-gnu-fixes-1.patch + +Now prepare Readline for compilation: + +./configure --prefix=/usr + +Compile the package: + +make + +Install the package: + +make install + +Give Readline's dynamic libraries to a more appropriate permissions: + +chmod 644 /usr/lib/*.&readline-version; + +And move them to a more appropriate location: + +mv /usr/lib/lib{readline,history}.so.4* /lib + +Because the libraries have been moved, a few symlinks are now pointing to +non-existent files. Recreate those symlinks: + +ln -sf ../../lib/libhistory.so.4 /usr/lib/libhistory.so +ln -sf ../../lib/libreadline.so.4 /usr/lib/libreadline.so + + + + +Contents of Readline +Installed libraries: Not checked. + + + + diff --git a/general.ent b/general.ent index dd3b1aec7..91ef02c43 100644 --- a/general.ent +++ b/general.ent @@ -1,6 +1,6 @@ - - + + @@ -58,6 +58,7 @@ + -- cgit v1.2.3-54-g00ecf