summaryrefslogtreecommitdiff
path: root/lang/ruby20/files
diff options
context:
space:
mode:
Diffstat (limited to 'lang/ruby20/files')
-rw-r--r--lang/ruby20/files/patch-configure.in20
-rw-r--r--lang/ruby20/files/patch-tool_mkconfig.rb8
2 files changed, 14 insertions, 14 deletions
diff --git a/lang/ruby20/files/patch-configure.in b/lang/ruby20/files/patch-configure.in
index c3316ff88b0d..c81b5ff31ee5 100644
--- a/lang/ruby20/files/patch-configure.in
+++ b/lang/ruby20/files/patch-configure.in
@@ -1,9 +1,9 @@
---- configure.in.orig 2013-02-24 14:27:36.217251070 +0000
-+++ configure.in 2013-02-24 14:27:25.267251221 +0000
-@@ -1308,11 +1308,11 @@
- ac_cv_func_fcntl=no
- ],
- [ LIBS="-lm $LIBS"])
+--- configure.in.orig 2013-05-27 03:48:52.340695232 +0000
++++ configure.in 2013-05-27 03:49:12.060695078 +0000
+@@ -1380,11 +1380,11 @@
+ AC_CHECK_DECLS([sys_nerr], [], [], [$ac_includes_default
+ @%:@include <errno.h>])
+
-AC_CHECK_LIB(crypt, crypt)
-AC_CHECK_LIB(dl, dlopen) # Dynamic linking for SunOS/Solaris and SYSV
-AC_CHECK_LIB(dld, shl_load) # Dynamic linking for HP-UX
@@ -17,7 +17,7 @@
AS_CASE(["$target_cpu"],
[alpha*|sh4|sh4el|sh4eb], [AS_CASE(["$target_os"::"$GCC"],
-@@ -2018,7 +2018,7 @@
+@@ -2074,7 +2074,7 @@
fi
if test x"$enable_pthread" = xyes; then
@@ -26,7 +26,7 @@
AC_CHECK_LIB($pthread_lib, pthread_kill,
rb_with_pthread=yes, rb_with_pthread=no)
if test "$rb_with_pthread" = "yes"; then break; fi
-@@ -2026,6 +2026,7 @@
+@@ -2082,6 +2082,7 @@
if test x"$rb_with_pthread" = xyes; then
AC_DEFINE(_REENTRANT)
AC_DEFINE(_THREAD_SAFE)
@@ -34,7 +34,7 @@
AC_DEFINE(HAVE_LIBPTHREAD)
AC_CHECK_HEADERS(pthread_np.h, [], [], [@%:@include <pthread.h>])
AS_CASE([$pthread_lib],
-@@ -2263,7 +2264,6 @@
+@@ -2319,7 +2320,6 @@
: ${LDSHARED='$(CC) -shared'}
if test "$rb_cv_binary_elf" = yes; then
LDFLAGS="$LDFLAGS -rdynamic"
@@ -42,7 +42,7 @@
else
test "$GCC" = yes && test "$rb_cv_prog_gnu_ld" = yes || LDSHARED='$(LD) -Bshareable'
fi
-@@ -2649,6 +2649,7 @@
+@@ -2703,6 +2703,7 @@
[freebsd*|dragonfly*], [
SOLIBS='$(LIBS)'
LIBRUBY_SO='lib$(RUBY_SO_NAME).so.$(MAJOR)$(MINOR)'
diff --git a/lang/ruby20/files/patch-tool_mkconfig.rb b/lang/ruby20/files/patch-tool_mkconfig.rb
index ad89fa2b0423..d9163e72ae3d 100644
--- a/lang/ruby20/files/patch-tool_mkconfig.rb
+++ b/lang/ruby20/files/patch-tool_mkconfig.rb
@@ -1,9 +1,9 @@
---- tool/mkconfig.rb.orig 2013-02-07 07:21:30.000000000 +0000
-+++ tool/mkconfig.rb 2013-02-17 21:42:09.807835598 +0000
-@@ -167,7 +167,8 @@
- val
+--- tool/mkconfig.rb.orig 2013-05-27 03:20:03.501815638 +0000
++++ tool/mkconfig.rb 2013-05-27 03:20:31.093814303 +0000
+@@ -173,7 +173,8 @@
end
vars["prefix"] = ""
+ vars["exec_prefix"] = ""
-prefix = vars.expand(vars["rubyarchdir"])
+major, minor, *rest = RUBY_VERSION.split('.')
+prefix = "/lib/ruby/#{major}.#{minor}/#{arch}"