diff options
Diffstat (limited to 'chapter06/ncurses.xml')
-rw-r--r-- | chapter06/ncurses.xml | 18 |
1 files changed, 9 insertions, 9 deletions
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 @@ <para>Apply the following patch to fix a number of issues uncovered by the static code analysis tool, Coverity:</para> -<screen><userinput>patch -Np1 -i ../&ncurses-coverity-patch;</userinput></screen> +<screen><userinput remap="pre">patch -Np1 -i ../&ncurses-coverity-patch;</userinput></screen> <para>Prepare Ncurses for compilation:</para> -<screen><userinput>./configure --prefix=/usr --with-shared --without-debug --enable-widec</userinput></screen> +<screen><userinput remap="configure">./configure --prefix=/usr --with-shared --without-debug --enable-widec</userinput></screen> <variablelist> <title>The meaning of the configure option:</title> @@ -92,7 +92,7 @@ <para>Compile the package:</para> -<screen><userinput>make</userinput></screen> +<screen><userinput remap="make">make</userinput></screen> <para>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 @@ <para>Install the package:</para> -<screen><userinput>make install</userinput></screen> +<screen><userinput remap="install">make install</userinput></screen> <para>Correct the permissions of a library that should not be executable: </para> -<screen><userinput>chmod -v 644 /usr/lib/libncurses++w.a</userinput></screen> +<screen><userinput remap="install">chmod -v 644 /usr/lib/libncurses++w.a</userinput></screen> <para>Move the libraries to the <filename class="directory">/lib</filename> directory, where they are expected to reside:</para> -<screen><userinput>mv -v /usr/lib/libncursesw.so.5* /lib</userinput></screen> +<screen><userinput remap="install">mv -v /usr/lib/libncursesw.so.5* /lib</userinput></screen> <para>Because the libraries have been moved, one symlink points to a non-existent file. Recreate it:</para> -<screen><userinput>ln -sfv ../../lib/libncursesw.so.5 /usr/lib/libncursesw.so</userinput></screen> +<screen><userinput remap="install">ln -sfv ../../lib/libncursesw.so.5 /usr/lib/libncursesw.so</userinput></screen> <para>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:</para> -<screen><userinput>for lib in curses ncurses form panel menu ; do \ +<screen><userinput remap="install">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</userinput></screen> <filename class="libraryfile">-lcurses</filename> at build time are still buildable:</para> -<screen><userinput>rm -vf /usr/lib/libcursesw.so +<screen><userinput remap="install">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 |