Created attachment 310299 [details] patch The SCSH_LIB_DIRS environment variable is a list of paths the scsh looks through when it searches for modules to load. This is a Scheme list, which means that strings are supposed to be quoted. By default, /etc/env.d/50scsh sets SCSH_LIB_DIRS="/usr/lib32/scsh" which is a syntax error in scsh: dodek@sloneczko ~ $ export SCSH_LIB_DIRS="/usr/lib32/scsh" dodek@sloneczko ~ $ scsh Welcome to scsh 0.6.7 (R6RS) Type ,? for help. > (lib-dirs) Error: Illegal path element in $SCSH_LIB_DIRS $SCSH_LIB_DIRS: /usr/lib32/scsh The following element is not a string or #f: /usr/lib32/scsh 1> > Exit Scsh? (y/n)? y dodek@sloneczko ~ $ export SCSH_LIB_DIRS='"/usr/lib32/scsh"' dodek@sloneczko ~ $ scsh Welcome to scsh 0.6.7 (R6RS) Type ,? for help. > (lib-dirs) '("/usr/lib32/scsh") > Exit Scsh? (y/n)? y This should be a startup error according to documentation[1], but for some reason it works. Attached patch fixes the issue. [1] - http://www.scsh.net/docu/html/man-Z-H-12.html#node_sec_11.1.4
Confirmed. Thanks for the patch.
It's been almost a year, and the issue persists. How about someone just applies the patch I attached?
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=93fbed6e982f91eb32076fbf42c017cfcdd6c7ac commit 93fbed6e982f91eb32076fbf42c017cfcdd6c7ac Author: Maciej Barć <xgqt@gentoo.org> AuthorDate: 2021-12-31 00:11:18 +0000 Commit: Maciej Barć <xgqt@gentoo.org> CommitDate: 2021-12-31 00:31:22 +0000 app-shells/scsh: build only on 32bit arches; tests; format libcrypt/GCC not being 32bit/multilib bugs: - https://bugs.gentoo.org/589122 - https://bugs.gentoo.org/710570 - https://bugs.gentoo.org/830282 Thanks for patches: - SCSH_LIB_DIRS environment variable: adam@michalik.es https://bugs.gentoo.org/413791#c0 - scheme48vm-prelude (for tests) https://bugs.gentoo.org/299414#c2 Closes: https://bugs.gentoo.org/299414 Closes: https://bugs.gentoo.org/413791 Closes: https://bugs.gentoo.org/589122 Closes: https://bugs.gentoo.org/710570 Closes: https://bugs.gentoo.org/722442 Closes: https://bugs.gentoo.org/830282 Signed-off-by: Maciej Barć <xgqt@gentoo.org> app-shells/scsh/files/0.6.7-Makefile.in-AR.patch | 26 ++++++++++ ...0.6.7-scheme48vm-prelude.h-SMALL_MULTIPLY.patch | 11 ++++ app-shells/scsh/scsh-0.6.7-r2.ebuild | 47 ------------------ app-shells/scsh/scsh-0.6.7-r3.ebuild | 58 ++++++++++++++++++++++ profiles/arch/amd64/no-multilib/package.mask | 1 + 5 files changed, 96 insertions(+), 47 deletions(-)