Bug#652372: sbcl: Path translation for SRC doesn't point to files in sbcl-source

Samuel Bronson naesten at gmail.com
Fri Dec 16 20:07:15 UTC 2011


Package: sbcl
Version: 2:1.0.53.0-1
Severity: wishlist

I was poking around with SLIME the other day, and I noticed that it is
harder than it has to be to get to the SBCL sources.

After much investigation (mostly because I don't actually know Common
Lisp), I discovered the cause:

,----
| * (logical-pathname-translations (pathname-host #P"sys:"))
| 
| (("SYS:SRC;**;*.*.*"
|   #P"/build/buildd-sbcl_1.0.53.0-1-i386-fPkASq/sbcl-1.0.53.0/src/**/*.*")
|  ("SYS:CONTRIB;**;*.*.*"
|   #P"/build/buildd-sbcl_1.0.53.0-1-i386-fPkASq/sbcl-1.0.53.0/contrib/**/*.*")
|  ("SYS:OUTPUT;**;*.*.*"
|   #P"/build/buildd-sbcl_1.0.53.0-1-i386-fPkASq/sbcl-1.0.53.0/output/**/*.*"))
`----

I also found that this seems to work pretty well for me:

,----[ ~/.swank.lisp ]
| 
| ;; Set path translation to work with the "sbcl-source" package
| #+sbcl
| (setf (logical-pathname-translations (pathname-host #P"sys:"))
|       '(("SYS:SRC;**;*.*.*" #P"/usr/share/sbcl-source/src/**/*.*")
|         ("SYS:CONTRIB;**;*.*.*" #P"/usr/share/sbcl-source/contrib/**/*.*")))
`----

... but of course it would be nicer if this worked out of the box, no?

Yours,
-- SamB

-- System Information:
Debian Release: squeeze/sid
  APT prefers testing
  APT policy: (990, 'testing'), (500, 'unstable'), (1, 'experimental')
Architecture: i386 (i686)

Kernel: Linux 2.6.30-1-686 (SMP w/1 CPU core)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages sbcl depends on:
ii  libc6                  2.13-10           Embedded GNU C Library: Shared lib
ii  zlib1g                 1:1.2.3.3.dfsg-15 compression library - runtime

Versions of packages sbcl recommends:
ii  binfmt-support                2.0.4      Support for extra binary formats

Versions of packages sbcl suggests:
pn  sbcl-doc                    <none>       (no description available)
ii  sbcl-source                 2:1.0.53.0-1 Source code files for SBCL
pn  slime                       <none>       (no description available)

-- debconf information:
* sbcl/auto-build: Yes

-- 
Hi! I'm a .signature virus! Copy me into your ~/.signature to help me spread!





More information about the pkg-common-lisp-devel mailing list