DJ Lucas wrote:
On 07/24/2016 06:03 PM, Chris Staub wrote:For CLFS Pure64, we don't use the symlinks, and most packages install just fine into {/usr,}/lib without trying to create a "lib64" directory. They usually don't try installing anything into "lib64" unless specifically told to, so it mostly just depends on how GCC is built - CLFS includes a "Pure64" patch for GCC which changes the path it uses for the dynamic linker. I've built a working LFS system with the changes in the attached patch. Beyond a base system, the only issues I've seen were with some packages that use cmake which need "-DLIB_INSTALL_DIR=/usr/lib" or something similar on the cmake command, and clang, which (like GCC, as it is a compiler) needs to be edited to link to /lib instead of /lib64.Worked perfectly BTW (except we don't have class=directory defined for systemitem in LFS). Thanks Chris! I knew it was much easier now days, but did not expect it was quite that easy. No other changes required. Chapter 5 specs patch is not needed as the existing sed is sufficient. Can also do chapter 6 gcc via sed. This has historically been preferred in the main book, at least where possible. I actually don't know the reason for this. The pure64 patch covers all archs and we only need to hit the one (and prepare for /lib32 if somebody wants to add it after the fact). I also created /lib64 in place of the three symlinks, and nothing wound up there. Only outstanding part is the LSB CORE spec. Add 'ln -sfv ../lib/ld-linux-x86-64.so.2 /lib64/ld-lsb-x86-64.so.3' to the end of glibc instructions to meet LSB AMD64 CORE, and this is good to go. BTW, same for IA32...'ln -sfv ld-linux.so.2 /lib/ld-lsb.so.3' and this should be accounted for if adding /lib32 later (the once case where it feels a little sloppy). Same should probably happen for the current book. Anyway, it works. Back to packaging rebuilds.
Just another note. I had occasion to rebuild xorg today. We currently tell the user to 'ln -sf lib $XORG_PREFIX/lib64'. I omitted that and xorg appears to work fine. I built everything except a few drivers that I don't need so I think we can remove that from BLFS.
I need to check, but we may be able to remove the entire chunk that is: install -v -m755 -d $XORG_PREFIX && install -v -m755 -d $XORG_PREFIX/lib && ln -sf lib $XORG_PREFIX/lib64 and it's preceding paragraph. -- Bruce -- http://lists.linuxfromscratch.org/listinfo/blfs-dev FAQ: http://www.linuxfromscratch.org/blfs/faq.html Unsubscribe: See the above information page
