swig/0004-Ruby-Add-local-dir-to-loadpath-for-Ruby-1.9.patch
Klaus Kämpf 7af15c657f Accepting request 122517 from home:kwk:branches:devel:tools:building
- Port SWIG to Ruby 1.9 (various patches)
- Disable broken tests

- Update to 2.0.7
  * Important regression fixes since 2.0.5 for typemaps in general and
    in Python.
  * Fixes and enhancements for Go, Java, Octave and PHP.

OBS-URL: https://build.opensuse.org/request/show/122517
OBS-URL: https://build.opensuse.org/package/show/devel:tools:building/swig?expand=0&rev=37
2012-05-26 21:53:07 +00:00

26 lines
1017 B
Diff

From 2d3dee536c869b2c5aff71a29d406353039b5007 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Klaus=20K=C3=A4mpf?= <kkaempf@suse.de>
Date: Sat, 26 May 2012 18:27:30 +0200
Subject: [PATCH 04/10] Ruby: Add local dir to loadpath for Ruby 1.9
---
Examples/test-suite/ruby/Makefile.in | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/Examples/test-suite/ruby/Makefile.in b/Examples/test-suite/ruby/Makefile.in
index e157e72..e11e581 100644
--- a/Examples/test-suite/ruby/Makefile.in
+++ b/Examples/test-suite/ruby/Makefile.in
@@ -61,7 +61,7 @@ ruby_naming.cpptest: SWIGOPT += -autorename
# a file is found which has _runme.rb appended after the testcase name.
run_testcase = \
if [ -f $(srcdir)/$(SCRIPTPREFIX)$*$(SCRIPTSUFFIX) ]; then \
- env LD_LIBRARY_PATH=.:$$LD_LIBRARY_PATH $(RUNTOOL) $(RUBY) $(srcdir)/$(SCRIPTPREFIX)$*$(SCRIPTSUFFIX); \
+ env LD_LIBRARY_PATH=.:$$LD_LIBRARY_PATH $(RUNTOOL) $(RUBY) -I. -I$(srcdir) $(srcdir)/$(SCRIPTPREFIX)$*$(SCRIPTSUFFIX); \
fi
# Clean
--
1.7.9.2