On 23/09/2019 17:37, Xi Ruoyao via lfs-dev wrote:
On 2019-09-23 10:30 -0500, Bruce Dubbs via lfs-dev wrote:
On 9/23/19 9:24 AM, John Burrell via lfs-dev wrote:
I haven't noticed this before but linux-5.3.1 uses rsync to transfer
the files in the command

make INSTALL_HDR_PATH=dest headers_install

This is okay in chap. 5 if rsync is on the host but it doesn't work in
chap. 6 as rsync is not in /tools.
I see that.  I suppose we could try to build rsync early in Chapter 5 only.

./configure --disable-acl-support   \
              --disable-xattr-support \
              --with-included-popt
make
cp rsync /tools/bin

$ ldd ./rsync
         linux-vdso.so.1 (0x00007fffaa7c2000)
         libc.so.6 => /lib/libc.so.6 (0x00007ff50ffc3000)
         /lib64/ld-linux-x86-64.so.2 (0x00007ff5101b6000)

This is the first time I've looked at the 5.3 kernel.  Not tested other
than the above thru make.

    -- Bruce
I propose:

make headers
mkdir dest
cp -rv usr/include dest/include
find dest/include \( -name .install -o -name ..install.cmd \) -delete
cp -rv dest/include/* /usr/include

I don't like a rsync in LFS (I never use this thing :).
I agree and it's really not needed. Note that make headers_install starts with running make headers.

When using make headers, we cannot choose the destination, and it is ./usr.
There are a lot more useless files in ./usr/include:
Makefile and .gitignore, and in subdirectories:
each xxx.h is accompanied by .xxx.h.cmd. There are no more .install or ..install.cmd...
Proposal:

make headers
find usr/include -name '.[[:alpha:]]*' -delete
rm usr/include/Makefile
cp -rv usr/include/* /usr/include

Must be tried with jhalfs now...

Pierre

--
http://lists.linuxfromscratch.org/listinfo/lfs-dev
FAQ: http://www.linuxfromscratch.org/faq/
Unsubscribe: See the above information page

Reply via email to