mirror of
https://git.linuxfromscratch.org/lfs.git
synced 2025-06-18 19:29:21 +01:00
ncursesw: do not in-place overwrite library being used by bash
This commit is contained in:
parent
0fc98a07ff
commit
88bbf22f8b
@ -97,9 +97,23 @@
|
||||
<filename>README</filename> file in that directory for further details.
|
||||
</para>
|
||||
|
||||
<para>Install the package:</para>
|
||||
<!-- To editors: crash of shell process was very rare but really
|
||||
observed. We can't simply remove /usr/lib/libncursesw.so.6.x like
|
||||
how we handle libmozjs-xx.so in BLFS because bash needs it, and
|
||||
make will spawn new shell processes during "make install". -->
|
||||
|
||||
<screen><userinput remap="install">make install</userinput></screen>
|
||||
<para>The installation of this package will overwrite
|
||||
<filename class="libraryfile">libncursesw.so.&ncurses-version;</filename>
|
||||
in-place. It may crash the shell process which is using code and data
|
||||
from the library file. Install the package with
|
||||
<literal>DESTDIR</literal>, and replace the library file correctly using
|
||||
<command>install</command> command. A useless static archive which is
|
||||
not handled by <command>configure</command> is also removed:</para>
|
||||
|
||||
<screen><userinput remap="install">make DESTDIR=$PWD/dest install
|
||||
install -vm755 dest/usr/lib/libncursesw.so.&ncurses-version; /usr/lib
|
||||
rm -v dest/usr/lib/{libncursesw.so.&ncurses-version;,libncurses++w.a}
|
||||
cp -av dest/* /</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
|
||||
@ -119,10 +133,6 @@ done</userinput></screen>
|
||||
echo "INPUT(-lncursesw)" > /usr/lib/libcursesw.so
|
||||
ln -sfv libncurses.so /usr/lib/libcurses.so</userinput></screen>
|
||||
|
||||
<para>Remove a static library that is not handled by configure:</para>
|
||||
|
||||
<screen><userinput remap="install">rm -fv /usr/lib/libncurses++w.a</userinput></screen>
|
||||
|
||||
<para>If desired, install the Ncurses documentation:</para>
|
||||
|
||||
<screen><userinput remap="install">mkdir -pv /usr/share/doc/ncurses-&ncurses-version;
|
||||
|
Loading…
Reference in New Issue
Block a user