[lfs] branch trunk updated: ncurses: Simplify the installation using a cp feature

"Git Owner" ([email protected] via lfs-book Mailing List) <[email protected]>
Newsgroups gmane.linux.lfs.book
Message-ID <175677697638.14006.15235480279851597075@rivendell.linuxfromscratch.org>
This is an automated email from the git hooks/post-receive script.

git pushed a commit to branch trunk
in repository lfs.

The following commit(s) were added to refs/heads/trunk by this push:
     new a7f60249e ncurses: Simplify the installation using a cp feature
a7f60249e is described below

commit a7f60249e316e78520714ac12582f3066ba5c7b2
Author: Xi Ruoyao <[email protected]>
AuthorDate: Sun Aug 24 23:45:48 2025 +0800

    ncurses: Simplify the installation using a cp feature
---
 chapter08/ncurses.xml | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)

diff --git a/chapter08/ncurses.xml b/chapter08/ncurses.xml
index e2f7415eb..453e1d839 100644
--- a/chapter08/ncurses.xml
+++ b/chapter08/ncurses.xml
@@ -131,17 +131,16 @@
     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 (the header
+    the <parameter>--remove-destination</parameter> option of
+    <command>cp</command> (the header
     <filename>curses.h</filename> is also edited to ensure the
     wide-character ABI to be used as what we've done in
     <xref linkend='ch-tools-ncurses'/>):</para>
 
 <screen><userinput remap="install">make DESTDIR=$PWD/dest install
-install -vm755 dest/usr/lib/libncursesw.so.&ncurses-base-version; /usr/lib
-rm -v  dest/usr/lib/libncursesw.so.&ncurses-base-version;
 sed -e 's/^#if.*XOPEN.*$/#if 1/' \
     -i dest/usr/include/curses.h
-cp -av dest/* /</userinput></screen>
+cp --remove-destination -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

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.

-- 
http://lists.linuxfromscratch.org/sympa/info/lfs-book
Unsubscribe: See the above information page
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.