Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 413791 - dev-scheme/scsh-0.6.7-r1 ebuilds uses wrong format for SCSH_LIB_DIRS env variable
Summary: dev-scheme/scsh-0.6.7-r1 ebuilds uses wrong format for SCSH_LIB_DIRS env vari...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Scheme Project
URL:
Whiteboard:
Keywords: PullRequest
Depends on:
Blocks:
 
Reported: 2012-04-27 20:29 UTC by Adam Michalik
Modified: 2021-12-31 00:31 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
patch (scsh-0.6.7-r2.patch,399 bytes, text/plain)
2012-04-27 20:29 UTC, Adam Michalik
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Adam Michalik 2012-04-27 20:29:23 UTC
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
Comment 1 Cyprien Nicolas (fulax) 2012-04-27 20:41:28 UTC
Confirmed. Thanks for the patch.
Comment 2 Adam Michalik 2013-02-15 11:47:43 UTC
It's been almost a year, and the issue persists. How about someone just applies the patch I attached?
Comment 3 Larry the Git Cow gentoo-dev 2021-12-31 00:31:26 UTC
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(-)