From f5976ac6b48ecc79d06126dbeb35d8e88174e678 Mon Sep 17 00:00:00 2001 From: Bruce Dubbs Date: Thu, 27 Sep 2012 02:36:20 +0000 Subject: Misc fixes from Fernando git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@9999 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689 --- chapter06/e2fsprogs.xml | 2 +- chapter06/flex.xml | 5 ++++- chapter06/ncurses.xml | 26 +++++++++++++++----------- 3 files changed, 20 insertions(+), 13 deletions(-) (limited to 'chapter06') diff --git a/chapter06/e2fsprogs.xml b/chapter06/e2fsprogs.xml index 472740379..514035eb6 100644 --- a/chapter06/e2fsprogs.xml +++ b/chapter06/e2fsprogs.xml @@ -147,7 +147,7 @@ install-info --dir-file=/usr/share/info/dir /usr/share/info/libext2fs.infoIf desired, create and install some additional documentation by issuing the following commands: -makeinfo -o doc/com_err.info ../lib/et/com_err.texinfo +makeinfo -o doc/com_err.info lib/et/com_err.texinfo install -v -m644 doc/com_err.info /usr/share/info install-info --dir-file=/usr/share/info/dir /usr/share/info/com_err.info diff --git a/chapter06/flex.xml b/chapter06/flex.xml index b1feaf6cd..f12261235 100644 --- a/chapter06/flex.xml +++ b/chapter06/flex.xml @@ -47,7 +47,10 @@ Prepare Flex for compilation: -./configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info +./configure --prefix=/usr \ + --mandir=/usr/share/man \ + --infodir=/usr/share/info \ + --docdir=/usr/share/doc/flex-&flex-version; Compile the package: diff --git a/chapter06/ncurses.xml b/chapter06/ncurses.xml index d3da0d7bd..4a78fa7fa 100644 --- a/chapter06/ncurses.xml +++ b/chapter06/ncurses.xml @@ -53,8 +53,11 @@ Prepare Ncurses for compilation: -./configure --prefix=/usr --mandir=/usr/share/man --with-shared \ - --without-debug --enable-widec +./configure --prefix=/usr \ + --mandir=/usr/share/man \ + --with-shared \ + --without-debug \ + --enable-widec The meaning of the configure option: @@ -115,22 +118,23 @@ non-wide-character Ncurses libraries. Trick such applications into linking with wide-character libraries by means of symlinks and linker scripts: -for lib in ncurses form panel menu ; do \ - rm -vf /usr/lib/lib${lib}.so ; \ - echo "INPUT(-l${lib}w)" >/usr/lib/lib${lib}.so ; \ - ln -sfv lib${lib}w.a /usr/lib/lib${lib}.a ; \ +for lib in ncurses form panel menu ; do + rm -vf /usr/lib/lib${lib}.so + echo "INPUT(-l${lib}w)" >/usr/lib/lib${lib}.so + ln -sfv lib${lib}w.a /usr/lib/lib${lib}.a done + ln -sfv libncurses++w.a /usr/lib/libncurses++.a Finally, make sure that old applications that look for -lcurses at build time are still buildable: -rm -vf /usr/lib/libcursesw.so -echo "INPUT(-lncursesw)" >/usr/lib/libcursesw.so -ln -sfv libncurses.so /usr/lib/libcurses.so -ln -sfv libncursesw.a /usr/lib/libcursesw.a -ln -sfv libncurses.a /usr/lib/libcurses.a +rm -vf /usr/lib/libcursesw.so +echo "INPUT(-lncursesw)" > /usr/lib/libcursesw.so +ln -sfv libncurses.so /usr/lib/libcurses.so +ln -sfv libncursesw.a /usr/lib/libcursesw.a +ln -sfv libncurses.a /usr/lib/libcurses.a If desired, install the Ncurses documentation: -- cgit v1.2.3-54-g00ecf