diff options
author | 2010-08-24 18:36:30 +0200 | |
---|---|---|
committer | 2010-08-24 18:36:30 +0200 | |
commit | bb183367626d928bd9b96c6b93edd2bd617e1fbb (patch) | |
tree | 91c055cce97fd85fae6f1a1849f54e80bf1581bb /patchsets | |
parent | Add 1.8.7_p302 patchset (diff) | |
download | ruby-scripts-bb183367626d928bd9b96c6b93edd2bd617e1fbb.tar.gz ruby-scripts-bb183367626d928bd9b96c6b93edd2bd617e1fbb.tar.bz2 ruby-scripts-bb183367626d928bd9b96c6b93edd2bd617e1fbb.zip |
Add 1.9.2-p0 patchespatches-1.9.2-p0
Diffstat (limited to 'patchsets')
-rw-r--r-- | patchsets/distfiles/ruby-patches-1.9.2.tar.bz2 | bin | 0 -> 2272 bytes | |||
-rw-r--r-- | patchsets/patches-1.9.2/004_gfbsd7.patch | 39 | ||||
-rw-r--r-- | patchsets/patches-1.9.2/005_no-undefined-ext.patch | 13 | ||||
-rw-r--r-- | patchsets/patches-1.9.2/006_no-rake.patch | 12 | ||||
-rw-r--r-- | patchsets/patches-1.9.2/007_berkdb-5.0.patch | 31 | ||||
-rw-r--r-- | patchsets/patches-1.9.2/009_no-gems.patch | 44 | ||||
-rw-r--r-- | patchsets/patches-1.9.2/series | 6 |
7 files changed, 145 insertions, 0 deletions
diff --git a/patchsets/distfiles/ruby-patches-1.9.2.tar.bz2 b/patchsets/distfiles/ruby-patches-1.9.2.tar.bz2 Binary files differnew file mode 100644 index 0000000..77cff1e --- /dev/null +++ b/patchsets/distfiles/ruby-patches-1.9.2.tar.bz2 diff --git a/patchsets/patches-1.9.2/004_gfbsd7.patch b/patchsets/patches-1.9.2/004_gfbsd7.patch new file mode 100644 index 0000000..d5c2fea --- /dev/null +++ b/patchsets/patches-1.9.2/004_gfbsd7.patch @@ -0,0 +1,39 @@ +Index: ruby-1.9.2-rc2/configure.in +=================================================================== +--- ruby-1.9.2-rc2.orig/configure.in ++++ ruby-1.9.2-rc2/configure.in +@@ -1683,7 +1683,7 @@ if test "$rb_cv_binary_elf" = yes; then + fi + + AS_CASE(["$target_os"], +-[linux* | gnu* | k*bsd*-gnu | bsdi* | kopensolaris*-gnu], [ ++[linux* | gnu* | k*bsd*-gnu | bsdi* | kopensolaris*-gnu | freebsd* | dragonfly*], [ + if test "$rb_cv_binary_elf" = no; then + with_dln_a_out=yes + else +@@ -1772,7 +1772,7 @@ if test "$with_dln_a_out" != yes; then + [bsdi3*], [ AS_CASE(["$CC"], + [*shlicc*], [ : ${LDSHARED='$(CC) -r'} + rb_cv_dlopen=yes])], +- [linux* | gnu* | k*bsd*-gnu | netbsd* | bsdi* | kopensolaris*-gnu], [ ++ [linux* | gnu* | k*bsd*-gnu | netbsd* | bsdi* | kopensolaris*-gnu | freebsd7*], [ + : ${LDSHARED='$(CC) -shared'} + if test "$rb_cv_binary_elf" = yes; then + LDFLAGS="$LDFLAGS -Wl,-export-dynamic" +@@ -1785,7 +1785,6 @@ if test "$with_dln_a_out" != yes; then + [freebsd*|dragonfly*], [ + : ${LDSHARED='$(CC) -shared'} + if test "$rb_cv_binary_elf" = yes; then +- LDFLAGS="$LDFLAGS -rdynamic" + DLDFLAGS="$DLDFLAGS "'-Wl,-soname,$(.TARGET)' + else + test "$GCC" = yes && test "$rb_cv_prog_gnu_ld" = yes || LDSHARED="ld -Bshareable" +@@ -2066,7 +2065,7 @@ if test "$enable_shared" = 'yes'; then + [sunos4*], [ + LIBRUBY_ALIASES='lib$(RUBY_SO_NAME).so.$(MAJOR).$(MINOR) lib$(RUBY_SO_NAME).so' + ], +- [linux* | gnu* | k*bsd*-gnu | atheos* | kopensolaris*-gnu], [ ++ [linux* | gnu* | k*bsd*-gnu | atheos* | kopensolaris*-gnu | freebsd7*], [ + LIBRUBY_DLDFLAGS='-Wl,-soname,lib$(RUBY_SO_NAME).so.$(MAJOR).$(MINOR)' + LIBRUBY_ALIASES='lib$(RUBY_SO_NAME).so.$(MAJOR).$(MINOR) lib$(RUBY_SO_NAME).so' + ], diff --git a/patchsets/patches-1.9.2/005_no-undefined-ext.patch b/patchsets/patches-1.9.2/005_no-undefined-ext.patch new file mode 100644 index 0000000..1a4ca31 --- /dev/null +++ b/patchsets/patches-1.9.2/005_no-undefined-ext.patch @@ -0,0 +1,13 @@ +Index: ruby-1.9.2-rc2/configure.in +=================================================================== +--- ruby-1.9.2-rc2.orig/configure.in ++++ ruby-1.9.2-rc2/configure.in +@@ -1775,7 +1775,7 @@ if test "$with_dln_a_out" != yes; then + [linux* | gnu* | k*bsd*-gnu | netbsd* | bsdi* | kopensolaris*-gnu | freebsd7*], [ + : ${LDSHARED='$(CC) -shared'} + if test "$rb_cv_binary_elf" = yes; then +- LDFLAGS="$LDFLAGS -Wl,-export-dynamic" ++ LDFLAGS="$LDFLAGS -Wl,-export-dynamic -Wl,--no-undefined" + fi + rb_cv_dlopen=yes], + [interix*], [ : ${LDSHARED='$(CC) -shared'} diff --git a/patchsets/patches-1.9.2/006_no-rake.patch b/patchsets/patches-1.9.2/006_no-rake.patch new file mode 100644 index 0000000..8107c75 --- /dev/null +++ b/patchsets/patches-1.9.2/006_no-rake.patch @@ -0,0 +1,12 @@ +Index: ruby-1.9.2-rc2/tool/rbinstall.rb +=================================================================== +--- ruby-1.9.2-rc2.orig/tool/rbinstall.rb ++++ ruby-1.9.2-rc2/tool/rbinstall.rb +@@ -504,7 +504,6 @@ install?(:ext, :comm, :gem) do + + destdir = File.join(gpath, directories.grep(/^spec/)[0]) + default_gems = [ +- ['rake', 'rake.rb'], + ['rdoc', 'rdoc.rb'], + ['minitest', 'minitest/unit.rb'], + ] diff --git a/patchsets/patches-1.9.2/007_berkdb-5.0.patch b/patchsets/patches-1.9.2/007_berkdb-5.0.patch new file mode 100644 index 0000000..bc32020 --- /dev/null +++ b/patchsets/patches-1.9.2/007_berkdb-5.0.patch @@ -0,0 +1,31 @@ +Index: ruby-1.9.2-rc2/ext/dbm/extconf.rb +=================================================================== +--- ruby-1.9.2-rc2.orig/ext/dbm/extconf.rb ++++ ruby-1.9.2-rc2/ext/dbm/extconf.rb +@@ -21,12 +21,12 @@ headers = { + def headers.db_check(db) + db_prefix = nil + have_gdbm = false +- hsearch = nil ++ db_defs = nil + + case db + when /^db2?$/ + db_prefix = "__db_n" +- hsearch = "-DDB_DBM_HSEARCH " ++ db_defs = %w[-DDB_DBM_HSEARCH -DHAVE_DBM] + when "gdbm" + have_gdbm = true + when "gdbm_compat" +@@ -36,9 +36,9 @@ def headers.db_check(db) + db_prefix ||= "" + + if (have_library(db, db_prefix+"dbm_open") || have_func(db_prefix+"dbm_open")) and +- hdr = self.fetch(db, ["ndbm.h"]).find {|h| have_type("DBM", h, hsearch)} ++ hdr = self.fetch(db, ["ndbm.h"]).find {|h| have_type("DBM", h, db_defs.join(" "))} + have_func(db_prefix+"dbm_clearerr") unless have_gdbm +- $defs << hsearch if hsearch ++ $defs += db_defs if db_defs + $defs << '-DDBM_HDR="<'+hdr+'>"' + true + else diff --git a/patchsets/patches-1.9.2/009_no-gems.patch b/patchsets/patches-1.9.2/009_no-gems.patch new file mode 100644 index 0000000..b9f0f1b --- /dev/null +++ b/patchsets/patches-1.9.2/009_no-gems.patch @@ -0,0 +1,44 @@ +Index: ruby-1.9.2-rc2/tool/rbinstall.rb +=================================================================== +--- ruby-1.9.2-rc2.orig/tool/rbinstall.rb ++++ ruby-1.9.2-rc2/tool/rbinstall.rb +@@ -491,39 +491,6 @@ install?(:local, :comm, :man) do + end + end + +-install?(:ext, :comm, :gem) do +- directories = [] +- IO.foreach(File.join(srcdir, "lib/rubygems.rb")) do |line| +- if /^\s*DIRECTORIES\s*=\s*%w\[(.*?)\]/ =~ line +- directories = $1.split +- break +- end +- end +- gpath = CONFIG["sitelibdir"].sub(%r'/site_ruby/(?=[^/]+)', '/gems/') +- prepare "default gems", gpath, directories +- +- destdir = File.join(gpath, directories.grep(/^spec/)[0]) +- default_gems = [ +- ['rdoc', 'rdoc.rb'], +- ['minitest', 'minitest/unit.rb'], +- ] +- default_gems.each do |name, src| +- src = File.join(srcdir, "lib", src) +- version = open(src) {|f| f.find {|s| /^\s*\w*VERSION\s*=(?!=)/ =~ s}} or next +- version = version.split(%r"=\s*", 2)[1].strip[/\A([\'\"])(.*?)\1/, 2] +- puts "#{" "*30}#{name} #{version}" +- open_for_install(File.join(destdir, "#{name}.gemspec"), $data_mode) do +- <<-GEMSPEC +-Gem::Specification.new do |s| +- s.name = #{name.dump} +- s.version = #{version.dump} +- s.summary = "This #{name} is bundled with Ruby" +-end +- GEMSPEC +- end +- end +-end +- + parse_args() + + include FileUtils diff --git a/patchsets/patches-1.9.2/series b/patchsets/patches-1.9.2/series new file mode 100644 index 0000000..7cb11b8 --- /dev/null +++ b/patchsets/patches-1.9.2/series @@ -0,0 +1,6 @@ +004_gfbsd7.patch +005_no-undefined-ext.patch +006_no-rake.patch +007_berkdb-5.0.patch +008_CVE-2010-0541.patch +009_no-gems.patch |