cc3e95f0f9
build on Ruby 2.2.
50 lines
1.9 KiB
Text
50 lines
1.9 KiB
Text
$NetBSD: patch-ae,v 1.3 2015/06/11 15:14:14 taca Exp $
|
|
|
|
* Do not guess paths.
|
|
* Fix build problem on Ruby 2.2 and later.
|
|
|
|
--- rubypure/configure.orig 2007-12-25 01:53:42.000000000 +0000
|
|
+++ rubypure/configure
|
|
@@ -1232,32 +1232,11 @@ RUBY="ruby"
|
|
RDOC="rdoc"
|
|
MYRBLIBDIR=/usr/local/lib/ruby/site_ruby
|
|
|
|
-# Building paths
|
|
-pathtmp="$PATH"
|
|
-PATH="..:$HOME/bin:/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/bin:/sbin"
|
|
-PATH="$PATH:/usr/ccs/bin:/usr/ucb:/usr/xpg4/bin:/usr/xpg6/bin:$pathtmp"
|
|
-LIBRARY_PATH="..:$HOME/lib:/usr/local/lib:$LIBRARY_PATH"
|
|
-LD_LIBRARY_PATH="..:$HOME/lib:/usr/local/lib:$LD_LIBRARY_PATH"
|
|
-CPATH="..:$HOME/include:/usr/local/include:$CPATH"
|
|
-PKG_CONFIG_PATH="..:$HOME/lib/pkgconfig:/usr/local/lib/pkgconfig:$PKG_CONFIG_PATH"
|
|
-export PATH LIBRARY_PATH LD_LIBRARY_PATH CPATH PKG_CONFIG_PATH
|
|
-if type pkg-config > /dev/null 2>&1
|
|
-then
|
|
- PATH="$PATH:`pkg-config --variable=bindir qdbm`"
|
|
- PATH="$PATH:`pkg-config --variable=bindir hyperestraier`"
|
|
- LIBRARY_PATH="$LIBRARY_PATH:`pkg-config --variable=libdir qdbm`"
|
|
- LIBRARY_PATH="$LIBRARY_PATH:`pkg-config --variable=libdir hyperestraier`"
|
|
- LD_LIBRARY_PATH="$LD_LIBRARY_PATH:`pkg-config --variable=libdir qdbm`"
|
|
- LD_LIBRARY_PATH="$LD_LIBRARY_PATH:`pkg-config --variable=libdir hyperestraier`"
|
|
- CPATH="$CPATH:`pkg-config --variable=includedir qdbm`"
|
|
- CPATH="$CPATH:`pkg-config --variable=includedir hyperestraier`"
|
|
- export PATH LIBRARY_PATH LD_LIBRARY_PATH CPATH PKG_CONFIG_PATH
|
|
-fi
|
|
|
|
# Setting the default prefix
|
|
if test "$prefix" = NONE
|
|
then
|
|
- prefix=`ruby -rrbconfig -e 'puts(Config::CONFIG.fetch("prefix"))'`
|
|
+ prefix=`ruby -rrbconfig -e 'puts(RbConfig::CONFIG.fetch("prefix"))'`
|
|
fi
|
|
|
|
|
|
@@ -1284,7 +1263,7 @@ fi
|
|
printf '%s\n' "$RDOC"
|
|
|
|
# Librarh path
|
|
-myrblibdir=`ruby -rrbconfig -e 'puts(Config::CONFIG.fetch("sitelibdir"))'`
|
|
+myrblibdir=`ruby -rrbconfig -e 'puts(RbConfig::CONFIG.fetch("vendorlibdir"))'`
|
|
if test -n "$myrblibdir"
|
|
then
|
|
MYRBLIBDIR="$myrblibdir"
|