Tiny Core Linux

Tiny Core Extensions => TCE Q&A Forum => Topic started by: zab on June 08, 2010, 07:44:28 AM

Title: downgrade actual Ruby extension to 1.8.x?
Post by: zab on June 08, 2010, 07:44:28 AM
Hi Everybody,

Actual "Ruby 1.9.1p376" extension shipped with TinyCoreLinux is broken.
Is there a way to downgrade to Ruby 1.8.x (let say 1.8.6)?

How can i modify (a tuto please) the current extension?

Regards
Zab
Title: Re: downgrade actual Ruby extension to 1.8.x?
Post by: Jason W on June 08, 2010, 08:36:37 AM
I am curious, what kind of broken - ldd errors, segfaults, missing dependencies, compile errors? 

Arch linux is using 191_p378, perhaps the issue is fixed in that release?

Title: Re: downgrade actual Ruby extension to 1.8.x?
Post by: zab on June 08, 2010, 09:16:32 AM
Mostly compile errors.
Almost all "gems" I tried to install simply can't compile with the current version.
It should be good to have an option here. The 1.8.x branch and the the 1.9.x branch.
What do you think?
I'd like to learn how to build extension. I can do it if you show me the way!
Title: Re: downgrade actual Ruby extension to 1.8.x?
Post by: bmarkus on June 08, 2010, 09:19:11 AM
I'd like to learn how to build extension. I can do it if you show me the way!

Read WIKI article

http://wiki.tinycorelinux.com/Creating+Extensions
Title: Re: downgrade actual Ruby extension to 1.8.x?
Post by: Jason W on June 08, 2010, 10:03:42 AM
zab -  I am not a Ruby person, so I would be happy for one more familiar with it to build an extension to replace the current one. 

I would prefer that there only be one Ruby extension unless there is a real need for 2 of them.
Title: Re: downgrade actual Ruby extension to 1.8.x?
Post by: zab on June 08, 2010, 10:34:38 AM
As you like ;-)
Anyway, I'll try to create my first ruby extension and use it for my own purposes.
If someone is interested (if I succeed), drop me a line !

Thks.
Title: Re: downgrade actual Ruby extension to 1.8.x?
Post by: zab on June 10, 2010, 02:04:46 PM
Hi All,

I'm very excited as I finally built my first extension (the one to downgrade to the stable Ruby 1.8.6).

After building it, I copied the .dep, , .list, .info, .md5sum.txt, and .tcz under /mnt/sda2/tce/optional.
Then, I launched "AppAudit -> OnBoot -> Maintenance" and add it to the right panel.
Finally,  I reboot.
But no way to get it loaded on boot.
What I am doing wrong?

I'd like to know if someone is interested to test it, and tell me if I strongly respected all the steps required by TCL team
for building a correct extension?

N.B: the extension is called "ruby.tcz.tar.gz.bfe" for 2.4Mb size and can be found at:
[removed: see extension submission guidelines]

Regards
Zab

Title: Re: downgrade actual Ruby extension to 1.8.x?
Post by: ^thehatsrule^ on June 10, 2010, 02:20:46 PM
If this isn't intended to be a direct replacement (from the sounds of it, it isn't), the extension should probably use a different name, such as ruby-1.8.tcz
Title: Re: downgrade actual Ruby extension to 1.8.x?
Post by: zab on June 10, 2010, 09:23:28 PM
Quote
If this isn't intended to be a direct replacement (from the sounds of it, it isn't)
As "Jayson" said previously, he don't want to have 2 Ruby extensions for now.
So, this extension is only for me as I need a very stable Ruby which will work with the most "gems" available out there.

Quote
the extension should probably use a different name, such as ruby-1.8.tcz
Hmm ... following the doc, putting version number on extension name isn't a good practice. Am I right?

Any chance that the extension worked for you "^thehatsrule^"?
Title: Re: downgrade actual Ruby extension to 1.8.x?
Post by: zab on June 10, 2010, 11:20:26 PM
Finally, my extension works ;-)