gauche: new package
PATCH v5 1/1 gauche: new package
Gauche is an R7RS Scheme implementation developed to be a handy script interpreter, which allows programmers and systemadministrators to write small to large scripts for their daily chores. Quick startup, built-in system interface, native multilingual support are some of its goals.
---
Changes v4 -> v5 (refelect comment from Thomas)
- 2 patches for configure and configure.ac -> single patch.
- improve explanation why we need to specify -std=gnu99 in GAUCHE_CONF_ENV.
Changes v3 -> v4 (reflect comment from Arnout)
- fix some miss spell in help text.
- fix comment in patch file.
- add patch file for configure.ac (same fix with configure).
- fix GAUCHE_LICENSE
Changes v2 -> v3
- add comment to patch file why I touch configure directly instead of configure.ac
Changes v1 -> v2
- change help description to written in project's web page.
- add brief description and SoB in patch file.
- change depens on BR2_TOOLCHAIN_HAS_THREADS -> BR2_TOOLCHAIN_HAS_THREADS_NPTL.
- add brief description why "-std=gnu99" needed in GAUCHE_CONF_ENV.
- add depends on BR2_ARCH_HAS_ATOMICS (Boehm gc need this).
- add # fork() to 'depends on BR2_USE_MMU'.
- remove empty comment line in hash file.
- remove unnecessary GAUCHE_CONF_OPTS.
--- package/Config.in | 1 + package/gauche/0001-fix-so-suffix.patch | 31 +++++++++++++++++++++++++++++++ package/gauche/Config.in | 18 ++++++++++++++++++ package/gauche/gauche.hash | 2 ++ package/gauche/gauche.mk | 23 +++++++++++++++++++++++ 5 files changed, 75 insertions(+), 0 deletions(-) create mode 100644 package/gauche/0001-fix-so-suffix.patch create mode 100644 package/gauche/Config.in create mode 100644 package/gauche/gauche.hash create mode 100644 package/gauche/gauche.mk
package/Config.in +1 -0
@@ -459,6 +459,7 @@ menu "Erlang libraries/modules" source "package/erlang-p1-zlib/Config.in" endmenu endif + source "package/gauche/Config.in" source "package/guile/Config.in" source "package/haserl/Config.in" source "package/jamvm/Config.in"
package/gauche/0001-fix-so-suffix.patch new file +31 -0
@@ -0,0 +1,31 @@ +With uclibc or musl configuration, $host does not match to '*-linux-gnu*'. +I touch configure directly instead of configure.ac because autoreconf +failed by version mismatch of autotools. + +Signed-off-by: Hiroshi Kawashima <[email protected]> + +diff -ur a/configure b/configure +--- a/configure 2014-07-20 15:15:05.000000000 +0900 ++++ b/configure 2015-10-20 21:52:32.791442291 +0900 +@@ -6843,7 +6843,7 @@ + SHLIB_MAIN_LDFLAGS="" + SHLIB_OK=ok + ;; +- *-linux-gnu*|*-*-gnu*|*freebsd*|*dragonfly*) ++ *-linux-*|*-*-gnu*|*freebsd*|*dragonfly*) + SHLIB_SO_CFLAGS="-fPIC" + SHLIB_SO_LDFLAGS="$rpath -shared -o" + SHLIB_SO_SUFFIX="so" + +diff -ur a/configure.ac b/configure.ac +--- a/configure.ac 2015-10-21 21:33:17.370000200 +0900 ++++ b/configure.ac 2015-10-21 21:33:39.784110527 +0900 +@@ -572,7 +572,7 @@ + SHLIB_MAIN_LDFLAGS="" + SHLIB_OK=ok + ;; +- *-linux-gnu*|*-*-gnu*|*freebsd*|*dragonfly*) ++ *-linux-*|*-*-gnu*|*freebsd*|*dragonfly*) + SHLIB_SO_CFLAGS="-fPIC" + SHLIB_SO_LDFLAGS="$rpath -shared -o" + SHLIB_SO_SUFFIX="so"
package/gauche/Config.in new file +18 -0
@@ -0,0 +1,18 @@ +config BR2_PACKAGE_GAUCHE + bool "gauche" + depends on BR2_TOOLCHAIN_HAS_THREADS_NPTL + depends on BR2_USE_MMU # fork() + depends on BR2_ARCH_HAS_ATOMICS + help + Gauche is an R7RS Scheme implementation developed to be a + handy script interpreter, which allows programmers and + systemadministrators to write small to large scripts for their + daily chores. Quick startup, built-in system interface, native + multilingual support are some of its goals. + + http://practical-scheme.net/gauche/ + +comment "gauche needs a toolchain w/ NPTL" + depends on BR2_USE_MMU + depends on BR2_ARCH_HAS_ATOMICS + depends on !BR2_TOOLCHAIN_HAS_THREADS_NPTL
package/gauche/gauche.hash new file +2 -0
@@ -0,0 +1,2 @@ +# Locally calculated +sha256 7b18bcd70beaced1e004594be46c8cff95795318f6f5830dd2a8a700410fc149 Gauche-0.9.4.tgz
package/gauche/gauche.mk new file +23 -0
@@ -0,0 +1,23 @@ +################################################################################ +# +# gauche +# +################################################################################ + +GAUCHE_VERSION = 0.9.4 +GAUCHE_SOURCE = Gauche-$(GAUCHE_VERSION).tgz +GAUCHE_SITE = http://downloads.sourceforge.net/project/gauche/Gauche +GAUCHE_LICENSE = BSD-3c, Boehm-gc, SRFI (srfi-11.scm), reload (reload.scm) +GAUCHE_LICENSE_FILES = COPYING +GAUCHE_DEPENDENCIES = host-gauche + +# Detection of c99 support in configure fails without WCHAR. To enable +# automatic detection of c99 support by configure, we need to enable +# WCHAR in toolchain. But actually we do not need WCHAR at gauche +# runtime. So reuesting WCHAR in toolchain just for automatic detection +# will be overkill. To solve this, explicitly -std=gnu99 is specified +# here. +GAUCHE_CONF_ENV = CFLAGS="$(TARGET_CFLAGS) -std=gnu99" + +$(eval $(host-autotools-package)) +$(eval $(autotools-package))
Signature · 4 lines
1.7.1
============================================================
Hiroshi KawashimaThomas Petazzoni
AppliedPATCH v5 1/1 gauche: new package
Dear Hiroshi Kawashima,
Quoted 5 lines · Hiroshi Kawashima
Gauche is an R7RS Scheme implementation developed to be a handy script interpreter, which allows programmers and systemadministrators to write small to large scripts for their daily chores. Quick startup, built-in system interface, native multilingual support are some of its goals.
Quoted 7 lines
Signed-off-by Hiroshi Kawashima <[email protected]>Reviewed-by Vicente Olivert Riera <[email protected]>---
Changes v4 -> v5 (refelect comment from Thomas)
- 2 patches for configure and configure.ac -> single patch.
- improve explanation why we need to specify -std=gnu99 inGAUCHE_CONF_ENV.
Applied, thanks.
Could you:
1/ Submit the gauche patch to the upstream project?
2/ Look if all the gauche-* binaries installed on the target are
really useful? At least gauche-config and gauche-package look unnecessary, since gauche-config is used to get compiler/linker flags which is not needed on the target as we don't have a compiler, and gauche-package is used to build/install additional gauche packages, which also isn't possible since we don't have a compiler on the target. You can submit a patch that implements a post install target hook to remove the non-needed programs.
Thanks,
Thomas
Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons Embedded Linux, Kernel and Android engineering http://free-electrons.com
PATCH v5 1/1 gauche: new package
Dear, Thomas.
Quoted 16 lines · Thomas Petazzoni
Dear Hiroshi Kawashima,
Quoted 5 lines · Hiroshi Kawashima
Gauche is an R7RS Scheme implementation developed to be a handy script interpreter, which allows programmers and systemadministrators to write small to large scripts for their daily chores. Quick startup, built-in system interface, native multilingual support are some of its goals.
Quoted 7 lines
Signed-off-by Hiroshi Kawashima <[email protected]>Reviewed-by Vicente Olivert Riera <[email protected]>---
Changes v4 -> v5 (refelect comment from Thomas)
- 2 patches for configure and configure.ac -> single patch.
- improve explanation why we need to specify -std=gnu99 inGAUCHE_CONF_ENV.
Quoted 1 line
Applied, thanks.
Thank you!
Quoted 3 lines
Could you:
1/ Submit the gauche patch to the upstream project?
Yes, I already sent patch to upstream (original author), but not replied yet.
Quoted 8 lines
2/ Look if all the gauche-* binaries installed on the target are
really useful? At least gauche-config and gauche-package look unnecessary, since gauche-config is used to get compiler/linker flags which is not needed on the target as we don't have a compiler, and gauche-package is used to build/install additional gauche packages, which also isn't possible since we don't have a compiler on the target. You can submit a patch that implements a post install target hook to remove the non-needed programs.
Sure, I will do.
gauche-cesconv might be used, but other gauche-* will not be necessary for target.
Regards,
Kawashima
============================================================
Hiroshi Kawashima