All of lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH v2 1/1] gauche: new package
@ 2015-10-24  0:11 Hiroshi Kawashima
  2015-10-27 13:28 ` Hiroshi Kawashima
  2015-10-27 14:04 ` Vicente Olivert Riera
  0 siblings, 2 replies; 4+ messages in thread
From: Hiroshi Kawashima @ 2015-10-24  0:11 UTC (permalink / raw)
  To: buildroot

Gauche is an R7RS Scheme implementation developed to be a handy script
interpriter, 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 my goals.

Signed-off-by: Hiroshi Kawashima <kei-k@ca2.so-net.ne.jp>
---
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 |   16 ++++++++++++++++
 package/gauche/Config.in                |   18 ++++++++++++++++++
 package/gauche/gauche.hash              |    2 ++
 package/gauche/gauche.mk                |   19 +++++++++++++++++++
 5 files changed, 56 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

diff --git a/package/Config.in b/package/Config.in
index 2f74439..602ece9 100644
--- a/package/Config.in
+++ b/package/Config.in
@@ -460,6 +460,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"
diff --git a/package/gauche/0001-fix-so-suffix.patch b/package/gauche/0001-fix-so-suffix.patch
new file mode 100644
index 0000000..3e82ddb
--- /dev/null
+++ b/package/gauche/0001-fix-so-suffix.patch
@@ -0,0 +1,16 @@
+With uclibc configuration, $host does not match to '*-linux-gnu-*'.
+
+Signed-off-by: Hiroshi Kawashima <kei-k@ca2.so-net.ne.jp>
+
+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 --git a/package/gauche/Config.in b/package/gauche/Config.in
new file mode 100644
index 0000000..1074bc1
--- /dev/null
+++ b/package/gauche/Config.in
@@ -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 interpriter, 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 my 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
diff --git a/package/gauche/gauche.hash b/package/gauche/gauche.hash
new file mode 100644
index 0000000..9ec106a
--- /dev/null
+++ b/package/gauche/gauche.hash
@@ -0,0 +1,2 @@
+# Locally calculated
+sha256 7b18bcd70beaced1e004594be46c8cff95795318f6f5830dd2a8a700410fc149  Gauche-0.9.4.tgz
diff --git a/package/gauche/gauche.mk b/package/gauche/gauche.mk
new file mode 100644
index 0000000..39ddfdc
--- /dev/null
+++ b/package/gauche/gauche.mk
@@ -0,0 +1,19 @@
+################################################################################
+#
+# gauche
+#
+################################################################################
+
+GAUCHE_VERSION = 0.9.4
+GAUCHE_SOURCE = Gauche-$(GAUCHE_VERSION).tgz
+GAUCHE_SITE = http://prdownloads.sourceforge.net/gauche
+GAUCHE_LICENSE = BSD
+GAUCHE_LICENSE_FILES = COPYING
+GAUCHE_DEPENDENCIES = host-gauche
+
+# Checking c99 support in configure fails without WCHAR. But we do not
+# need WCHAR at gauche runtime, so explicitly specify here.
+GAUCHE_CONF_ENV = CFLAGS="$(TARGET_CFLAGS) -std=gnu99"
+
+$(eval $(host-autotools-package))
+$(eval $(autotools-package))
-- 
1.7.1

============================================================
    Hiroshi Kawashima

^ permalink raw reply related	[flat|nested] 4+ messages in thread

* [Buildroot] [PATCH v2 1/1] gauche: new package
  2015-10-24  0:11 [Buildroot] [PATCH v2 1/1] gauche: new package Hiroshi Kawashima
@ 2015-10-27 13:28 ` Hiroshi Kawashima
  2015-10-27 14:04 ` Vicente Olivert Riera
  1 sibling, 0 replies; 4+ messages in thread
From: Hiroshi Kawashima @ 2015-10-27 13:28 UTC (permalink / raw)
  To: buildroot

Dear maintainer.

If no further comment, could you pull up this ?

Hiroshi Kawashima writes:
> Gauche is an R7RS Scheme implementation developed to be a handy script
> interpriter, 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 my goals.
> 
> Signed-off-by: Hiroshi Kawashima <kei-k@ca2.so-net.ne.jp>
> ---
> 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 |   16 ++++++++++++++++
>  package/gauche/Config.in                |   18 ++++++++++++++++++
>  package/gauche/gauche.hash              |    2 ++
>  package/gauche/gauche.mk                |   19 +++++++++++++++++++
>  5 files changed, 56 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
> 
> diff --git a/package/Config.in b/package/Config.in
> index 2f74439..602ece9 100644
> --- a/package/Config.in
> +++ b/package/Config.in
> @@ -460,6 +460,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"
> diff --git a/package/gauche/0001-fix-so-suffix.patch b/package/gauche/0001-fi
> x-so-suffix.patch
> new file mode 100644
> index 0000000..3e82ddb
> --- /dev/null
> +++ b/package/gauche/0001-fix-so-suffix.patch
> @@ -0,0 +1,16 @@
> +With uclibc configuration, $host does not match to '*-linux-gnu-*'.
> +
> +Signed-off-by: Hiroshi Kawashima <kei-k@ca2.so-net.ne.jp>
> +
> +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 --git a/package/gauche/Config.in b/package/gauche/Config.in
> new file mode 100644
> index 0000000..1074bc1
> --- /dev/null
> +++ b/package/gauche/Config.in
> @@ -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 interpriter, 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 my 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
> diff --git a/package/gauche/gauche.hash b/package/gauche/gauche.hash
> new file mode 100644
> index 0000000..9ec106a
> --- /dev/null
> +++ b/package/gauche/gauche.hash
> @@ -0,0 +1,2 @@
> +# Locally calculated
> +sha256 7b18bcd70beaced1e004594be46c8cff95795318f6f5830dd2a8a700410fc149  Gau
> che-0.9.4.tgz
> diff --git a/package/gauche/gauche.mk b/package/gauche/gauche.mk
> new file mode 100644
> index 0000000..39ddfdc
> --- /dev/null
> +++ b/package/gauche/gauche.mk
> @@ -0,0 +1,19 @@
> +############################################################################
> ####
> +#
> +# gauche
> +#
> +############################################################################
> ####
> +
> +GAUCHE_VERSION = 0.9.4
> +GAUCHE_SOURCE = Gauche-$(GAUCHE_VERSION).tgz
> +GAUCHE_SITE = http://prdownloads.sourceforge.net/gauche
> +GAUCHE_LICENSE = BSD
> +GAUCHE_LICENSE_FILES = COPYING
> +GAUCHE_DEPENDENCIES = host-gauche
> +
> +# Checking c99 support in configure fails without WCHAR. But we do not
> +# need WCHAR at gauche runtime, so explicitly specify here.
> +GAUCHE_CONF_ENV = CFLAGS="$(TARGET_CFLAGS) -std=gnu99"
> +
> +$(eval $(host-autotools-package))
> +$(eval $(autotools-package))
> -- 
> 1.7.1
> 
> ============================================================
>     Hiroshi Kawashima
> _______________________________________________
> buildroot mailing list
> buildroot at busybox.net
> http://lists.busybox.net/mailman/listinfo/buildroot
> 
============================================================
    Hiroshi Kawashima

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Buildroot] [PATCH v2 1/1] gauche: new package
  2015-10-24  0:11 [Buildroot] [PATCH v2 1/1] gauche: new package Hiroshi Kawashima
  2015-10-27 13:28 ` Hiroshi Kawashima
@ 2015-10-27 14:04 ` Vicente Olivert Riera
  2015-10-30 11:49   ` Hiroshi Kawashima
  1 sibling, 1 reply; 4+ messages in thread
From: Vicente Olivert Riera @ 2015-10-27 14:04 UTC (permalink / raw)
  To: buildroot

Dear Hiroshi Kawashima,

your patch looks good to me. The only thing I would have added is a
little comment in the patch saying that you are patching the configure
directly because it fails to autoreconf.

On 10/24/2015 01:11 AM, Hiroshi Kawashima wrote:
> Gauche is an R7RS Scheme implementation developed to be a handy script
> interpriter, 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 my goals.
> 
> Signed-off-by: Hiroshi Kawashima <kei-k@ca2.so-net.ne.jp>
Reviewed-by: Vicente Olivert Riera <Vincent.Riera@imgtec.com>
Tested-by: Vicente Olivert Riera <Vincent.Riera@imgtec.com>

Build test for MIPS architecture:

$ file output/target/usr/bin/gosh
output/target/usr/bin/gosh: ELF 32-bit LSB executable, MIPS, MIPS32 rel2
version 1, dynamically linked (uses shared libs), for GNU/Linux 2.6.32,
with unknown capability 0xf41 = 0x756e6700, with unknown capability
0x70100 = 0x1040000, not stripped

Regards,

Vincent.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Buildroot] [PATCH v2 1/1] gauche: new package
  2015-10-27 14:04 ` Vicente Olivert Riera
@ 2015-10-30 11:49   ` Hiroshi Kawashima
  0 siblings, 0 replies; 4+ messages in thread
From: Hiroshi Kawashima @ 2015-10-30 11:49 UTC (permalink / raw)
  To: buildroot

Dear Vincente.

Thank you for your review and test.

I will send v3 patch refrect your comment with your Reviewed/Tesed.

Regards,
Kawashima

Vicente Olivert Riera writes:
> Dear Hiroshi Kawashima,
> 
> your patch looks good to me. The only thing I would have added is a
> little comment in the patch saying that you are patching the configure
> directly because it fails to autoreconf.
> 
> On 10/24/2015 01:11 AM, Hiroshi Kawashima wrote:
> > Gauche is an R7RS Scheme implementation developed to be a handy script
> > interpriter, 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 my goals.
> > 
> > Signed-off-by: Hiroshi Kawashima <kei-k@ca2.so-net.ne.jp>
> Reviewed-by: Vicente Olivert Riera <Vincent.Riera@imgtec.com>
> Tested-by: Vicente Olivert Riera <Vincent.Riera@imgtec.com>
> 
> Build test for MIPS architecture:
> 
> $ file output/target/usr/bin/gosh
> output/target/usr/bin/gosh: ELF 32-bit LSB executable, MIPS, MIPS32 rel2
> version 1, dynamically linked (uses shared libs), for GNU/Linux 2.6.32,
> with unknown capability 0xf41 = 0x756e6700, with unknown capability
> 0x70100 = 0x1040000, not stripped
> 
> Regards,
> 
> Vincent.
============================================================
    Hiroshi Kawashima

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2015-10-30 11:49 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-10-24  0:11 [Buildroot] [PATCH v2 1/1] gauche: new package Hiroshi Kawashima
2015-10-27 13:28 ` Hiroshi Kawashima
2015-10-27 14:04 ` Vicente Olivert Riera
2015-10-30 11:49   ` Hiroshi Kawashima

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.