|
|
5257f0 |
From e943a89efd63dcfb80a0ab8d9a4db37f523f508e Mon Sep 17 00:00:00 2001
|
|
|
5257f0 |
From: =?UTF-8?q?V=C3=ADt=20Ondruch?= <vondruch@redhat.com>
|
|
|
5257f0 |
Date: Fri, 8 Feb 2013 22:48:41 +0100
|
|
|
5257f0 |
Subject: [PATCH] Prevent duplicated paths when empty version string is
|
|
|
5257f0 |
configured.
|
|
|
5257f0 |
|
|
|
5257f0 |
---
|
|
|
5257f0 |
configure.in | 3 +++
|
|
|
5257f0 |
version.c | 10 ++++++++++
|
|
|
5257f0 |
2 files changed, 13 insertions(+)
|
|
|
5257f0 |
|
|
|
5257f0 |
diff --git a/configure.in b/configure.in
|
|
|
5257f0 |
index 5850bbf..7604bb8 100644
|
|
|
5257f0 |
--- a/configure.in
|
|
|
5257f0 |
+++ b/configure.in
|
|
|
4acc54 |
@@ -3419,6 +3419,9 @@ unexpand_shvar exec_prefix prefix
|
|
|
5257f0 |
if test ${RUBY_LIB_VERSION_STYLE+set}; then
|
|
|
5257f0 |
AC_DEFINE_UNQUOTED(RUBY_LIB_VERSION_STYLE, $RUBY_LIB_VERSION_STYLE !<verconf>!)
|
|
|
5257f0 |
else
|
|
|
5257f0 |
+ if test "x${ruby_version}" = 'x'; then
|
|
|
5257f0 |
+ AC_DEFINE(RUBY_LIB_VERSION_BLANK, 1)
|
|
|
5257f0 |
+ fi
|
|
|
5257f0 |
AC_DEFINE_UNQUOTED(RUBY_LIB_VERSION, [$RUBY_LIB_VERSION] !<verconf>!)
|
|
|
5257f0 |
fi
|
|
|
5257f0 |
AC_DEFINE_UNQUOTED(RUBY_EXEC_PREFIX, ${RUBY_EXEC_PREFIX})
|
|
|
5257f0 |
diff --git a/version.c b/version.c
|
|
|
5257f0 |
index 282960d..54c4513 100644
|
|
|
5257f0 |
--- a/version.c
|
|
|
5257f0 |
+++ b/version.c
|
|
|
5257f0 |
@@ -39,9 +39,15 @@
|
|
|
5257f0 |
#define RUBY_VENDOR_LIB RUBY_LIB_PREFIX"/vendor_ruby"
|
|
|
5257f0 |
#endif
|
|
|
5257f0 |
|
|
|
5257f0 |
+#ifdef RUBY_LIB_VERSION_BLANK
|
|
|
5257f0 |
+#define RUBY_LIB RUBY_LIB_PREFIX
|
|
|
5257f0 |
+#define RUBY_SITE_LIB2 RUBY_SITE_LIB
|
|
|
5257f0 |
+#define RUBY_VENDOR_LIB2 RUBY_VENDOR_LIB
|
|
|
5257f0 |
+#else
|
|
|
5257f0 |
#define RUBY_LIB RUBY_LIB_PREFIX "/"RUBY_LIB_VERSION
|
|
|
5257f0 |
#define RUBY_SITE_LIB2 RUBY_SITE_LIB "/"RUBY_LIB_VERSION
|
|
|
5257f0 |
#define RUBY_VENDOR_LIB2 RUBY_VENDOR_LIB "/"RUBY_LIB_VERSION
|
|
|
5257f0 |
+#endif
|
|
|
5257f0 |
#ifndef RUBY_ARCH_LIB_FOR
|
|
|
5257f0 |
#define RUBY_ARCH_LIB_FOR(arch) RUBY_LIB "/"arch
|
|
|
5257f0 |
#endif
|
|
|
5257f0 |
@@ -77,8 +83,10 @@ const char ruby_initial_load_paths[] =
|
|
|
5257f0 |
RUBY_SITE_ARCH_LIB_FOR(RUBY_THINARCH) "\0"
|
|
|
5257f0 |
#endif
|
|
|
5257f0 |
RUBY_SITE_ARCH_LIB_FOR(RUBY_SITEARCH) "\0"
|
|
|
5257f0 |
+#ifndef RUBY_LIB_VERSION_BLANK
|
|
|
5257f0 |
RUBY_SITE_LIB "\0"
|
|
|
5257f0 |
#endif
|
|
|
5257f0 |
+#endif
|
|
|
5257f0 |
|
|
|
5257f0 |
#ifndef NO_RUBY_VENDOR_LIB
|
|
|
5257f0 |
RUBY_VENDOR_LIB2 "\0"
|
|
|
5257f0 |
@@ -86,8 +94,10 @@ const char ruby_initial_load_paths[] =
|
|
|
5257f0 |
RUBY_VENDOR_ARCH_LIB_FOR(RUBY_THINARCH) "\0"
|
|
|
5257f0 |
#endif
|
|
|
5257f0 |
RUBY_VENDOR_ARCH_LIB_FOR(RUBY_SITEARCH) "\0"
|
|
|
5257f0 |
+#ifndef RUBY_LIB_VERSION_BLANK
|
|
|
5257f0 |
RUBY_VENDOR_LIB "\0"
|
|
|
5257f0 |
#endif
|
|
|
5257f0 |
+#endif
|
|
|
5257f0 |
|
|
|
5257f0 |
RUBY_LIB "\0"
|
|
|
5257f0 |
#ifdef RUBY_THINARCH
|
|
|
5257f0 |
--
|
|
|
5257f0 |
1.8.1.2
|
|
|
5257f0 |
|