Re: require issue
Lucas Nussbaum wrote:
> That is caused by the "magic" in ruby 1.9.* which tries to fallback to
> using rubygems if a normal require fails. I'm not sure yet where we
> should go about that.
It might avoid trouble with unpackaged code, if this rubygems fallback is
kept. But there should at least be a useful error message. Currently it
just complains about the missing rubygems, not the library it tried to
load in the first place.
Attached is small patch that updates NEWS/README.Debian for the LOAD_PATH
changes.
Tobias
Index: debian/changelog
===================================================================
--- debian/changelog (Revision 468)
+++ debian/changelog (Arbeitskopie)
@@ -1,3 +1,10 @@
+ruby1.9.1 (1.9.2~svn28788-2) unstable; urgency=low
+
+ * Updated documentation refering to $LOAD_PATH
+ *
+
+ -- Tobias Grimm <etobi@debian.org> Sun, 15 Aug 2010 18:29:48 +0200
+
ruby1.9.1 (1.9.2~svn28788-1) unstable; urgency=low
* New release based on upstream snapshot from the 1.9.2 branch,
Index: debian/NEWS
===================================================================
--- debian/NEWS (Revision 468)
+++ debian/NEWS (Arbeitskopie)
@@ -1,3 +1,23 @@
+ruby1.9.1 (1.9.2~svn28788-1) unstable; urgency=low
+
+ $LOAD_PATH is changed in Ruby 1.9.1-p0 as the following:
+
+ ["/usr/local/lib/site_ruby/1.9.1",
+ "/usr/local/lib/site_ruby/1.9.1/i486-linux",
+ "/usr/local/lib/site_ruby",
+ "/usr/lib/ruby/vendor_ruby/1.9.1",
+ "/usr/lib/ruby/vendor_ruby/1.9.1/i486-linux",
+ "/usr/lib/ruby/vendor_ruby",
+ "/usr/lib/ruby/1.9.1",
+ "/usr/lib/ruby/1.9.1/i486-linux"]
+
+ Please note that "." is no longer part of the $LOAD_PATH, so you might need to
+ change require statements using relative paths.
+
+ This changes was introduced by the upstream author.
+
+ -- Tobias Grimm <etobi@debian.org> Sun, 15 Aug 2010 18:01:51 +0200
+
ruby1.9 (1.9.1.0-1) experimental; urgency=low
$LOAD_PATH is changed in Ruby 1.9.1-p0 as the following:
Index: debian/README.Debian
===================================================================
--- debian/README.Debian (Revision 468)
+++ debian/README.Debian (Arbeitskopie)
@@ -1,14 +1,14 @@
-Ruby 1.9 for Debian GNU/Linux
------------------------------
+Ruby 1.9.1 for Debian GNU/Linux
+-------------------------------
-This is Ruby 1.9 package for Debian GNU/Linux.
+This is Ruby 1.9.1 package for Debian GNU/Linux.
Ruby is the interpreted scripting language for quick and easy
object-oriented programming. It has many features to process text files and
to do system management tasks (as in perl). It is simple, straight-forward,
and extensible.
-Ruby 1.9.0 is the development version of Ruby.
+Ruby 1.9.1 is the current version of the Ruby 1.9 series.
Homepage of Ruby is:
@@ -21,39 +21,36 @@
For Debian users:
- * You can use /usr/bin/ruby1.9.
+ * You can use /usr/bin/ruby1.9.1
* ``sitedir'' is /usr/local/lib/site_ruby, so ``$:'' (or ``$LOAD_PATH'')
contains the following:
- ["/usr/local/lib/site_ruby/1.9.0",
- "/usr/local/lib/site_ruby/1.9.0/i486-linux",
- "/usr/local/lib/site_ruby/1.9/i386-linux",
+ ["/usr/local/lib/site_ruby/1.9.1",
+ "/usr/local/lib/site_ruby/1.9.1/i486-linux",
"/usr/local/lib/site_ruby",
- "/usr/lib/ruby/vendor_ruby/1.9.0",
- "/usr/lib/ruby/vendor_ruby/1.9.0/i486-linux",
+ "/usr/lib/ruby/vendor_ruby/1.9.1",
+ "/usr/lib/ruby/vendor_ruby/1.9.1/i486-linux",
"/usr/lib/ruby/vendor_ruby",
- "/usr/lib/ruby/1.9.0",
- "/usr/lib/ruby/1.9.0/i486-linux",
- "/usr/lib/ruby/1.9/i386-linux",
- "."]
+ "/usr/lib/ruby/1.9.1",
+ "/usr/lib/ruby/1.9.1/i486-linux"]
- ("1.9.0" means "#{major}.#{minor}.#{teeny}" and "i486-linux" means "#{arch}-#{os}".)
+ ("1.9.1" means "#{major}.#{minor}.#{teeny}" and "i486-linux" means "#{arch}-#{os}".)
* Debian ruby policy is available in /usr/share/doc/ruby/ruby-policy.txt.gz
(ruby package)
* Some libraries are in sub-packages.
- * irb1.9 - irb program and libraries
- * ri1.9 - ri program
- * rdoc1.9 - rdoc program and libraries
- * libdbm-ruby1.9 - dbm.so
- * libdbm-gruby1.9 - gdbm.so
- * libreadline-ruby1.9 - readline.so
- * libtcltk-ruby1.9 - tkutil.so, tcltklib.so and related libraries
- * libopenssl-ruby1.9 - openssl.so and libraries which use openssl
- * ruby1.9-dev - header files and mkmf.rb.
- * ruby1.9-elisp - ruby-mode, etc
- * ruby1.9-examples - example programs
+ * irb1.9.1 - irb program and libraries
+ * ri1.9.1 - ri program
+ * rdoc1.9.1 - rdoc program and libraries
+ * libdbm-ruby1.9.1 - dbm.so
+ * libdbm-gruby1.9.1 - gdbm.so
+ * libreadline-ruby1.9.1 - readline.so
+ * libtcltk-ruby1.9.1 - tkutil.so, tcltklib.so and related libraries
+ * libopenssl-ruby1.9.1 - openssl.so and libraries which use openssl
+ * ruby1.9.1-dev - header files and mkmf.rb.
+ * ruby1.9.1-elisp - ruby-mode, etc
+ * ruby1.9.1-examples - example programs
-- akira yamada <akira@debian.org>, Thu, 25 Dec 2007 15:44:00 +0900
Reply to: