From 01b6c5d0d191a8a19334c5647aba56c28e1af328 Mon Sep 17 00:00:00 2001 From: metagn Date: Fri, 22 Nov 2024 08:51:25 +0300 Subject: [PATCH] fix unix stdlib install location after #21328 (#24460) closes #22369, closes #23197, closes #24385, refs #21328 According to #21328 the standard library on Unix should be installed in `/usr/lib/nim/lib`, however the installer was not updated for this change, hence the problem as described in https://github.com/nim-lang/Nim/issues/23197#issuecomment-2031386896. Have not tested if this fixes the problem but the comment heavily implies it does. The problem is also in 2.0 so it could be backported but I can't say for sure that it works and doesn't break anything. (cherry picked from commit 33e455c9866e944a5bad156c747b3be7e0def326) --- tools/niminst/install.nimf | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/niminst/install.nimf b/tools/niminst/install.nimf index 75ff9ce118..56fd7a60bc 100644 --- a/tools/niminst/install.nimf +++ b/tools/niminst/install.nimf @@ -31,7 +31,7 @@ if [ $# -eq 1 ] ; then "/usr/bin") bindir=$1 configdir="/etc/?proj" - libdir="/usr/lib/?proj" + libdir="/usr/lib/?proj/lib" docdir="/usr/share/?proj/doc" datadir="/usr/share/?proj/data" nimbleDir="/opt/nimble/pkgs/?c.nimblePkgName-?c.version" @@ -39,7 +39,7 @@ if [ $# -eq 1 ] ; then "/usr/local/bin") bindir=$1 configdir="/etc/?proj" - libdir="/usr/local/lib/?proj" + libdir="/usr/local/lib/?proj/lib" docdir="/usr/local/share/?proj/doc" datadir="/usr/local/share/?proj/data" nimbleDir="/opt/nimble/pkgs/?c.nimblePkgName-?c.version"