From adbd09b06cef240a6e581bbaac21d2358a69325a Mon Sep 17 00:00:00 2001 From: Pierre Labastie Date: Mon, 8 Apr 2019 10:03:26 +0000 Subject: [PATCH] LFS/lfs.xsl: Update directory layout of PKG_DEST - Do not symlink /{usr/,}lib64->lib - Do not symlink /usr/{man,info}->share - Create /lib64 on x86_64 - Create /usr/lib/pkgconfig - do not create /usr/lib/rpcsvc - check that a directory exists before testing its emptyness (for example, attr removes empty manx dirs) --- LFS/lfs.xsl | 52 ++++++++++++++-------------------------------------- 1 file changed, 14 insertions(+), 38 deletions(-) diff --git a/LFS/lfs.xsl b/LFS/lfs.xsl index 7c6074a..a2a9df4 100644 --- a/LFS/lfs.xsl +++ b/LFS/lfs.xsl @@ -221,32 +221,19 @@ - mkdir -pv $PKG_DEST/{boot,etc,lib,bin,sbin} -mkdir -pv $PKG_DEST/usr/{lib,bin,sbin,include} + + mkdir -pv $PKG_DEST/{bin,boot,etc,lib,sbin} +mkdir -pv $PKG_DEST/usr/{bin,include,lib/pkgconfig,sbin} mkdir -pv $PKG_DEST/usr/share/{doc,info,man} mkdir -pv $PKG_DEST/usr/share/man/man{1..8} -ln -sv share/{man,doc,info} $PKG_DEST/usr case $(uname -m) in - x86_64) ln -sv lib $PKG_DEST/lib64 && ln -sv lib $PKG_DEST/usr/lib64 ;; + x86_64) mkdir -v $PKG_DEST/lib64 ;; esac - - mkdir -pv $PKG_DEST/usr/include/{rpc,rpcsvc} - - - - mkdir -pv $PKG_DEST/usr/lib/pkgconfig - - install - - DIST_ROOT=$PKG_DEST make - - - - make DESTDIR=$PKG_DEST