Re: [DebianGIS] Ruby mapscript
Hello Paul,
On Thu, 01 Jun 2006 17:30:38 +0800
Paul Wise <pabs3@bonedaddy.net> wrote:
> On Thu, 2006-06-01 at 14:09 +0900, Akio Takubo wrote:
>
> > So there are Mapserver mapscript pkgs available for Python, Perl and PHP,
> > but no pkg for Ruby. Is there any problem or special reason
> > for preventing Ruby mapscript? Or is any plan for packaging?
>
> No-one asked for it yet, and creating a new package would cause it to go
> through the NEW queue again, which is somewhat clogged at the moment:
>
> http://ftp-master.debian.org/new.html
>
> If we add a ruby package, we should probably add all the other bindings
> too, and maybe enable Flash support (requres ming, which is in NEW).
Sorry, I haven't understand details of maintainance of Debian package yet.
But your explanation is very clear.
To support not only Ruby but other bindings (java and C#?) sounds very good.
> > Recently I tried to make Ruby mapscript package based on Mapserver
> > 4.8.3-2 src pkg. I hope it will be available from official repositry.
> > I attached diff for my work.
>
> The patch looks good to me, although I am not familiar with ruby to know
> if it works. I wonder why you would modify extconf.rb? I'd also suggest
> using make -C instead of cd foo && make.
Thanks for your review. Actually I'm not also familer with detail mechanism of
Ruby's extension...
With extconf.rb, if it kept extconf.rb originally, make failed
because "make" couldn't find "ruby.h". Ruby's reference[1] explains ...
* hdrdir...directory of ruby''s header file (ruby.h) location
* topdir...directory of headers and libraries for making ruby's extention
Generally hdrdir point out ruby.h but Ruby mapscript's extconf.rb overloads
it with "."(current dir). So I wonder why these overloads needs.
It may be upstream's bug, so is it better that I'll ask upstream
developer for its intention or meaning?
[1]http://www.ruby-lang.org/ja/man/?cmd=view;name=mkmf
(japanese)
With make process, because "ruby extconf.rb" create Makefile
at the current directory, so it needs enter the directory before call make.
If I misunderstand your suggestion, please suggest more details.
Actually I refferd perl mapscript's process...
> --
> bye,
> pabs
>
> http://wiki.debian.org/PaulWise
>
Thanks,
Akio Takubo
from Tokyo, Japan
Reply to: