From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id F1DEC198005 for ; Fri, 22 Feb 2013 19:02:13 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 777E821C057; Fri, 22 Feb 2013 19:02:13 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 5019CE05EB for ; Fri, 22 Feb 2013 19:02:11 +0000 (UTC) Received: from hornbill.gentoo.org (hornbill.gentoo.org [94.100.119.163]) (using TLSv1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 3702733DF0F for ; Fri, 22 Feb 2013 19:02:10 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by hornbill.gentoo.org (Postfix) with ESMTP id C9CBAE4073 for ; Fri, 22 Feb 2013 19:02:08 +0000 (UTC) From: "Hans de Graaff" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Hans de Graaff" Message-ID: <1361559723.4b09ac140c17296903d3fab144a0bd38f204864a.graaff@gentoo> Subject: [gentoo-commits] proj/ruby-scripts:master commit in: patchsets/patches-1.9.3_p392/ X-VCS-Repository: proj/ruby-scripts X-VCS-Files: patchsets/patches-1.9.3_p392/004_gfbsd7.patch patchsets/patches-1.9.3_p392/005_no-undefined-ext.patch patchsets/patches-1.9.3_p392/009_no-gems.patch X-VCS-Directories: patchsets/patches-1.9.3_p392/ X-VCS-Committer: graaff X-VCS-Committer-Name: Hans de Graaff X-VCS-Revision: 4b09ac140c17296903d3fab144a0bd38f204864a X-VCS-Branch: master Date: Fri, 22 Feb 2013 19:02:08 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: fb61cc69-0fdc-4fce-a6e6-acb832141b56 X-Archives-Hash: 45e4ef5d3e24455c2919d6a793bc952e commit: 4b09ac140c17296903d3fab144a0bd38f204864a Author: Hans de Graaff degraaff org> AuthorDate: Fri Feb 22 19:02:03 2013 +0000 Commit: Hans de Graaff gentoo org> CommitDate: Fri Feb 22 19:02:03 2013 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/ruby-scripts.git;a=commit;h=4b09ac14 Patches for 1.9.3_p392. These are identical to 1.9.3_p385. --- patchsets/patches-1.9.3_p392/004_gfbsd7.patch | 37 +++++++++++++ .../patches-1.9.3_p392/005_no-undefined-ext.patch | 11 ++++ patchsets/patches-1.9.3_p392/009_no-gems.patch | 55 ++++++++++++++++++++ 3 files changed, 103 insertions(+), 0 deletions(-) diff --git a/patchsets/patches-1.9.3_p392/004_gfbsd7.patch b/patchsets/patches-1.9.3_p392/004_gfbsd7.patch new file mode 100644 index 0000000..7a80142 --- /dev/null +++ b/patchsets/patches-1.9.3_p392/004_gfbsd7.patch @@ -0,0 +1,37 @@ +--- ruby-1.9.3-preview1.orig/configure.in ++++ ruby-1.9.3-preview1/configure.in +@@ -1946,7 +1946,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 +@@ -2035,7 +2035,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" +@@ -2048,7 +2048,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" +@@ -2336,7 +2335,7 @@ AS_CASE("$enable_shared", [yes], [ + [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' + if test "$load_relative" = yes; then diff --git a/patchsets/patches-1.9.3_p392/005_no-undefined-ext.patch b/patchsets/patches-1.9.3_p392/005_no-undefined-ext.patch new file mode 100644 index 0000000..f279932 --- /dev/null +++ b/patchsets/patches-1.9.3_p392/005_no-undefined-ext.patch @@ -0,0 +1,11 @@ +--- ruby-1.9.3-preview1.orig/configure.in ++++ ruby-1.9.3-preview1/configure.in +@@ -2038,7 +2038,7 @@ if test "$with_dln_a_out" != yes; then + [linux* | gnu* | k*bsd*-gnu | netbsd* | bsdi* | kopensolaris*-gnu], [ + : ${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.3_p392/009_no-gems.patch b/patchsets/patches-1.9.3_p392/009_no-gems.patch new file mode 100644 index 0000000..0c60885 --- /dev/null +++ b/patchsets/patches-1.9.3_p392/009_no-gems.patch @@ -0,0 +1,55 @@ +--- ruby-1.9.3-preview1.orig/tool/rbinstall.rb ++++ ruby-1.9.3-preview1/tool/rbinstall.rb +@@ -532,51 +532,7 @@ install?(:local, :comm, :man) do + end + + install?(:ext, :comm, :gem) do +- $:.unshift(File.join(srcdir, "lib")) +- require("rubygems.rb") +- gem_dir = Gem.default_dir +- directories = Gem.ensure_gem_subdirectories(gem_dir) +- prepare "default gems", gem_dir, directories +- +- spec_dir = File.join(gem_dir, directories.grep(/^spec/)[0]) +- File.foreach(File.join(srcdir, "defs/default_gems")) do |line| +- line.chomp! +- line.sub!(/\s*#.*/, '') +- next if line.empty? +- words = [] +- line.scan(/\G\s*([^\[\]\s]+|\[([^\[\]]*)\])/) do +- words << ($2 ? $2.split : $1) +- end +- name, src, execs = *words +- next unless name and src +- execs ||= [] +- src = File.join(srcdir, 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] +- full_name = "#{name}-#{version}" +- +- puts "#{" "*30}#{name} #{version}" +- open_for_install(File.join(spec_dir, "#{full_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" +- s.executables = #{execs.inspect} +-end +- GEMSPEC +- end +- +- unless execs.empty? then +- bin_dir = File.join(gem_dir, 'gems', full_name, 'bin') +- makedirs(bin_dir) +- +- execs.each do |exec| +- exec = File.join(srcdir, 'bin', exec) +- install(exec, bin_dir, :mode => $prog_mode) +- end +- end +- end ++ # gems are unbundled + end + + parse_args()