Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 250638 - dev-lisp/cl-clx-0.7.1--wouldn't load, couldn't find manual/clx.textinfo
Summary: dev-lisp/cl-clx-0.7.1--wouldn't load, couldn't find manual/clx.textinfo
Status: VERIFIED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal
Assignee: Common Lisp Bugs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 337963
  Show dependency tree
 
Reported: 2008-12-11 18:56 UTC by Louis Frayser
Modified: 2010-12-16 22:42 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Louis Frayser 2008-12-11 18:56:16 UTC
When running examples from dev-lisp/cl-mcclim there was an error loading CLX (dev-lisp/cl-clx).

The file clx.asd in /usr/share/common-lisp/source/clx references 
manual/clx.texinfo which doesn't exist in that location.  It's installed elsewhere.
root@gentoo:/usr/share/common-lisp/source/clx# locate clx.texinfo
/usr/share/common-lisp/source/manual/clx.texinfo

To allow loading, I made the link:
     ln -s /usr/share/common-lisp/sources/manual .

root@gentoo:/usr/share/common-lisp/source/clx# ls -ld manual
lrwxrwxrwx 1 root root     36 Dec 11 09:10 manual -> /usr/share/common-lisp/source/manual

The ebuild should either make this link, install the clx.texinfo file to where asdf expects to find it, or patch the asdf file (clx.asd) to not reference the texinfo file.  Since /usr/share/common-lisp/sources/manual doesn't seem to be used by anything else, maybe installing manual/clx.texinfo where asdf expects is the best fix.

I just noticed that from /usr/share/common-lisp/source/clx that /usr/share/common-lisp/manual is just ../manual.


Reproducible: Always

Steps to Reproduce:
1.Run examples from "Runnig the demos" in /usr/share/doc/cl-mcclim-0.9.2-r1/INSTALL.  This requires dev-lisp/sbcl, dev-lisp/spatial-trees, and dev-lisp/cl-mcclim, ie; after starting Lisp and loading CLIM,
            (asdf:oos 'asdf:load-op :mcclim)
enter:
             (asdf:oos 'asdf:load-op :clim-examples)

NOTE:  See "Additional Information" below, for an alternative test that doesn't require so much setup.
Actual Results:  
2. Note the error:
debugger invoked on a SB-INT:SIMPLE-FILE-ERROR in thread #<THREAD "initial thread" {A72C641}>:
  failed to find the WRITE-DATE of #<PATHNAME (with no namestring)
                                              :HOST #<SB-IMPL::UNIX-HOST {9137B29}>
                                              :DEVICE NIL
                                              :DIRECTORY (:ABSOLUTE "usr"
                                                          "share" "common-lisp"
                                                          "source" "clx"
                                                          "manual")
                                              :NAME "clx.texinfo"
                                              :TYPE NIL
                                              :VERSION :NEWEST>:


Expected Results:  
The expected behavior was to see the demos, compile with only warnings, no crash.

3. Examine the file: /usr/share/common-lisp/source/clx/clx.asd
and notice refernce:  
(:module manual
	      ;; TODO: teach asdf how to process texinfo files
	      :components ((:static-file "clx.texinfo")))

NOTE: The prequsite dev/cl-spatial-trees has a similar problem.  It needs to be fixed before studying this problem in dev-lisp/cl-clx; unless one finds a simpler way to test CLX's loading:  
  Entering (asdf:oos 'asdf:load-op :clx) may work; but that wasn't tested.
Comment 1 Tomás Touceda (RETIRED) gentoo-dev 2009-12-15 23:17:53 UTC
Hello, can you try the updated version that's in gentoo-lisp overlay?

I've just tested it, and it seems to work fine.
Comment 2 Louis Frayser 2009-12-20 15:59:48 UTC
(In reply to comment #1)
> Hello, can you try the updated version that's in gentoo-lisp overlay?

Please attach an ebuild to this bug. I couldn't find an overlay with a usable cl-clx ebuild.

I searched repo.or.cz/gentoo-lisp-overlay.git but here was no dev-lisp/cl-clx there.  There was only a dev-lisp/clx, clx with no "cl-" prefix
Is repo.or.cz/gentoo-listp-overly the right overlay?

Emerge of clx from the overlay failed with:
  Calculating dependencies - * ERROR: dev-lisp/clx-0.7.4 failed:
   *   common-lisp-2.eclass could not be found by inherit()

I  changed the clx-0.7.4.ebuild to inherit common-lisp instead of common-lisp-2; but the emerge still failed:
  common-lisp-symlink-asdf: could no be found.
  * QA Notice: command not found: 
  *    /var/tmp/portage/dev-lisp/clx-0.7.4/temp/environment: line 2415: common-lisp-symlink-asdf: command not found
  
Comment 3 Tomás Touceda (RETIRED) gentoo-dev 2009-12-20 16:44:22 UTC
The overlay is more than this ebuild, if you download the ebuild alone, it won't work, because you lack the needed eclasses and other dependencies.

What you have to do is sync to the overlay using layman, like this:

layman -a lisp

Then add the proper line to your make.conf, then emerge -C cl-clx && emerge dev-lisp/clx (and emerge -C anything that generates a block).
Comment 4 Louis Frayser 2009-12-22 06:32:51 UTC
(In reply to comment #3)
...
> What you have to do is sync to the overlay using layman, like this:
> 
> layman -a lisp
...

Thanks, clx, mcclim, spatial-trees, everything, worked well when built from the overlay. I neither had to debug and edit any lisp packages by hand, nor had to run any ASDF commands.