summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMiroslav Lichvar <mlichvar@fedoraproject.org>2010-01-15 14:01:01 +0000
committerMiroslav Lichvar <mlichvar@fedoraproject.org>2010-01-15 14:01:01 +0000
commit01f4aebc3f0937e2ea61f6888ac19f8ff5b1018f (patch)
treeade531a84458101e0a14fa44e6337a1493dd181c
parent8380272011403cfbf77d37f3c588d2c4025818f0 (diff)
downloadguile-01f4aebc3f0937e2ea61f6888ac19f8ff5b1018f.tar.gz
guile-01f4aebc3f0937e2ea61f6888ac19f8ff5b1018f.tar.xz
guile-01f4aebc3f0937e2ea61f6888ac19f8ff5b1018f.zip
- fix test suite to work with new libtool (#555479)guile-1_8_7-5_fc13F-13-startF-13-split
-rw-r--r--guile-1.8.7-testsuite2.patch58
-rw-r--r--guile.spec7
2 files changed, 64 insertions, 1 deletions
diff --git a/guile-1.8.7-testsuite2.patch b/guile-1.8.7-testsuite2.patch
new file mode 100644
index 0000000..279fc97
--- /dev/null
+++ b/guile-1.8.7-testsuite2.patch
@@ -0,0 +1,58 @@
+commit a0aa1e5b69d6ef0311aeea8e4b9a94eae18a1aaf
+Author: Ludovic Courtès <ludo@gnu.org>
+Date: Mon Dec 14 10:59:25 2009 +0100
+
+ Fix test environment issue with ltdl from Libtool 2.2.6b.
+
+ Earlier versions of ltdl would look for extensions under $PWD; this
+ behavior changed in 2.2.6b.
+
+ * test-suite/standalone/Makefile.am (TESTS_ENVIRONMENT): Define
+ $builddir.
+
+ * test-suite/standalone/test-asmobs: Specify the full path to
+ `libtest-asmobs', using $builddir.
+
+diff --git a/test-suite/standalone/Makefile.am b/test-suite/standalone/Makefile.am
+index e7cfd82..058ce93 100644
+--- a/test-suite/standalone/Makefile.am
++++ b/test-suite/standalone/Makefile.am
+@@ -28,7 +28,9 @@ check_SCRIPTS =
+ BUILT_SOURCES =
+ EXTRA_DIST =
+
+-TESTS_ENVIRONMENT = "${top_builddir}/pre-inst-guile-env"
++TESTS_ENVIRONMENT = \
++ builddir="$(builddir)" \
++ "${top_builddir}/pre-inst-guile-env"
+
+ test_cflags = \
+ -I$(top_srcdir)/test-suite/standalone \
+diff --git a/test-suite/standalone/test-asmobs b/test-suite/standalone/test-asmobs
+index 2ea75d9..9689ab9 100755
+--- a/test-suite/standalone/test-asmobs
++++ b/test-suite/standalone/test-asmobs
+@@ -2,7 +2,8 @@
+ exec guile -q -s "$0" "$@"
+ !#
+
+-(load-extension "libtest-asmobs" "libtest_asmobs_init")
++(load-extension (string-append (getenv "builddir") "/libtest-asmobs")
++ "libtest_asmobs_init")
+
+ (define (test x v)
+ (if v
+diff -up guile-1.8.7/test-suite/standalone/Makefile.in.ltdl guile-1.8.7/test-suite/standalone/Makefile.in
+--- guile-1.8.7/test-suite/standalone/Makefile.in.ltdl 2010-01-15 14:40:52.000000000 +0100
++++ guile-1.8.7/test-suite/standalone/Makefile.in 2010-01-15 14:48:10.000000000 +0100
+@@ -392,7 +392,9 @@ check_SCRIPTS = test-system-cmds test-re
+ test-use-srfi
+ BUILT_SOURCES = test-asmobs-lib.x
+ EXTRA_DIST = $(am__append_3) ${check_SCRIPTS}
+-TESTS_ENVIRONMENT = "${top_builddir}/pre-inst-guile-env"
++TESTS_ENVIRONMENT = \
++ builddir="$(builddir)" \
++ "${top_builddir}/pre-inst-guile-env"
+ test_cflags = \
+ -I$(top_srcdir)/test-suite/standalone \
+ -I$(top_srcdir) -I$(top_builddir) \
diff --git a/guile.spec b/guile.spec
index 3fbf9ff..c081fae 100644
--- a/guile.spec
+++ b/guile.spec
@@ -4,7 +4,7 @@ Summary: A GNU implementation of Scheme for application extensibility
Name: guile
%define mver 1.8
Version: 1.8.7
-Release: 4%{?dist}
+Release: 5%{?dist}
Source: ftp://ftp.gnu.org/pub/gnu/guile/guile-%{version}.tar.gz
URL: http://www.gnu.org/software/guile/
Patch1: guile-1.8.7-multilib.patch
@@ -12,6 +12,7 @@ Patch2: guile-1.8.7-testsuite.patch
Patch3: guile-1.8.7-ia64jmp.patch
Patch4: guile-1.8.6-deplibs.patch
Patch5: guile-1.8.7-linemarkers.patch
+Patch6: guile-1.8.7-testsuite2.patch
License: GPLv2+ and LGPLv2+
Group: Development/Languages
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
@@ -55,6 +56,7 @@ install the guile package.
%patch3 -p1 -b .ia64jmp
%patch4 -p1 -b .deplibs
%patch5 -p1 -b .linemarkers
+%patch6 -p1 -b .testsuite2
%build
@@ -188,6 +190,9 @@ fi
%{_includedir}/libguile.h
%changelog
+* Fri Jan 15 2010 Miroslav Lichvar <mlichvar@redhat.com> - 5:1.8.7-5
+- fix test suite to work with new libtool (#555479)
+
* Thu Nov 19 2009 Miroslav Lichvar <mlichvar@redhat.com> - 5:1.8.7-4
- fix building with new cpp (#538707)