[needs-packaging] Ruby 1.9.1

Bug #330268 reported by Dmitry "DeltaKilo" Korotkov
70
This bug affects 6 people
Affects Status Importance Assigned to Milestone
ruby1.9 (Ubuntu)
Fix Released
Wishlist
Unassigned
Nominated for Jaunty by Darren Hinderer
Nominated for Karmic by Jonathan Rascher

Bug Description

Ruby 1.9 is a new series of Ruby. It is modern, faster, with clearer syntax, multilingualized, a much improved version of Ruby.
Ruby 1.8 series has been used since 2003 and many great products were born on it.
Today, the Ruby 1.9 series starts its history as the 1.8 series did.
from slashdot.com:
The VM of Ruby 1.9, formerly known as YARV, was initiated by Koichi Sasada and has been in the making for quite some time. Ruby's creator Yukihiro Matsumoto has already presented many of the upcoming features in his keynote at RubyConf 2007. Most notably, Ruby 1.9 now supports native threads and an implementation of fibers. A lot of work also went into encoding awareness of strings. The 1.9.1 version is said to be twice as fast as the stable 1.8.7. It will take some time though until the majority of existing Ruby extensions get ported to 1.9."

From Wikipedia:
As of 30 January 2009, the latest stable version of the reference implementation is 1.9.1.

Ruby 1.9.1 introduces a lot of changes compared to version 1.8.6, such as:
Block local variables (variables that are local to the block in which they are declared)
An additional lambda syntax (fun = ->(a,b) { puts a + b })
Per-string character encodings are supported

URL: http://www.ruby-lang.org
License: Ruby License; GNU General Public License
Notes: I mean, we should include this in jaunty... Many ruby developers ready to switch to 1.9 branch right now, cause it became much more stable equal to 1.9.0 and faster up to 20 times than 1.8 branch.

description: updated
Revision history for this message
Brian Murray (brian-murray) wrote :

*** This is an automated message ***

This bug is tagged needs-packaging which identifies it as a request for a new package in Ubuntu. As a part of the managing needs-packaging bug reports specification, https://wiki.ubuntu.com/QATeam/Specs/NeedsPackagingBugs, all needs-packaging bug reports have Wishlist importance. Subsequently, I'm setting this bug's status to Wishlist.

Revision history for this message
Mordi (fernandomordi) wrote :

Ruby 1.9.0 is already packaged in Ubuntu, from Dapper on.

Revision history for this message
Dmitry "DeltaKilo" Korotkov (deltakilo) wrote :

>>Ruby 1.9.0 is already packaged in Ubuntu, from Dapper on.

Ruby 1.9.1 is not just bugfix or "little update" version of ruby 1.9.0. It is in some cases incompartible, in some cases compartible more with Ruby 1.8 branch(ex. Rails not working with 1.9.0 but 1.8.x and 1.9.1). It was more than year hard work, and very significant event in "ruby-do" world :)

Revision history for this message
Dave Guyer (daveg2) wrote :

Ruby 1.9.0 was the development version. Ruby 1.9.1 is the first stable version of the 1.9 series. The 1.9 series is amazingly faster than the 1.8 series, but has not been stable up until 1.9.1.

Revision history for this message
Dimedo (dimedo) wrote :

Ruby 1.9.1 in jaunty would be great. Please do it.

Revision history for this message
Daniel Lehmann (leh) wrote :

Ruby 1.9.1 in jaunty really would be great. If your release schedule doesn't allow this, could you please provide backports?

Revision history for this message
Timothy Palpant (timothypalpant) wrote :

Second for Ruby 1.9.1 in the Jaunty repo. It makes much more sense to have 1.9.1 packaged than 1.9.0 since it is the first stable release of the 1.9 series.

affects: ubuntu → ruby1.9 (Ubuntu)
Revision history for this message
Timothy Palpant (timothypalpant) wrote :

For those waiting, compiling from source and building a package with checkinstall works great:

wget ftp://ftp.ruby-lang.org/pub/ruby/1.9/ruby-1.9.1-p0.tar.gz
tar xvfz ruby-1.9.1-p0.tar.gz
cd ruby-1.9.1-p0
./configure
sudo checkinstall

Note: the package that is built provides the Ruby 1.9.1 interpreter, as well as irb and gem (i.e. it is functionally equivalent to installing the packages ruby1.9, irb1.9 and rubygems1.9)

Revision history for this message
Daniel Lehmann (leh) wrote :

I "ported" the ruby 1.9.1 packages from debian/experimental. Until there are official (and professional packaged) packages feel free to use my personal repository:
deb http://apt.l3h.de/ jaunty ruby

Please note:
The packages are definitely unsigned and probably broken. So use them with caution :-)

Revision history for this message
donpdonp (don-park) wrote :

ruby 1.9.1-p129 has been released on 12-May-2009.

This is a patch level release for Ruby 1.9.1. This fixes many bugs and two security vulnerabilities. This release contains security fix so we recommend all 1.9.1 users to upgrade your ruby.

Please update the ubuntu package. thanks!

Revision history for this message
Daniel Lehmann (leh) wrote :

Thx for the notice, I'll upload new packages asap (which could take 24 hours or so)

Revision history for this message
bJXjLjEHIaWT0tFd (bjxjljehiawt0tfd-deactivatedaccount) wrote :

I've just spent some time trying to debug weird exceptions thrown by my programs until I realized that Ubuntu comes with 1.9.0 which, as others have pointed out, has never been considered a stable release..

So +1 on backporting 1.9.1. Ideally not only into jaunty but also the latest LTS release.

Revision history for this message
Fritz Heinrichmeyer (fritz-heinrichmeyer) wrote :

in the checkinstall recipe there is one step missing: "make" :-)

Revision history for this message
bJXjLjEHIaWT0tFd (bjxjljehiawt0tfd-deactivatedaccount) wrote :

It should be noted that 1.9.1 is already available in Debian experimental: http://packages.debian.org/experimental/ruby1.9

With the recent release of the new version that donpdonp has pointed out, they are already lacking behind though.. :)

Revision history for this message
Lucas Nussbaum (lucas) wrote : Re: [Bug 330268] [NEW] [needs-packaging] Ruby 1.9.1

On 18/05/09 at 12:55 -0000, Launchpad Bug Tracker wrote:
> Notes: I mean, we should include this in jaunty...

The problem is that existing libraries need to be migrated to ruby
1.9.1. Which is painful. So the idea is to write something similar to
python-support, called ruby-support, that will allow to automatically
support several ruby versions at the same time.

This is handled by the Debian pkg-ruby-extras, which could clearly use
some help. (see the debian-ruby@ list archives).

Also note that a ruby1.9 1.9.1 package is already available in Debian
experimental. But I strongly recommend against merging/syncing that
package in Ubuntu as long as ruby-support is not ready, and migration
plans have not been decided in Debian.
--
| Lucas Nussbaum
| <email address hidden> http://www.lucas-nussbaum.net/ |
| jabber: <email address hidden> GPG: 1024D/023B3F4F |

Revision history for this message
Lucas Nussbaum (lucas) wrote : Re: [Bug 330268] Re: [needs-packaging] Ruby 1.9.1

On 18/05/09 at 13:02 -0000, Niels Ganser wrote:
> With the recent release of the new version that donpdonp has pointed
> out, they are already lacking behind though.. :)

ah ah.
--
| Lucas Nussbaum
| <email address hidden> http://www.lucas-nussbaum.net/ |
| jabber: <email address hidden> GPG: 1024D/023B3F4F |

Revision history for this message
Dierk Erdmann (theclayman) wrote :

I tried to use
sudo checkinstall
for creating a package after running make, but it failed with the following error:

"""
/home/de/installs/ruby-1.9.1-p129/lib/fileutils.rb:848:in `utime': No such file or directory - /usr/local/bin/ruby (Errno::ENOENT)
        from /home/de/installs/ruby-1.9.1-p129/lib/fileutils.rb:848:in `block in install'
        from /home/de/installs/ruby-1.9.1-p129/lib/fileutils.rb:1394:in `block in fu_each_src_dest'
        from /home/de/installs/ruby-1.9.1-p129/lib/fileutils.rb:1408:in `fu_each_src_dest0'
        from /home/de/installs/ruby-1.9.1-p129/lib/fileutils.rb:1392:in `fu_each_src_dest'
        from /home/de/installs/ruby-1.9.1-p129/lib/fileutils.rb:843:in `install'
        from ./instruby.rb:136:in `install'
        from ./instruby.rb:236:in `block in <main>'
        from ./instruby.rb:409:in `call'
        from ./instruby.rb:409:in `block (2 levels) in <main>'
        from ./instruby.rb:406:in `each'
        from ./instruby.rb:406:in `block in <main>'
        from ./instruby.rb:402:in `each'
        from ./instruby.rb:402:in `<main>'
make: *** [do-install-nodoc] Error 1

**** Installation failed. Aborting package creation
"""

Can anynone help to fix this?

Revision history for this message
Jones D. Le (joneslee85) wrote :

@Daniel Lehman: your 'rubygems1.9' package install into /usr/lib/ruby/1.9.0/. It should be installed to 1.9.1 folder ELSE running 'gem' will produce error.

Revision history for this message
Ioannis (ioannisnousias) wrote :

so, what's the progress on this one?

will it find its way in Karmic and backports for Jaunty?

Revision history for this message
patcito (patcito) wrote :

I'm running Karmic and ruby 1.9.1 is still not available, will Karmic get it? Also, unlike Python 3.0, most ruby libs have been ported to 1.9.1 already, see http://isitruby19.com/ that includes hpricot, mysql, rails etc

Revision history for this message
Lucas Nussbaum (lucas) wrote :

On 25/06/09 at 18:55 -0000, patcito wrote:
> I'm running Karmic and ruby 1.9.1 is still not available, will Karmic
> get it? Also, unlike Python 3.0, most ruby libs have been ported to
> 1.9.1 already, see http://isitruby19.com/ that includes hpricot, mysql,
> rails etc

Depends if someone is going to finish the work on ruby-support in
Debian. I don't have time now, I might have during Debconf (end of
july), but then it might be a bit late for Karmic.
--
| Lucas Nussbaum
| <email address hidden> http://www.lucas-nussbaum.net/ |
| jabber: <email address hidden> GPG: 1024D/023B3F4F |

Revision history for this message
patcito (patcito) wrote :

If ubuntu is already packaging 1.9.0 with no ruby-support, why not upgrade it to 1.9.1? ruby-support can wait for karmic+1. I'm probably missing something.

Revision history for this message
Lucas Nussbaum (lucas) wrote :

On 25/06/09 at 19:57 -0000, patcito wrote:
> If ubuntu is already packaging 1.9.0 with no ruby-support, why not
> upgrade it to 1.9.1? ruby-support can wait for karmic+1. I'm probably
> missing something.

ruby-support would allow to magically get support for all ruby versions
(inc. jruby), for all libraries. Currently, most libs only support
ruby1.8. Manually upgrading all the libs is a lot of work, so we only
want to do it once, and not for every ruby release.
--
| Lucas Nussbaum
| <email address hidden> http://www.lucas-nussbaum.net/ |
| jabber: <email address hidden> GPG: 1024D/023B3F4F |

Revision history for this message
Darren Hinderer (hindenburg) wrote :

I have no need for ruby-support as you have described it. I think its
fair to say that most of us are content to suck down our libraries
direct from rubygems or even github. IMHO the ruby community is
growing and moving too fast for ubuntu to try to manage all of the
packages out there. In fact I'd rather go without - especially if it's
slowing the release of the main ruby package.

On Thu, Jun 25, 2009 at 2:08 PM, Lucas Nussbaum<email address hidden> wrote:
> On 25/06/09 at 19:57 -0000, patcito wrote:
>> If ubuntu is already packaging 1.9.0 with no ruby-support, why not
>> upgrade it to 1.9.1? ruby-support can wait for karmic+1. I'm probably
>> missing something.
>
> ruby-support would allow to magically get support for all ruby versions
> (inc. jruby), for all libraries. Currently, most libs only support
> ruby1.8. Manually upgrading all the libs is a lot of work, so we only
> want to do it once, and not for every ruby release.
> --
> | Lucas Nussbaum
> | <email address hidden>   http://www.lucas-nussbaum.net/ |
> | jabber: <email address hidden>             GPG: 1024D/023B3F4F |
>
> --
> [needs-packaging] Ruby 1.9.1
> https://bugs.launchpad.net/bugs/330268
> You received this bug notification because you are a direct subscriber
> of the bug.
>

Revision history for this message
Lucas Nussbaum (lucas) wrote :

On 25/06/09 at 20:29 -0000, Darren Hinderer wrote:
> I have no need for ruby-support as you have described it. I think its
> fair to say that most of us are content to suck down our libraries
> direct from rubygems or even github. IMHO the ruby community is
> growing and moving too fast for ubuntu to try to manage all of the
> packages out there. In fact I'd rather go without - especially if it's
> slowing the release of the main ruby package.

why don't you just compile ruby from source then?
--
| Lucas Nussbaum
| <email address hidden> http://www.lucas-nussbaum.net/ |
| jabber: <email address hidden> GPG: 1024D/023B3F4F |

Revision history for this message
Darren Hinderer (hindenburg) wrote :

Well I have done that, but I want ruby to be supported by my OS. The
libraries that I run on it are simply much less important to me than
the actual executable. I can ask the author of my library for support,
or go fork their work and update it myself in a timely manner.

On Thu, Jun 25, 2009 at 2:44 PM, Lucas Nussbaum<email address hidden> wrote:
> On 25/06/09 at 20:29 -0000, Darren Hinderer wrote:
>> I have no need for ruby-support as you have described it. I think its
>> fair to say that most of us are content to suck down our libraries
>> direct from rubygems or even github. IMHO the ruby community is
>> growing and moving too fast for ubuntu to try to manage all of the
>> packages out there. In fact I'd rather go without - especially if it's
>> slowing the release of the main ruby package.
>
> why don't you just compile ruby from source then?
> --
> | Lucas Nussbaum
> | <email address hidden>   http://www.lucas-nussbaum.net/ |
> | jabber: <email address hidden>             GPG: 1024D/023B3F4F |
>
> --
> [needs-packaging] Ruby 1.9.1
> https://bugs.launchpad.net/bugs/330268
> You received this bug notification because you are a direct subscriber
> of the bug.
>

Revision history for this message
donpdonp (don-park) wrote :

i second Darrin's comment. I have no interest in ruby-support. I have ruby 1.9.0 happily installed and living side-by-side with ruby 1.8. Ruby itself manages the gems etc for different versions of ruby inside /usr/lib/ruby/<version-number>.

I want to do an apt-get update ruby1.9 and get some fresher bits, thats all. 1.9.0 is old and it seems straightforward to refresh that package with 1.9.1.

Revision history for this message
Lucas Nussbaum (lucas) wrote :

On 25/06/09 at 21:19 -0000, donpdonp wrote:
> i second Darrin's comment. I have no interest in ruby-support. I have
> ruby 1.9.0 happily installed and living side-by-side with ruby 1.8. Ruby
> itself manages the gems etc for different versions of ruby inside
> /usr/lib/ruby/<version-number>.
>
> I want to do an apt-get update ruby1.9 and get some fresher bits, thats
> all. 1.9.0 is old and it seems straightforward to refresh that package
> with 1.9.1.

And how would you deal with installing apps? especially the ones that
are compiled?
--
| Lucas Nussbaum
| <email address hidden> http://www.lucas-nussbaum.net/ |
| jabber: <email address hidden> GPG: 1024D/023B3F4F |

Revision history for this message
Darren Hinderer (hindenburg) wrote :

> And how would you deal with installing apps? especially the ones that
> are compiled?

I'm not positive I understand your question, but the way we install
gems that compile with 1.8.7 would be the same as with 1.9.1. We
install the ruby-dev package, and any other ubuntu lib packages that
the gem requires. It can be annoying, but it works and I'm used to it
now.

Revision history for this message
patcito (patcito) wrote :

> We install the ruby-dev package, and any other ubuntu lib packages that the gem requires. It can be annoying, but it works and I'm used to it now.

This is how I work too, and most rubyists I know of on ubuntu.

Revision history for this message
Victor Costan (costan) wrote :

For whatever it's worth, I'm on the same boat with patcito. Please give us good 1.9.1 version of ruby, ruby-dev and rubygems, and we'll take it from there.

Revision history for this message
patcito (patcito) wrote :

On Thu, Jun 25, 2009 at 6:31 PM, Victor Costan <email address hidden> wrote:

> For whatever it's worth, I'm on the same boat with patcito. Please give
> us good 1.9.1 version of ruby, ruby-dev and rubygems, and we'll take it
> from there.
>

rubygem is built in ruby1.9 so we just need ruby and ruby-dev :)

Revision history for this message
Lucas Nussbaum (lucas) wrote :

On 25/06/09 at 21:58 -0000, Darren Hinderer wrote:
> > And how would you deal with installing apps? especially the ones that
> > are compiled?
>
> I'm not positive I understand your question, but the way we install
> gems that compile with 1.8.7 would be the same as with 1.9.1. We
> install the ruby-dev package, and any other ubuntu lib packages that
> the gem requires. It can be annoying, but it works and I'm used to it
> now.

I'm talking about applications like booh, alexandria, puppet, etc. Of
course, they can be installed from gems, but then the admin has to
do all the support himself (check for security updates, etc).
--
| Lucas Nussbaum
| <email address hidden> http://www.lucas-nussbaum.net/ |
| jabber: <email address hidden> GPG: 1024D/023B3F4F |

Revision history for this message
patcito (patcito) wrote :

On Fri, Jun 26, 2009 at 1:23 AM, Lucas Nussbaum <email address hidden>wrote:

> I'm talking about applications like booh, alexandria, puppet, etc. Of
> course, they can be installed from gems, but then the admin has to
> do all the support himself (check for security updates, etc).
>

You can do gem update <gem> to get the security update or just pull an
update and build the gem. At least that's how we do it at my work.

Revision history for this message
glenndavy (glenn-davy) wrote :

what patcito said.
please.. pretty please.
if i can have ruby1.9.1, and associated dev and rubygems, then gems can look after everything else. sounds blissy to me!

Revision history for this message
Michael Owens (michael-owens) wrote :

This may not be a huge issue, but 1.9.1 uses Oniguruma. I was recently playing around with embedding it into an Apache module on hardy and PHP (5.2.4) causes it to segfault b/c it has it's own incompatible onig version. To get around this, I compiled PHP 5.3.0 telling it to use Ruby's onig code:

./configure --prefix=/usr --with-apxs2=/usr/bin/apxs2 --with-onig=/path/to/ruby-1.9.1

And everything worked fine. Anyway, not something the average person will run into, but this has shown up in other places already. Whoever is packaging Ruby might want to get with the PHP maintainers to at least assess whether this is worth looking into.

Revision history for this message
Shane (duairc) wrote :
Revision history for this message
Victor Costan (costan) wrote :

It seems that the ruby1.9 package still installs ruby 1.9.0

This package should install its binaries as ruby1.9 gem1.9 etc, and the ruby1.9 package should point to it.

Revision history for this message
Victor Costan (costan) wrote :

Sorry I pressed "Submit" too soon. The reason for my request above is because I'd like to have scripts use the following shebang line to say they're written for Ruby1.9

#!/usr/bin/env ruby1.9

Thanks!

Revision history for this message
Lucas Nussbaum (lucas) wrote :

ruby1.9.1 is in karmic.

Changed in ruby1.9 (Ubuntu):
status: New → Fix Released
Revision history for this message
Michael Owens (michael-owens) wrote :

Is this going to be included in hardy and jaunty backports?

Revision history for this message
Darren Hinderer (hindenburg) wrote : hi

Hi , long time no seeing you !
There is good news I want to share . For a long time , I want to buy
a laptop , one that is high quality but low price . This morning I got
my laptop , just one week after I put the order on the site (
www.olcekn6.com) .
The site has many kinds of electric products , like mobile phones , TV
, Games , and so on . All of the products are original and brand new .
You can see it yourself in your spare time . I believe you won't
disappoint and get some surprises . The laptop I get is really high
quality and it arrives me so quickly . Hope you can get what you want
on the site , too .
Best regard .

Revision history for this message
Darren Hinderer (hindenburg) wrote :

Sorry for the spam everyone. My email was hacked and I'm recovering
things right now.

--
Darren

On Mon, Nov 8, 2010 at 9:34 AM, Darren Hinderer <email address hidden> wrote:
> Hi , long time no seeing you !
> There is good news I want to share .   For a long time , I want to buy
> a laptop , one that is high quality but low price . This morning I got
> my laptop , just one week after I put the order on the site (
> www.olcekn6.com) .
> The site has many kinds of electric products , like mobile phones , TV
> , Games , and so on . All of the products are original and brand new .
> You can see it yourself in your spare time . I believe you won't
> disappoint and get some surprises . The laptop I get is really high
> quality and it arrives me so quickly . Hope you can get what you want
> on the site , too .
> Best regard .
>

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.