From 29afcb7ad976db62f9a46abf305a47a24a99dbda Mon Sep 17 00:00:00 2001 From: Nitin A Kamble Date: Tue, 1 May 2012 09:31:01 -0700 Subject: guile: upgrade from 2.0.3 to 2.0.5 Signed-off-by: Nitin A Kamble --- ...01-Fix-the-SRFI-60-copy-bit-documentation.patch | 33 -------- ..._GNU_SOURCE-to-fix-the-GNU-kFreeBSD-build.patch | 25 ------ ...-modules-are-removed-gc-test-as-unresolve.patch | 38 +++++++++ ...h-rather-than-gc-gc_version.h-in-pthread-.patch | 26 ------- ...with-owner-not-retained-threads-test-as-u.patch | 33 ++++++++ .../guile/files/guile_2.0.5_fix_sed_error.patch | 24 ++++++ .../guile/files/opensuse/guile-64bit.patch | 3 +- .../files/opensuse/guile-turn-off-gc-test.patch | 3 +- meta/recipes-devtools/guile/guile_2.0.3.bb | 88 --------------------- meta/recipes-devtools/guile/guile_2.0.5.bb | 90 ++++++++++++++++++++++ 10 files changed, 189 insertions(+), 174 deletions(-) delete mode 100644 meta/recipes-devtools/guile/files/debian/0001-Fix-the-SRFI-60-copy-bit-documentation.patch delete mode 100644 meta/recipes-devtools/guile/files/debian/0002-Define-_GNU_SOURCE-to-fix-the-GNU-kFreeBSD-build.patch create mode 100644 meta/recipes-devtools/guile/files/debian/0002-Mark-Unused-modules-are-removed-gc-test-as-unresolve.patch delete mode 100644 meta/recipes-devtools/guile/files/debian/0003-Include-gc.h-rather-than-gc-gc_version.h-in-pthread-.patch create mode 100644 meta/recipes-devtools/guile/files/debian/0003-Mark-mutex-with-owner-not-retained-threads-test-as-u.patch create mode 100644 meta/recipes-devtools/guile/files/guile_2.0.5_fix_sed_error.patch delete mode 100644 meta/recipes-devtools/guile/guile_2.0.3.bb create mode 100644 meta/recipes-devtools/guile/guile_2.0.5.bb (limited to 'meta/recipes-devtools/guile') diff --git a/meta/recipes-devtools/guile/files/debian/0001-Fix-the-SRFI-60-copy-bit-documentation.patch b/meta/recipes-devtools/guile/files/debian/0001-Fix-the-SRFI-60-copy-bit-documentation.patch deleted file mode 100644 index e6df9b9f9c..0000000000 --- a/meta/recipes-devtools/guile/files/debian/0001-Fix-the-SRFI-60-copy-bit-documentation.patch +++ /dev/null @@ -1,33 +0,0 @@ -Upstream-Status: Inappropriate [debian patch] - -From c53b49c63d7ed145fbaa3dde25063c407631f373 Mon Sep 17 00:00:00 2001 -From: Rob Browning -Date: Sat, 23 Apr 2011 14:57:49 -0500 -Subject: Fix the SRFI 60 copy-bit documentation. - ---- - libguile/srfi-60.c | 4 ++-- - 1 files changed, 2 insertions(+), 2 deletions(-) - -diff --git a/libguile/srfi-60.c b/libguile/srfi-60.c -index 264f4cb..1ed3c9e 100644 ---- a/libguile/srfi-60.c -+++ b/libguile/srfi-60.c -@@ -70,7 +70,7 @@ SCM_DEFINE (scm_srfi60_log2_binary_factors, "log2-binary-factors", 1, 0, 0, - - - SCM_DEFINE (scm_srfi60_copy_bit, "copy-bit", 3, 0, 0, -- (SCM index, SCM n, SCM bit), -+ (SCM index, SCM n, SCM newbit), - "Return @var{n} with the bit at @var{index} set according to\n" - "@var{newbit}. @var{newbit} should be @code{#t} to set the bit\n" - "to 1, or @code{#f} to set it to 0. Bits other than at\n" -@@ -86,7 +86,7 @@ SCM_DEFINE (scm_srfi60_copy_bit, "copy-bit", 3, 0, 0, - int bb; - - ii = scm_to_ulong (index); -- bb = scm_to_bool (bit); -+ bb = scm_to_bool (newbit); - - if (SCM_I_INUMP (n)) - { diff --git a/meta/recipes-devtools/guile/files/debian/0002-Define-_GNU_SOURCE-to-fix-the-GNU-kFreeBSD-build.patch b/meta/recipes-devtools/guile/files/debian/0002-Define-_GNU_SOURCE-to-fix-the-GNU-kFreeBSD-build.patch deleted file mode 100644 index 7176c76409..0000000000 --- a/meta/recipes-devtools/guile/files/debian/0002-Define-_GNU_SOURCE-to-fix-the-GNU-kFreeBSD-build.patch +++ /dev/null @@ -1,25 +0,0 @@ -Upstream-Status: Inappropriate [debian patch] - -From 6614b8efc5a8d90a26a2b99308b909ac351b65e5 Mon Sep 17 00:00:00 2001 -From: Rob Browning -Date: Sat, 23 Apr 2011 14:57:50 -0500 -Subject: Define _GNU_SOURCE to fix the GNU/kFreeBSD build. - -Author: Petr Salinger -Closes: #401168 ---- - libguile/fports.c | 1 + - 1 files changed, 1 insertions(+), 0 deletions(-) - -diff --git a/libguile/fports.c b/libguile/fports.c -index 1348b8b..3ac3ced 100644 ---- a/libguile/fports.c -+++ b/libguile/fports.c -@@ -20,6 +20,7 @@ - - - #define _LARGEFILE64_SOURCE /* ask for stat64 etc */ -+#define _GNU_SOURCE /* ask for LONG_LONG_MAX/LONG_LONG_MIN */ - - #ifdef HAVE_CONFIG_H - # include diff --git a/meta/recipes-devtools/guile/files/debian/0002-Mark-Unused-modules-are-removed-gc-test-as-unresolve.patch b/meta/recipes-devtools/guile/files/debian/0002-Mark-Unused-modules-are-removed-gc-test-as-unresolve.patch new file mode 100644 index 0000000000..06c849432b --- /dev/null +++ b/meta/recipes-devtools/guile/files/debian/0002-Mark-Unused-modules-are-removed-gc-test-as-unresolve.patch @@ -0,0 +1,38 @@ +Upstream-Status: Inappropriate [debian patch] + +Signed-Off-by: Nitin A Kamble + +From e52bfcdbaca5dce498678d8f512381e3e39a4066 Mon Sep 17 00:00:00 2001 +From: Rob Browning +Date: Sun, 18 Mar 2012 11:40:55 -0500 +Subject: Mark "Unused modules are removed" gc test as unresolved. + +As per discussion with upstream, mark this test as unresolved since it +may produce false negatives, depending on the behavior/timing of the +garbage collector. +--- + test-suite/tests/gc.test | 11 ++++++----- + 1 files changed, 6 insertions(+), 5 deletions(-) + +diff --git a/test-suite/tests/gc.test b/test-suite/tests/gc.test +index 97eeb19..58e4936 100644 +--- a/test-suite/tests/gc.test ++++ b/test-suite/tests/gc.test +@@ -80,11 +80,12 @@ + (gc) ;; thrice: because the test doesn't succeed with only + ;; one gc round. not sure why. + +- (= (let lp ((i 0)) +- (if (guard) +- (lp (1+ i)) +- i)) +- total))) ++ (or (= (let lp ((i 0)) ++ (if (guard) ++ (lp (1+ i)) ++ i)) ++ total) ++ (throw 'unresolved)))) + + (pass-if "Lexical vars are collectable" + (let ((l (compile diff --git a/meta/recipes-devtools/guile/files/debian/0003-Include-gc.h-rather-than-gc-gc_version.h-in-pthread-.patch b/meta/recipes-devtools/guile/files/debian/0003-Include-gc.h-rather-than-gc-gc_version.h-in-pthread-.patch deleted file mode 100644 index aa64f58800..0000000000 --- a/meta/recipes-devtools/guile/files/debian/0003-Include-gc.h-rather-than-gc-gc_version.h-in-pthread-.patch +++ /dev/null @@ -1,26 +0,0 @@ -Upstream-Status: Inappropriate [debian patch] - -From 0c91fa9270e86b20bfb8e62db5ac84617b2567d9 Mon Sep 17 00:00:00 2001 -From: Rob Browning -Date: Thu, 10 Nov 2011 02:23:04 -0600 -Subject: Include gc.h rather than gc/gc_version.h in pthread test. - -See comments in recent gc_version.h. It should never be included -directly, and doing so was causing build failures. ---- - .../standalone/test-pthread-create-secondary.c | 2 +- - 1 files changed, 1 insertions(+), 1 deletions(-) - -diff --git a/test-suite/standalone/test-pthread-create-secondary.c b/test-suite/standalone/test-pthread-create-secondary.c -index fe39c2a..d87fb33 100644 ---- a/test-suite/standalone/test-pthread-create-secondary.c -+++ b/test-suite/standalone/test-pthread-create-secondary.c -@@ -27,7 +27,7 @@ - #include - #include - --#include -+#include - - - /* Up to GC 7.2alpha5, calling `GC_INIT' from a secondary thread would diff --git a/meta/recipes-devtools/guile/files/debian/0003-Mark-mutex-with-owner-not-retained-threads-test-as-u.patch b/meta/recipes-devtools/guile/files/debian/0003-Mark-mutex-with-owner-not-retained-threads-test-as-u.patch new file mode 100644 index 0000000000..34be3b96e7 --- /dev/null +++ b/meta/recipes-devtools/guile/files/debian/0003-Mark-mutex-with-owner-not-retained-threads-test-as-u.patch @@ -0,0 +1,33 @@ +Upstream-Status: Inappropriate [debian patch] + +Signed-Off-by: Nitin A Kamble + +From 848543091d55dddb54a85612155964506d712852 Mon Sep 17 00:00:00 2001 +From: Rob Browning +Date: Sun, 18 Mar 2012 13:28:24 -0500 +Subject: Mark "mutex with owner not retained" threads test as unresolved. + +As per discussion with upstream, mark this test as unresolved since it +may produce false negatives, depending on the behavior/timing of the +garbage collector. +--- + test-suite/tests/threads.test | 6 ++++-- + 1 files changed, 4 insertions(+), 2 deletions(-) + +diff --git a/test-suite/tests/threads.test b/test-suite/tests/threads.test +index 85a7c38..50899cb 100644 +--- a/test-suite/tests/threads.test ++++ b/test-suite/tests/threads.test +@@ -414,8 +414,10 @@ + + (gc) (gc) + (let ((m (g))) +- (and (mutex? m) +- (eq? (mutex-owner m) (current-thread))))))) ++ (or ++ (and (mutex? m) ++ (eq? (mutex-owner m) (current-thread))) ++ (throw 'unresolved)))))) + + ;; + ;; mutex lock levels diff --git a/meta/recipes-devtools/guile/files/guile_2.0.5_fix_sed_error.patch b/meta/recipes-devtools/guile/files/guile_2.0.5_fix_sed_error.patch new file mode 100644 index 0000000000..e5dc226370 --- /dev/null +++ b/meta/recipes-devtools/guile/files/guile_2.0.5_fix_sed_error.patch @@ -0,0 +1,24 @@ +Upstream-Status: Pending + +This fixes sed issue when prefix has / in it, like /usr/local + +autoreconf error avoided: +| sed: -e expression #1, char 9: unknown option to `s' +| configure.ac:39: error: AC_INIT should be called with package and version arguments + +Signed-Off-by: Nitin A Kamble +2012/05/01 + +Index: guile-2.0.5/build-aux/git-version-gen +=================================================================== +--- guile-2.0.5.orig/build-aux/git-version-gen ++++ guile-2.0.5/build-aux/git-version-gen +@@ -187,7 +187,7 @@ else + v=UNKNOWN + fi + +-v=`echo "$v" |sed "s/^$prefix//"` ++v=`echo "$v" |sed "s#^$prefix##"` + + # Test whether to append the "-dirty" suffix only if the version + # string we're using came from git. I.e., skip the test if it's "UNKNOWN" diff --git a/meta/recipes-devtools/guile/files/opensuse/guile-64bit.patch b/meta/recipes-devtools/guile/files/opensuse/guile-64bit.patch index be3191a039..d3e312f770 100644 --- a/meta/recipes-devtools/guile/files/opensuse/guile-64bit.patch +++ b/meta/recipes-devtools/guile/files/opensuse/guile-64bit.patch @@ -1,6 +1,7 @@ - Upstream-Status: Inappropriate [opensuse patch] +Signed-Off-by: Nitin A Kamble + Index: guile-2.0.3/libguile/hash.c =================================================================== --- guile-2.0.3.orig/libguile/hash.c 2011-07-06 15:49:59.000000000 -0700 diff --git a/meta/recipes-devtools/guile/files/opensuse/guile-turn-off-gc-test.patch b/meta/recipes-devtools/guile/files/opensuse/guile-turn-off-gc-test.patch index ed56694a98..e201486284 100644 --- a/meta/recipes-devtools/guile/files/opensuse/guile-turn-off-gc-test.patch +++ b/meta/recipes-devtools/guile/files/opensuse/guile-turn-off-gc-test.patch @@ -1,6 +1,7 @@ - Upstream-Status: Inappropriate [opensuse patch] +Signed-Off-by: Nitin A Kamble + See http://debbugs.gnu.org/cgi/bugreport.cgi?bug=10096 why this test is turned off. Index: guile-2.0.3/test-suite/tests/gc.test diff --git a/meta/recipes-devtools/guile/guile_2.0.3.bb b/meta/recipes-devtools/guile/guile_2.0.3.bb deleted file mode 100644 index 164ab8c647..0000000000 --- a/meta/recipes-devtools/guile/guile_2.0.3.bb +++ /dev/null @@ -1,88 +0,0 @@ -SUMMARY = "Guile is the GNU Ubiquitous Intelligent Language for Extensions." -DESCRIPTION = "Guile is the GNU Ubiquitous Intelligent Language for Extensions,\ - the official extension language for the GNU operating system.\ - Guile is a library designed to help programmers create flexible applications.\ - Using Guile in an application allows the application's functionality to be\ - extended by users or other programmers with plug-ins, modules, or scripts.\ - Guile provides what might be described as 'practical software freedom,'\ - making it possible for users to customize an application to meet their\ - needs without digging into the application's internals." - -HOMEPAGE = "http://www.gnu.org/software/guile/" -SECTION = "devel" -LICENSE = "GPLv3" -LIC_FILES_CHKSUM = "file://COPYING;md5=d32239bcb673463ab874e80d47fae504" - -SRC_URI = "${GNU_MIRROR}/guile/guile-${PV}.tar.gz \ - file://debian/0001-Fix-the-SRFI-60-copy-bit-documentation.patch \ - file://debian/0002-Define-_GNU_SOURCE-to-fix-the-GNU-kFreeBSD-build.patch \ - file://debian/0003-Include-gc.h-rather-than-gc-gc_version.h-in-pthread-.patch \ - file://opensuse/guile-64bit.patch \ - file://opensuse/guile-turn-off-gc-test.patch \ - " - -SRC_URI[md5sum] = "3b8b4e1083037f29d2c4704a6d55f2a8" -SRC_URI[sha256sum] = "a53b21159befe3e89bbaca71e9e62cf00af0f49fcca297c407944b988d59eb08" - -PR = "r5" - -inherit autotools gettext -BBCLASSEXTEND = "native" - -DEPENDS = "libunistring bdwgc gmp libtool libffi" -# add guile-native only to the target recipe's DEPENDS -DEPENDS += "${@['guile-native', ''][d.getVar('PN', True) != 'guile']}" - -EXTRA_OECONF += "${@['--without-libltdl-prefix --without-libgmp-prefix', ''][bb.data.inherits_class('native',d)]}" - -do_configure_prepend() { - mkdir -p po -} - -export GUILE_FOR_BUILD="${BUILD_SYS}-guile" - -do_compile_append() { - # just for target recipe - if [ "${PN}" == "guile" ] - then - sed -i -e s:${STAGING_DIR_TARGET}::g \ - -e s:/${TARGET_SYS}::g \ - -e s:-L/usr/lib::g \ - -e s:-isystem/usr/include::g \ - -e s:,/usr/lib:,\$\{libdir\}:g \ - meta/guile-2.0.pc - fi -} - -do_install_append_virtclass-native() { - install -m 0755 ${D}${bindir}/guile ${D}${bindir}/${HOST_SYS}-guile - - create_wrapper ${D}/${bindir}/guile \ - GUILE_LOAD_PATH=${STAGING_DATADIR_NATIVE}/guile/2.0 \ - GUILE_LOAD_COMPILED_PATH=${STAGING_LIBDIR_NATIVE}/guile/2.0/ccache - create_wrapper ${D}${bindir}/${HOST_SYS}-guile - GUILE_LOAD_PATH=${STAGING_DATADIR_NATIVE}/guile/2.0 \ - GUILE_LOAD_COMPILED_PATH=${STAGING_LIBDIR_NATIVE}/guile/2.0/ccache -} - -SYSROOT_PREPROCESS_FUNCS = "guile_cross_config" - -guile_cross_config() { - # this is only for target recipe - if [ "${PN}" == "guile" ] - then - # Create guile-config returning target values instead of native values - install -d ${SYSROOT_DESTDIR}${STAGING_BINDIR_CROSS} - echo '#!'`which ${BUILD_SYS}-guile`$' \\\n--no-auto-compile -e main -s\n!#\n(define %guile-build-info '\'\( \ - > guile-config.cross - sed -n -e 's:^[ \t]*{[ \t]*": (:' \ - -e 's:",[ \t]*": . ":' \ - -e 's:" *}, *\\:"):' \ - -e 's:^.*cachedir.*$::' \ - -e '/^ (/p' \ - < libguile/libpath.h >> guile-config.cross - echo '))' >> guile-config.cross - cat meta/guile-config >> guile-config.cross - install guile-config.cross ${STAGING_BINDIR_CROSS}/guile-config - fi -} diff --git a/meta/recipes-devtools/guile/guile_2.0.5.bb b/meta/recipes-devtools/guile/guile_2.0.5.bb new file mode 100644 index 0000000000..db75863d34 --- /dev/null +++ b/meta/recipes-devtools/guile/guile_2.0.5.bb @@ -0,0 +1,90 @@ +SUMMARY = "Guile is the GNU Ubiquitous Intelligent Language for Extensions." +DESCRIPTION = "Guile is the GNU Ubiquitous Intelligent Language for Extensions,\ + the official extension language for the GNU operating system.\ + Guile is a library designed to help programmers create flexible applications.\ + Using Guile in an application allows the application's functionality to be\ + extended by users or other programmers with plug-ins, modules, or scripts.\ + Guile provides what might be described as 'practical software freedom,'\ + making it possible for users to customize an application to meet their\ + needs without digging into the application's internals." + +HOMEPAGE = "http://www.gnu.org/software/guile/" +SECTION = "devel" +LICENSE = "GPLv3" +LIC_FILES_CHKSUM = "file://COPYING;md5=d32239bcb673463ab874e80d47fae504" + +SRC_URI = "${GNU_MIRROR}/guile/guile-${PV}.tar.gz \ + file://debian/0002-Mark-Unused-modules-are-removed-gc-test-as-unresolve.patch \ + file://debian/0003-Mark-mutex-with-owner-not-retained-threads-test-as-u.patch \ + file://opensuse/guile-64bit.patch \ + file://guile_2.0.5_fix_sed_error.patch \ + " + +# file://debian/0001-Change-guile-to-guile-X.Y-for-info-pages.patch +# file://opensuse/guile-turn-off-gc-test.patch + +SRC_URI[md5sum] = "bcf70d54b44c99cb9acd3f63c5486b4b" +SRC_URI[sha256sum] = "2a026ea6cdbc51ca71bcd9787839debfa45ac5db1e26dc00b30ca9b128b10956" + +PR = "r0" + +inherit autotools gettext +BBCLASSEXTEND = "native" + +DEPENDS = "libunistring bdwgc gmp libtool libffi" +# add guile-native only to the target recipe's DEPENDS +DEPENDS += "${@['guile-native', ''][d.getVar('PN', True) != 'guile']}" + +EXTRA_OECONF += "${@['--without-libltdl-prefix --without-libgmp-prefix', ''][bb.data.inherits_class('native',d)]}" + +do_configure_prepend() { + mkdir -p po +} + +export GUILE_FOR_BUILD="${BUILD_SYS}-guile" + +do_compile_append() { + # just for target recipe + if [ "${PN}" == "guile" ] + then + sed -i -e s:${STAGING_DIR_TARGET}::g \ + -e s:/${TARGET_SYS}::g \ + -e s:-L/usr/lib::g \ + -e s:-isystem/usr/include::g \ + -e s:,/usr/lib:,\$\{libdir\}:g \ + meta/guile-2.0.pc + fi +} + +do_install_append_virtclass-native() { + install -m 0755 ${D}${bindir}/guile ${D}${bindir}/${HOST_SYS}-guile + + create_wrapper ${D}/${bindir}/guile \ + GUILE_LOAD_PATH=${STAGING_DATADIR_NATIVE}/guile/2.0 \ + GUILE_LOAD_COMPILED_PATH=${STAGING_LIBDIR_NATIVE}/guile/2.0/ccache + create_wrapper ${D}${bindir}/${HOST_SYS}-guile + GUILE_LOAD_PATH=${STAGING_DATADIR_NATIVE}/guile/2.0 \ + GUILE_LOAD_COMPILED_PATH=${STAGING_LIBDIR_NATIVE}/guile/2.0/ccache +} + +SYSROOT_PREPROCESS_FUNCS = "guile_cross_config" + +guile_cross_config() { + # this is only for target recipe + if [ "${PN}" == "guile" ] + then + # Create guile-config returning target values instead of native values + install -d ${SYSROOT_DESTDIR}${STAGING_BINDIR_CROSS} + echo '#!'`which ${BUILD_SYS}-guile`$' \\\n--no-auto-compile -e main -s\n!#\n(define %guile-build-info '\'\( \ + > guile-config.cross + sed -n -e 's:^[ \t]*{[ \t]*": (:' \ + -e 's:",[ \t]*": . ":' \ + -e 's:" *}, *\\:"):' \ + -e 's:^.*cachedir.*$::' \ + -e '/^ (/p' \ + < libguile/libpath.h >> guile-config.cross + echo '))' >> guile-config.cross + cat meta/guile-config >> guile-config.cross + install guile-config.cross ${STAGING_BINDIR_CROSS}/guile-config + fi +} -- cgit 1.2.3-korg