2006-04-20 04:35:04 +00:00
|
|
|
diff -ruN ruby-1.8.4.orig/configure.in ruby-1.8.4/configure.in
|
|
|
|
--- ruby-1.8.4.orig/configure.in 2006-04-20 12:53:38.000000000 +0900
|
|
|
|
+++ ruby-1.8.4/configure.in 2006-04-20 13:06:07.000000000 +0900
|
2006-06-07 07:32:39 +00:00
|
|
|
@@ -1472,12 +1472,16 @@
|
2006-04-20 04:35:04 +00:00
|
|
|
esac
|
|
|
|
RUBY_SITE_LIB_PATH3="${RUBY_SITE_LIB_PATH2}/${MAJOR}.${MINOR}"
|
|
|
|
RUBY_SITE_LIB_PATH2="${RUBY_SITE_LIB_PATH}/${MAJOR}.${MINOR}"
|
|
|
|
+RUBY_DEPRECATED_SITE_LIB_PATH="${SITE_DIR2}/${MAJOR}.${MINOR}"
|
|
|
|
|
|
|
|
AC_DEFINE_UNQUOTED(RUBY_LIB, "${RUBY_LIB_PATH}")
|
|
|
|
AC_DEFINE_UNQUOTED(RUBY_SITE_LIB, "${RUBY_SITE_LIB_PATH}")
|
|
|
|
AC_DEFINE_UNQUOTED(RUBY_SITE_LIB2, "${RUBY_SITE_LIB_PATH2}")
|
2006-06-07 07:32:39 +00:00
|
|
|
AC_DEFINE_UNQUOTED(RUBY_DEPRECATED_OLD_SITE_LIB, "${libdir}/site_ruby")
|
|
|
|
AC_DEFINE_UNQUOTED(RUBY_DEPRECATED_OLD_SITE_LIB2, "${libdir}/site_ruby/${MAJOR}.${MINOR}")
|
2006-04-20 04:35:04 +00:00
|
|
|
+AC_DEFINE_UNQUOTED(RUBY_DEPRECATED_LIB, "${RUBY_LIB_PATH2}")
|
|
|
|
+AC_DEFINE_UNQUOTED(RUBY_DEPRECATED_SITE_LIB, "${SITE_DIR2}")
|
|
|
|
+AC_DEFINE_UNQUOTED(RUBY_DEPRECATED_SITE_LIB2, "${RUBY_DEPRECATED_SITE_LIB_PATH}")
|
|
|
|
|
|
|
|
AC_SUBST(arch)dnl
|
|
|
|
AC_SUBST(sitearch)dnl
|
|
|
|
diff -ruN ruby-1.8.4.orig/ruby.c ruby-1.8.4/ruby.c
|
|
|
|
--- ruby-1.8.4.orig/ruby.c 2005-12-12 09:36:52.000000000 +0900
|
|
|
|
+++ ruby-1.8.4/ruby.c 2006-04-20 12:59:50.000000000 +0900
|
2006-06-07 07:32:39 +00:00
|
|
|
@@ -292,11 +292,17 @@
|
2006-04-20 04:35:04 +00:00
|
|
|
#endif
|
|
|
|
|
2007-10-10 02:38:06 +00:00
|
|
|
incpush(RUBY_RELATIVE(RUBY_SITE_LIB2));
|
2006-04-20 04:35:04 +00:00
|
|
|
+#ifdef RUBY_DEPRECATED_SITE_LIB
|
2007-10-10 02:38:06 +00:00
|
|
|
+ incpush(RUBY_RELATIVE(RUBY_DEPRECATED_SITE_LIB2));
|
2006-04-20 04:35:04 +00:00
|
|
|
+#endif
|
|
|
|
#ifdef RUBY_SITE_THIN_ARCHLIB
|
2007-10-10 02:38:06 +00:00
|
|
|
incpush(RUBY_RELATIVE(RUBY_SITE_THIN_ARCHLIB));
|
2006-04-20 04:35:04 +00:00
|
|
|
#endif
|
2007-10-10 02:38:06 +00:00
|
|
|
incpush(RUBY_RELATIVE(RUBY_SITE_ARCHLIB));
|
|
|
|
incpush(RUBY_RELATIVE(RUBY_SITE_LIB));
|
2006-04-20 04:35:04 +00:00
|
|
|
+#ifdef RUBY_DEPRECATED_SITE_LIB
|
2007-10-10 02:38:06 +00:00
|
|
|
+ incpush(RUBY_RELATIVE(RUBY_DEPRECATED_SITE_LIB));
|
2006-04-20 04:35:04 +00:00
|
|
|
+#endif
|
2006-06-08 07:53:37 +00:00
|
|
|
#ifdef RUBY_DEPRECATED_OLD_SITE_LIB2
|
2007-10-10 02:38:06 +00:00
|
|
|
incpush(RUBY_RELATIVE(RUBY_DEPRECATED_OLD_SITE_LIB2));
|
2006-06-07 07:32:39 +00:00
|
|
|
#endif
|
|
|
|
@@ -308,6 +314,9 @@
|
|
|
|
#endif
|
2006-04-20 04:35:04 +00:00
|
|
|
|
2007-10-10 02:38:06 +00:00
|
|
|
incpush(RUBY_RELATIVE(RUBY_LIB));
|
2006-04-20 04:35:04 +00:00
|
|
|
+#ifdef RUBY_DEPRECATED_LIB
|
2007-10-10 02:38:06 +00:00
|
|
|
+ incpush(RUBY_RELATIVE(RUBY_DEPRECATED_LIB));
|
2006-04-20 04:35:04 +00:00
|
|
|
+#endif
|
|
|
|
#ifdef RUBY_THIN_ARCHLIB
|
2007-10-10 02:38:06 +00:00
|
|
|
incpush(RUBY_RELATIVE(RUBY_THIN_ARCHLIB));
|
2006-04-20 04:35:04 +00:00
|
|
|
#endif
|