From 8f8c5789b9c82c7b9c8d361a0209fa0d91830f2d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C4=90o=C3=A0n=20Tr=E1=BA=A7n=20C=C3=B4ng=20Danh?= Date: Mon, 8 Feb 2021 06:47:45 +0700 Subject: [PATCH] common/00-libdir: only create lib{32,64} symlink if not exists --- common/hooks/pre-install/00-libdir.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/common/hooks/pre-install/00-libdir.sh b/common/hooks/pre-install/00-libdir.sh index f19f68088f..4c57fbcb1e 100644 --- a/common/hooks/pre-install/00-libdir.sh +++ b/common/hooks/pre-install/00-libdir.sh @@ -1,7 +1,9 @@ # This hook creates the wordsize specific libdir symlink. hook() { - if [ "${pkgname}" != "base-files" ]; then + if [ -L ${PKGDESTDIR}/usr/lib${XBPS_TARGET_WORDSIZE} ]; then + return 0 + elif [ "${pkgname}" != "base-files" ]; then vmkdir usr/lib ln -sf lib ${PKGDESTDIR}/usr/lib${XBPS_TARGET_WORDSIZE} fi