Re: [Makefile:1063: 828-ncurses] Error 1

"Xi Ruoyao" ([email protected] via alfs-discuss Mailing List) <[email protected]> Sat, 07 Jun 2025 23:30:34 +0800
Newsgroups gmane.linux.lfs.automated
Message-ID <[email protected]>
On Sat, 2025-06-07 at 17:01 +0200, Marcin Dulak wrote:

/* snip */

> Here is the content of lib, showing the first two links in red,
> broken.
> ls -latr $LFS/sources/ncurses-6.5-20250531/dest/usr/lib/
> lrwxrwxrwx 1 root root     18 Jun  7 11:29 libncursesw.so.6 ->
> libncursesw.so.6.5
> lrwxrwxrwx 1 root root     16 Jun  7 11:29 libncursesw.so ->
> libncursesw.so.6

The book has:

make DESTDIR=$PWD/dest install
install -vm755 dest/usr/lib/libncursesw.so.6.5 /usr/lib
rm -v  dest/usr/lib/libncursesw.so.6.5
sed -e 's/^#if.*XOPEN.*$/#if 1/' \
    -i dest/usr/include/curses.h
cp -av dest/* /

So yes we removed dest/usr/lib/libncursesw.so.6.5, explicitly, and after
the rm -v command there will be dangling symlinks.  And the paragraph
above this command has already explained why we must do that.

Again the LFS book is a book for human to read, not (just) a script
collection, thus the text has at least the same importance as the
commands.  Running jhalfs w/o reading the text is not the intended use
of the LFS book.

-- 
Xi Ruoyao <[email protected]>
School of Aerospace Science and Technology, Xidian University

-- 
http://lists.linuxfromscratch.org/sympa/info/alfs-discuss
Unsubscribe: See the above information page