KOGURO, Naoki | 6 Apr 09:30

ANN: glint 0.1.2

Hi all.

glint (codecheck module) 0.1.2 is released, and it is avaliable at
http://homepage.mac.com/naoki.koguro/prog/codecheck/index.html

glint is a code check tool for Gauche. This tool reports syntax  
errors, undefined symbols, and type mismatches of your code (but it is  
experimental and maybe it has too many bugs).

For example,

(let (a 1)
   (print (+ a 2)))

(define (fact n)
   (if (= n 1)
       1
       (* n (fact (- m 1)))))

(define (hash-table-≥alist tbl)
   (hash-table-map cons tbl))

glint reports these errors for this buggy code.

% glint wrong.scm
wrong.scm:2: error: syntax-error: malformed let: (let (a 1) (print (+  
a 2)))
wrong.scm:8: error: m(user) referenced but not defined
wrong.scm:11: error: wrong type for argument 1 of #<closure hash-table- 
map>: <hash-table> required, but got #<subr cons>
(Continue reading)

clemens fischer | 6 Apr 13:41

Re: ANN: glint 0.1.2, gauche-package

> KOGURO, Naoki:

> glint (codecheck module) 0.1.2 is released, and it is avaliable at
> http://homepage.mac.com/naoki.koguro/prog/codecheck/index.html

thanks for this program!

this is the first time i used "gauche-package", and i found a minor nit.
whenever downloading a tarball, i prefix it with a tag in order to find
it easier.  so the package had the name "gauche-codecheck-0.1.2.tgz".
tar(1) doesn't know about this and extracts it into the proper place.

the first problem with gauche-package is, that it extracts files with
the owner given in the tarball when running as root:

 "/bin/cat" "/dl/gauche-codecheck-0.1.2.tgz" |
 "/usr/bin/gzip" -d |
 "/usr/bin/tar" xfC - "."

could the options to tar(1) be "xopfC" instead of "xfC"?  AFAIK this
wouldn't harm its operation when run non-privileged, but it would give
files to root instead of the user specified in the archive.  these
options should be POSIX.  i'm running gauche on freebsd-current, where
they work this way.

the next problem was this:

 /src/localcode/scheme
 0  # gauche-package install /dl/gauche-codecheck-0.1.2.tgz
 cd: can't cd to ./gauche-codecheck-0.1.2
(Continue reading)

Shiro Kawai | 6 Apr 17:19

Re: ANN: glint 0.1.2, gauche-package

From: clemens fischer <ino-news <at> spotteswoode.dnsalias.org>
Subject: Re: [Gauche-devel] ANN: glint 0.1.2, gauche-package
Date: Sun, 6 Apr 2008 13:41:34 +0200

> the first problem with gauche-package is, that it extracts files with
> the owner given in the tarball when running as root:
> 
>  "/bin/cat" "/dl/gauche-codecheck-0.1.2.tgz" |
>  "/usr/bin/gzip" -d |
>  "/usr/bin/tar" xfC - "."
> 
> could the options to tar(1) be "xopfC" instead of "xfC"? 

This makes sense.  I'll change it.

In general, however, I'd recommend to run gauche-package
in non-priviledged user, with -S=root or --install-as=root
option.  With the option, gauche-package calls sudo when it
invokes "make install".  The system should be set up so that
you can use sudo.

> the next problem was this:
> 
>  /src/localcode/scheme
>  0  # gauche-package install /dl/gauche-codecheck-0.1.2.tgz
>  cd: can't cd to ./gauche-codecheck-0.1.2
>  ./configure: not found
>  *** ERROR: command execution failed: cd "./gauche-codecheck-0.1.2"; ./configure
>  Stack Trace:
>  _______________________________________
(Continue reading)


Gmane