9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: "Federico G. Benavento" <benavento@gmail.com>
To: 9fans@cse.psu.edu
Subject: Re: [9fans] Re: ruby port 1.8.1 ready to use
Date: Thu, 10 Jan 2008 07:11:45 -0200	[thread overview]
Message-ID: <78a7b9a85e4e5d43a20bb22cf028e4b2@yourdomain.dom> (raw)
In-Reply-To: <75E7C47C-9A52-4E93-BB08-3BA725F32DAC@mac.com>

I was bored, so I tried...

the ready to use ruby doesn't have either a mkfile or a Makefile, so
1) I downloaded the latest ruby realease run /n/sources/contrib/fgb/rc/config
and sent the output to rc; I got my config.h and Makefile, then % echo make | ape/psh
but it didn't end there, ruby building process is broken it expects to find files in the current
dir which they aren't.
thinking that this might had been solved in the cvs I 
2) downloaded the latest stable cvs snapshot, same problem, this time I just edited
the Makefile by hand, the thing is that to make the extensions a miniruby creates
the other Makefile's, which end up broken too!
so, I fixed every Makefile by haand and started to compile it

what were the changes?
1) APE doesn't have fchown()
2) lot's of casts (char *) != (unsigned char *)
3) the bignum extension divides by 0, it has something like "One()/Zero()"!

here the fn() that initializes the extensions, just for you to know
which ones are in my ruby

void Init_ext _((void))
{
    init(Init_bigdecimal, "bigdecimal.so");
    init(Init_curses, "curses.so");
    init(Init_digest, "digest.so");
    init(Init_bubblebabble, "digest/bubblebabble.so");
    init(Init_md5, "digest/md5.so");
    init(Init_rmd160, "digest/rmd160.so");
    init(Init_sha1, "digest/sha1.so");
    init(Init_sha2, "digest/sha2.so");
    init(Init_enumerator, "enumerator.so");
    init(Init_etc, "etc.so");
    init(Init_fcntl, "fcntl.so");
    init(Init_wait, "io/wait.so");
    init(Init_nkf, "nkf.so");
    init(Init_openssl, "openssl.so");
    init(Init_pty, "pty.so");
    init(Init_cparse, "racc/cparse.so");
    init(Init_sdbm, "sdbm.so");
    init(Init_stringio, "stringio.so");
    init(Init_strscan, "strscan.so");
    init(Init_syck, "syck.so");
    init(Init_thread, "thread.so");
    init(Init_zlib, "zlib.so");
}

I'll clean it up, create some nice mkfiles and put it in my contrib

oh, btw, I won't send a diff to the author saying "dude, char * isn't the same
as unsigned char *!"

Federico G. Benavento

PS: yes, I know it's confusing

---
/bin/fortune:
The problem is not getting ksh to execute any particular command, the problem is recognizing that there might be a problem.


  reply	other threads:[~2008-01-10  9:11 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-01-07 10:00 [9fans] " prem
2008-01-07 16:57 ` ron minnich
2008-01-07 23:41   ` Christopher Nielsen
2008-01-08 13:40 ` [9fans] " prem
2008-01-10  2:28   ` Pietro Gagliardi
2008-01-10  2:36     ` Pietro Gagliardi
2008-01-10  9:11       ` Federico G. Benavento [this message]
2008-01-10 19:52         ` ron minnich
2008-01-10 20:06           ` Pietro Gagliardi
2008-01-10 20:15             ` ron minnich
2008-01-10 21:02               ` Jack Johnson
2008-01-10 23:31                 ` Joel C. Salomon
2008-01-10 21:11             ` Russ Cox
2008-01-10 22:37           ` Federico G. Benavento
2008-01-10 22:42             ` Pietro Gagliardi
2008-01-10 22:46               ` Federico G. Benavento
2008-01-10 23:46                 ` Pietro Gagliardi

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=78a7b9a85e4e5d43a20bb22cf028e4b2@yourdomain.dom \
    --to=benavento@gmail.com \
    --cc=9fans@cse.psu.edu \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).