From 0445a3d50660d84f11d095db0177078f4f5cd8a0 Mon Sep 17 00:00:00 2001 From: Manuel Canales Esparcia Date: Tue, 18 Sep 2007 21:11:00 +0000 Subject: Added remap attributes to userinput tags in packages pages. git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@8389 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689 --- chapter06/ncurses.xml | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'chapter06/ncurses.xml') diff --git a/chapter06/ncurses.xml b/chapter06/ncurses.xml index 2d261cf4c..8b99eb872 100644 --- a/chapter06/ncurses.xml +++ b/chapter06/ncurses.xml @@ -54,11 +54,11 @@ Apply the following patch to fix a number of issues uncovered by the static code analysis tool, Coverity: -patch -Np1 -i ../&ncurses-coverity-patch; +patch -Np1 -i ../&ncurses-coverity-patch; Prepare Ncurses for compilation: -./configure --prefix=/usr --with-shared --without-debug --enable-widec +./configure --prefix=/usr --with-shared --without-debug --enable-widec The meaning of the configure option: @@ -92,7 +92,7 @@ Compile the package: -make +make This package has a test suite, but it can only be run after the package has been installed. The tests reside in the @@ -102,28 +102,28 @@ Install the package: -make install +make install Correct the permissions of a library that should not be executable: -chmod -v 644 /usr/lib/libncurses++w.a +chmod -v 644 /usr/lib/libncurses++w.a Move the libraries to the /lib directory, where they are expected to reside: -mv -v /usr/lib/libncursesw.so.5* /lib +mv -v /usr/lib/libncursesw.so.5* /lib Because the libraries have been moved, one symlink points to a non-existent file. Recreate it: -ln -sfv ../../lib/libncursesw.so.5 /usr/lib/libncursesw.so +ln -sfv ../../lib/libncursesw.so.5 /usr/lib/libncursesw.so Many applications still expect the linker to be able to find non-wide-character Ncurses libraries. Trick such applications into linking with wide-character libraries by means of symlinks and linker scripts: -for lib in curses ncurses form panel menu ; do \ +for lib in curses 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 ; \ @@ -134,7 +134,7 @@ ln -sfv libncurses++w.a /usr/lib/libncurses++.a -lcurses at build time are still buildable: -rm -vf /usr/lib/libcursesw.so +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 -- cgit v1.2.3-54-g00ecf