Welcome to the CHICKEN Scheme pasting service

chicken-install local and server repo combination pasted by klm` on Fri Jun 28 18:50:32 2013




$ cat /usr/share/chicken/setup.defaults 
;;;; setup.defaults - defaults for chicken-install -*- Scheme -*-


;; version-number of the defaults file - checked by "chicken-install"
;  when defaults are loaded



(version 1)




;; list of servers in the order in which they will be processed
;
; (server (location URL) (transport TRANSPORT))
;
; URL may be an alias (see below) or a real URL

(server
 (location "/tmp/chicken-install-testing/")
 (transport local))

(server
 (location "kitten-technologies")
 (transport http))

(server
 (location "call-cc")
 (transport http))


;; extensions-mappings
;
; (map (EXTENSIONNAME ... -> OTHEREXTENSIONNAME ...))

(map
 (data-structures 
  extras files foreign irregex lolevel ports tcp utils
  posix irregex setup-api setup-download
  srfi-1 srfi-4 srfi-13 srfi-14 srfi-18 srfi-69 
  ->) )


;; aliases for locations
;
; (alias (NAME REALNAME) ...)

(alias 
 ("call-cc" "http://code.call-cc.org/cgi-bin/henrietta.cgi")
 ("kitten-technologies" "http://chicken.kitten-technologies.co.uk/henrietta.cgi"))


;; overrides
;
; (override (NAME VERSION) ...)
;
; or:
;
; (override FILENAME)


;; hack
;
; (hack EXPR)
;
;   EXPR should evaluate to a procedure of the type, where the 
;   procedure is of type EGGNAME DEPENDENCIES -> DEPENDENCIES' and
;   may modify the dependencies-list of an arbitrary egg. All
;   hack procedures are invoked in the order given here





$ find /tmp/chicken-install-testing/ -type f | while read F ; do echo ";;;" $F ; cat "$F" ; echo ;done; 
;;; /tmp/chicken-install-testing/bar/bar.setup

;;; /tmp/chicken-install-testing/bar/bar.meta
((depends socket))

;;; /tmp/chicken-install-testing/foo/foo.setup

;;; /tmp/chicken-install-testing/foo/foo.meta
((depends my-dep))

;;; /tmp/chicken-install-testing/my-dep/my-dep.meta

;;; /tmp/chicken-install-testing/my-dep/my-dep.setup





$ chicken-install foo
retrieving ...
 foo located at /tmp/chicken-install-testing/foo
checking platform for `foo' ...
checking dependencies for `foo' ...
 missing: my-dep
retrieving ...
 my-dep located at /tmp/chicken-install-testing/my-dep
checking platform for `my-dep' ...
checking dependencies for `my-dep' ...
install order:
("my-dep" "foo")
installing my-dep: ...
changing current directory to /tmp/chicken-install-testing/my-dep
  /usr/bin/csi -bnq -setup-mode -e "(require-library setup-api)" -e "(import setup-api)" -e "(setup-error-handling)" -e "(extension-name-and-version '(\"my-dep\" \"\"))" /tmp/chicken-install-testing/my-dep/my-dep.setup
installing foo: ...
changing current directory to /tmp/chicken-install-testing/foo
  /usr/bin/csi -bnq -setup-mode -e "(require-library setup-api)" -e "(import setup-api)" -e "(setup-error-handling)" -e "(extension-name-and-version '(\"foo\" \"\"))" /tmp/chicken-install-testing/foo/foo.setup




$ chicken-install bar
retrieving ...
 bar located at /tmp/chicken-install-testing/bar
checking platform for `bar' ...
checking dependencies for `bar' ...
 missing: socket
retrieving ...


Error: (directory) cannot open directory - No such file or directory: "/tmp/chicken-install-testing/socket"



;;; ^--- why?
;; socket is not on disk but is on the server. it should keep trying. 
;; what's strange is that this works:


$ chicken-install -r socket
retrieving ...
  cp -r /tmp/chicken-install-testing/socket/* /tmp/trg/socket
cp: cannot stat ‘/tmp/chicken-install-testing/socket/*’: No such file or directory
connecting to host "chicken.kitten-technologies.co.uk", port 80 ...
requesting "/henrietta.cgi?name=socket&mode=default" ...
reading response ...
HTTP/1.1 200 OK
Date: Fri, 28 Jun 2013 16:49:17 GMT
Server: Apache/2.2.24 (Unix) mod_ssl/2.2.24 OpenSSL/0.9.9-dev DAV/2 SVN/1.7.8 PHP/5.4.13 mod_fastcgi/2.4.6
Connection: close
Transfer-Encoding: chunked
Content-Type: text/plain
reading chunks ....
reading files ...
  ./socket-features.scm
  ./socket-mod.scm
  ./socket-options.scm
  ./socket.h
  ./socket.meta
  ./socket.scm
  ./socket.setup
 socket located at /tmp/trg/socket

chicken-install retreiving works, but not installing added by klm` on Fri Jun 28 18:54:01 2013


;;; retrieving non-local eggs works, but installing (without -r) doesn't:

$ cat /usr/share/chicken/setup.defaults 

(version 1)

(server
 (location "/tmp/chicken-install-testing/")
 (transport local))
(server
 (location "kitten-technologies")
 (transport http))
(server
 (location "call-cc")
 (transport http))

(map
 (data-structures 
  extras files foreign irregex lolevel ports tcp utils
  posix irregex setup-api setup-download
  srfi-1 srfi-4 srfi-13 srfi-14 srfi-18 srfi-69 
  ->) )
(alias 
 ("call-cc" "http://code.call-cc.org/cgi-bin/henrietta.cgi")
 ("kitten-technologies" "http://chicken.kitten-technologies.co.uk/henrietta.cgi"))


$ chicken-install -r socket
retrieving ...
  cp -r /tmp/chicken-install-testing/socket/* /tmp/trg/socket
cp: cannot stat ‘/tmp/chicken-install-testing/socket/*’: No such file or directory
connecting to host "chicken.kitten-technologies.co.uk", port 80 ...
requesting "/henrietta.cgi?name=socket&mode=default" ...
reading response ...
HTTP/1.1 200 OK
Date: Fri, 28 Jun 2013 16:51:55 GMT
Server: Apache/2.2.24 (Unix) mod_ssl/2.2.24 OpenSSL/0.9.9-dev DAV/2 SVN/1.7.8 PHP/5.4.13 mod_fastcgi/2.4.6
Connection: close
Transfer-Encoding: chunked
Content-Type: text/plain
reading chunks ....
reading files ...
  ./socket-features.scm
  ./socket-mod.scm
  ./socket-options.scm
  ./socket.h
  ./socket.meta
  ./socket.scm
  ./socket.setup
 socket located at /tmp/trg/socket
[klm@kth trg]$ chicken-install socket
retrieving ...


Error: (directory) cannot open directory - No such file or directory: "/tmp/chicken-install-testing/socket"

Your annotation:

Enter a new annotation:

Your nick:
The title of your paste:
Your paste (mandatory) :
Name of the most used CHICKEN HTTP server implementation:
Visually impaired? Let me spell it for you (wav file) download WAV