Skip to contentSkip to conversation

moarvm: new package

PATCH Superseded Francois Perrad 3 participants 4 messages Jun 4, 2015 – Jun 5, 2015

v2 of 3 Superseded Latest is v3 →

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 moarvm: new package

---
 package/Config.in          |  1 +
 package/moarvm/Config.in   | 14 ++++++++++++++
 package/moarvm/moarvm.hash |  2 ++
 package/moarvm/moarvm.mk   | 42 ++++++++++++++++++++++++++++++++++++++++++
 4 files changed, 59 insertions(+)
 create mode 100644 package/moarvm/Config.in
 create mode 100644 package/moarvm/moarvm.hash
 create mode 100644 package/moarvm/moarvm.mk
package/Config.in +1 -0
index e0c2e2a..00c9ce3 100644
@@ -499,6 +499,7 @@ menu "Lua libraries/modules"
 	source "package/xavante/Config.in"
 endmenu
 endif
+	source "package/moarvm/Config.in"
 	source "package/mono/Config.in"
 	source "package/nodejs/Config.in"
 	source "package/perl/Config.in"
package/moarvm/Config.in new file +14 -0
new file mode 100644
index 0000000..4427e55
@@ -0,0 +1,14 @@
+config BR2_PACKAGE_MOARVM
+	bool "moarvm"
+	depends on BR2_TOOLCHAIN_HAS_THREADS
+	depends on BR2_PACKAGE_LIBATOMIC_ARCH_SUPPORTS
+	help
+	  MoarVM (short for Metamodel On A Runtime Virtual Machine) is
+	  a runtime built for the 6model object system. It is primarily aimed
+	  at running NQP and Rakudo Perl 6, but should be able to serve as
+	  a backend for any compilers built using the NQP compiler toolchain.
+
+	  http://moarvm.com
+
+comment "moarvm needs a toolchain w/ threads"
+	depends on !BR2_TOOLCHAIN_HAS_THREADS
package/moarvm/moarvm.hash new file +2 -0
new file mode 100644
index 0000000..d5cc911
@@ -0,0 +1,2 @@
+
+sha256  828843eb3da020ee24ff83933b63aebf4aa774b815a3dfa3a758d6334779565e  MoarVM-2015.05.tar.gz
package/moarvm/moarvm.mk new file +42 -0

42 lines not on this page · raw message

Signature · 1 line
2.1.4
#1 lore raw

PATCH v2 1/1 moarvm: new package

Dear Francois Perrad,

package/moarvm/Config.in line 4

Quoted 10 lines · Francois Perrad
package/moarvm/Config.in new file +4 -0
new file mode 100644
index 0000000..4427e55
@@ -0,0 +1,14 @@
+config BR2_PACKAGE_MOARVM
+	bool "moarvm"
+	depends on BR2_TOOLCHAIN_HAS_THREADS
+	depends on BR2_PACKAGE_LIBATOMIC_ARCH_SUPPORTS

You don't use libatomic, so: why?

package/moarvm/Config.in line 9

Quoted 5 lines
package/moarvm/Config.in new file +5 -0
+	help
+	  MoarVM (short for Metamodel On A Runtime Virtual Machine) is
+	  a runtime built for the 6model object system. It is primarily aimed
+	  at running NQP and Rakudo Perl 6, but should be able to serve as
+	  a backend for any compilers built using the NQP compiler toolchain.

I think the lines of the help text are slightly too long.

Quoted 4 lines
package/moarvm/Config.in new file +4 -0
+MOARVM_CONF_OPTS = \
+	--build=$(GNU_HOST_NAME) \
+	--host=$(GNU_TARGET_NAME) \
+	--ar="$(TARGET_AR)" \

package/moarvm/Config.in

Quoted 10 lines
package/moarvm/Config.in new file +10 -0
+	--cc="$(TARGET_CC)" \
+	--ld="$(TARGET_CC)" \
+	--prefix="/usr"
+
+ifeq ($(BR2_ENDIAN),"BIG")
+MOARVM_CONF_OPTS += --big-endian
+endif
+
+define MOARVM_CONFIGURE_CMDS
+	(cd $(@D); perl Configure.pl $(MOARVM_CONF_OPTS))

Is using the system provided Perl OK or should we use host-perl instead?

Thanks,

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
#2 lore raw

PATCH v2 1/1 moarvm: new package

2015-06-05 7:50 GMT+02:00 Thomas Petazzoni
<[email protected]>:

Quoted 4 lines

Dear Francois Perrad,

On Thu, 4 Jun 2015 22:01:12 +0200, Francois Perrad wrote:

Quoted 13 lines

package/moarvm/Config.in line 4

Quoted 10 lines
package/moarvm/Config.in new file +4 -0
new file mode 100644
index 0000000..4427e55
@@ -0,0 +1,14 @@
+config BR2_PACKAGE_MOARVM
+     bool "moarvm"
+     depends on BR2_TOOLCHAIN_HAS_THREADS
+     depends on BR2_PACKAGE_LIBATOMIC_ARCH_SUPPORTS

You don't use libatomic, so: why?

The MoarVM tarball embeds its own copy of libatomic.

Quoted 8 lines

package/moarvm/Config.in line 9

Quoted 5 lines
package/moarvm/Config.in new file +5 -0
+     help
+       MoarVM (short for Metamodel On A Runtime Virtual Machine) is
+       a runtime built for the 6model object system. It is primarily aimed
+       at running NQP and Rakudo Perl 6, but should be able to serve as
+       a backend for any compilers built using the NQP compiler toolchain.

I think the lines of the help text are slightly too long.

Quoted 17 lines
Quoted 4 lines
package/moarvm/Config.in new file +4 -0
+MOARVM_CONF_OPTS = \
+     --build=$(GNU_HOST_NAME) \
+     --host=$(GNU_TARGET_NAME) \
+     --ar="$(TARGET_AR)" \

package/moarvm/Config.in

Quoted 10 lines
package/moarvm/Config.in new file +10 -0
+     --cc="$(TARGET_CC)" \
+     --ld="$(TARGET_CC)" \
+     --prefix="/usr"
+
+ifeq ($(BR2_ENDIAN),"BIG")
+MOARVM_CONF_OPTS += --big-endian
+endif
+
+define MOARVM_CONFIGURE_CMDS
+     (cd $(@D); perl Configure.pl $(MOARVM_CONF_OPTS))

Is using the system provided Perl OK or should we use host-perl instead?

Work with the system perl.

Quoted 11 lines

Thanks,

Thomas
--
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
_______________________________________________
buildroot mailing list
buildroot at busybox.net
http://lists.busybox.net/mailman/listinfo/buildroot

#3 lore raw

PATCH v2 1/1 moarvm: new package

Dear Fran?ois Perrad,

Quoted 14 lines · Fran?ois Perrad
Quoted 4 lines
Quoted 4 lines
package/moarvm/Config.in new file +0 -1
new file mode 100644
index 0000000..4427e55
--- /dev/null
Quoted 9 lines

package/moarvm/Config.in line 4

Quoted 6 lines

+++ b/package/moarvm/Config.in

package/moarvm/Config.in new file +4 -0
@@ -0,0 +1,14 @@
+config BR2_PACKAGE_MOARVM
+     bool "moarvm"
+     depends on BR2_TOOLCHAIN_HAS_THREADS
+     depends on BR2_PACKAGE_LIBATOMIC_ARCH_SUPPORTS

You don't use libatomic, so: why?

Quoted 1 line

The MoarVM tarball embeds its own copy of libatomic.

Ah, ok. Since this is not trivial/obvious, please add a comment above this 'depends on'.

Quoted 4 lines
Quoted 2 lines

Is using the system provided Perl OK or should we use host-perl instead?

Work with the system perl.

Ok, we'll see if this is effectively true when we'll start building in the autobuilders with various different/old versions of Perl. But no need to worry about this now, the autobuilders will tell us what they think :-)

Thanks!

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com