mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
* [ptxdist] js: return of spidermonkey
@ 2016-07-29  0:22 Ladislav Michl
  2016-07-29  6:14 ` Robert Schwebel
  2016-07-29  7:11 ` Michael Olbrich
  0 siblings, 2 replies; 6+ messages in thread
From: Ladislav Michl @ 2016-07-29  0:22 UTC (permalink / raw)
  To: ptxdist

Commit a33ab9d2dee7c0cc727279c83e6eaf50eaba5e9e removed js with explanation
"It was in staging for a year and nobody cared."
A patch to bring it back into life was sent in February:
https://www.mail-archive.com/ptxdist@pengutronix.de/msg10388.html
(gmane is currently down) Meanwhile SpiderMonkey 45 was released.
Do we want it in PTXdist? The only package depending on js is polkit,
but that was already solved by upgrading to 0.105 - the last version
not depending on js.

	ladis

_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de

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

* Re: [ptxdist] js: return of spidermonkey
  2016-07-29  0:22 [ptxdist] js: return of spidermonkey Ladislav Michl
@ 2016-07-29  6:14 ` Robert Schwebel
  2016-07-29  7:11 ` Michael Olbrich
  1 sibling, 0 replies; 6+ messages in thread
From: Robert Schwebel @ 2016-07-29  6:14 UTC (permalink / raw)
  To: ptxdist

On Fri, Jul 29, 2016 at 02:22:00AM +0200, Ladislav Michl wrote:
> Commit a33ab9d2dee7c0cc727279c83e6eaf50eaba5e9e removed js with explanation
> "It was in staging for a year and nobody cared."
> A patch to bring it back into life was sent in February:
> https://www.mail-archive.com/ptxdist@pengutronix.de/msg10388.html
> (gmane is currently down) Meanwhile SpiderMonkey 45 was released.
> Do we want it in PTXdist? The only package depending on js is polkit,
> but that was already solved by upgrading to 0.105 - the last version
> not depending on js.

I don't care; if somebody does, please provide new patches.

rsc
-- 
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de

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

* Re: [ptxdist] js: return of spidermonkey
  2016-07-29  0:22 [ptxdist] js: return of spidermonkey Ladislav Michl
  2016-07-29  6:14 ` Robert Schwebel
@ 2016-07-29  7:11 ` Michael Olbrich
  2016-07-29  8:44   ` Bruno Thomsen
  2016-07-29  9:16   ` Ladislav Michl
  1 sibling, 2 replies; 6+ messages in thread
From: Michael Olbrich @ 2016-07-29  7:11 UTC (permalink / raw)
  To: ptxdist

Hi,

On Fri, Jul 29, 2016 at 02:22:00AM +0200, Ladislav Michl wrote:
> Commit a33ab9d2dee7c0cc727279c83e6eaf50eaba5e9e removed js with explanation
> "It was in staging for a year and nobody cared."
> A patch to bring it back into life was sent in February:
> https://www.mail-archive.com/ptxdist@pengutronix.de/msg10388.html

Indeed. Looks like it missed that one. I was rather busy at the time.

> (gmane is currently down) Meanwhile SpiderMonkey 45 was released.

I'd be happy to look at a new patch. I've taken a quick look at the old
patch and the only thing that really stands out is a missing patch header
for the second patch.

> Do we want it in PTXdist? The only package depending on js is polkit,
> but that was already solved by upgrading to 0.105 - the last version
> not depending on js.

If someone needs js for something and provides a good patch, then I'll
apply it. I don't think updating polkit to a version that needs it, is a
good idea. Maybe as a different package if someone needs it.

Michael

-- 
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de

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

* Re: [ptxdist] js: return of spidermonkey
  2016-07-29  7:11 ` Michael Olbrich
@ 2016-07-29  8:44   ` Bruno Thomsen
  2016-07-29  9:16   ` Ladislav Michl
  1 sibling, 0 replies; 6+ messages in thread
From: Bruno Thomsen @ 2016-07-29  8:44 UTC (permalink / raw)
  To: ladis; +Cc: ptxdist

Hi Ladislav

> (gmane is currently down)

FYI

https://developers.slashdot.org/story/16/07/28/2059249/the-end-of-gmane

/Bruno
_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de

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

* Re: [ptxdist] js: return of spidermonkey
  2016-07-29  7:11 ` Michael Olbrich
  2016-07-29  8:44   ` Bruno Thomsen
@ 2016-07-29  9:16   ` Ladislav Michl
  2016-07-31 20:15     ` [ptxdist] [PATCH] js: mozjs-45.0.2 Ladislav Michl
  1 sibling, 1 reply; 6+ messages in thread
From: Ladislav Michl @ 2016-07-29  9:16 UTC (permalink / raw)
  To: ptxdist

On Fri, Jul 29, 2016 at 09:11:56AM +0200, Michael Olbrich wrote:
> Hi,
> 
> On Fri, Jul 29, 2016 at 02:22:00AM +0200, Ladislav Michl wrote:
> > Commit a33ab9d2dee7c0cc727279c83e6eaf50eaba5e9e removed js with explanation
> > "It was in staging for a year and nobody cared."
> > A patch to bring it back into life was sent in February:
> > https://www.mail-archive.com/ptxdist@pengutronix.de/msg10388.html
> 
> Indeed. Looks like it missed that one. I was rather busy at the time.
> 
> > (gmane is currently down) Meanwhile SpiderMonkey 45 was released.
> 
> I'd be happy to look at a new patch. I've taken a quick look at the old
> patch and the only thing that really stands out is a missing patch header
> for the second patch.

Indeed, fortunately those patches was digged from git and are already
present in version 45.

> > Do we want it in PTXdist? The only package depending on js is polkit,
> > but that was already solved by upgrading to 0.105 - the last version
> > not depending on js.
> 
> If someone needs js for something and provides a good patch, then I'll
> apply it. I don't think updating polkit to a version that needs it, is a
> good idea. Maybe as a different package if someone needs it.

I just give a try to version 45 and despite huge amount of memory needed
to compile that beast it all looks fine. However providing package
which is not quite usefull alone does not seem like a good idea. Originaly
I did it for udisks2, but as it (at version 2.1.7) requires polkit 0.102
or newer, that dependency is already satisfied. So I'll leave it in my
tree with polkit 0.113 for a while and resubmit just in case someone
really needs it.

	ladis (unhappy where linux userspace is heading...)

PS. I'll probably forget all this adventure and try this instead:
https://github.com/LemonBoy/ldm

_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de

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

* [ptxdist] [PATCH] js: mozjs-45.0.2
  2016-07-29  9:16   ` Ladislav Michl
@ 2016-07-31 20:15     ` Ladislav Michl
  0 siblings, 0 replies; 6+ messages in thread
From: Ladislav Michl @ 2016-07-31 20:15 UTC (permalink / raw)
  To: ptxdist

Signed-off-by: Ladislav Michl <ladis@linux-mips.org>
---
 Note: No PTXdist package currently depends on JavaScript engine,
 this patch was just sitting in my local tree, so I updated it
 and send out just in case anyone finds it usefull.

 rules/js.in   | 14 ++++++++++
 rules/js.make | 84 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 98 insertions(+)
 create mode 100644 rules/js.in
 create mode 100644 rules/js.make

diff --git a/rules/js.in b/rules/js.in
new file mode 100644
index 0000000..4dee88b
--- /dev/null
+++ b/rules/js.in
@@ -0,0 +1,14 @@
+## SECTION=scripting_languages
+
+config JS
+	tristate "mozjs (spidermonkey)"
+	select GCCLIBS_CXX
+	select GCCLIBS_GCC_S
+	select LIBC_M
+	select LIBC_DL
+	select LIBC_PTHREAD
+	select ZLIB
+	help
+	  SpiderMonkey is Mozilla's JavaScript engine written in C/C++.
+	  It is used in various Mozilla products, including Firefox,
+	  and is available under the MPL2.
diff --git a/rules/js.make b/rules/js.make
new file mode 100644
index 0000000..53ab203
--- /dev/null
+++ b/rules/js.make
@@ -0,0 +1,84 @@
+# -*-makefile-*-
+#
+# Copyright (C) 2010 by Robert Schwebel <r.schwebel@pengutronix.de>
+#               2011 by Michael Olbrich <m.olbrich@pengutronix.de>
+#               2016 by Ladislav Michl <ladis@linux-mips.org>
+#
+# See CREDITS for details about who has contributed to this project.
+#
+# For further information about the PTXdist project and license conditions
+# see the README file.
+#
+
+#
+# We provide this package
+#
+PACKAGES-$(PTXCONF_JS) += js
+
+#
+# Paths and names
+#
+JS_VERSION	:= 45.0.2
+JS_MD5		:= 2ca34f998d8b5ea79d8616dd26b5fbab
+JS		:= mozjs-$(JS_VERSION)
+JS_SUFFIX	:= tar.bz2
+JS_URL		:= https://people.mozilla.org/~sfink/$(JS).$(JS_SUFFIX)
+JS_SOURCE	:= $(SRCDIR)/$(JS).$(JS_SUFFIX)
+JS_DIR		:= $(BUILDDIR)/$(JS)
+JS_SUBDIR	:= js/src
+JS_LICENSE	:= MPL-2.0
+
+# ----------------------------------------------------------------------------
+# Prepare
+# ----------------------------------------------------------------------------
+
+#
+# autoconf
+#
+# $(JS_SUBDIR)/configure.in:
+#   In Mozilla, we use the names $target, $host and $build incorrectly, but are
+#   too far gone to back out now. See Bug 475488:
+#     - When we say $target, we mean $host, that is, the system on which
+#       Mozilla will be run.
+#     - When we say $host, we mean $build, that is, the system on which Mozilla
+#       is built.
+#     - $target (in its correct usage) is for compilers who generate code for a
+#       different platform than $host, so it would not be used by Mozilla.
+JS_CONF_TOOL	:= autoconf
+JS_CONF_OPT	:= $(CROSS_AUTOCONF_SYSROOT_USR) \
+	--target=$(PTXCONF_GNU_TARGET) \
+	--host=$(GNU_HOST) \
+	--build=$(GNU_HOST) \
+	--enable-posix-nspr-emulation \
+	--with-system-zlib \
+	--enable-system-ffi \
+	--disable-tests \
+	--disable-jig \
+	--disable-debug \
+	--enable-optimize \
+	--without-x \
+	--with-pthreads \
+	--without-intl-api
+
+# ----------------------------------------------------------------------------
+# Target-Install
+# ----------------------------------------------------------------------------
+
+JS_VERSION_MAJOR	:= $(word 1,$(subst ., ,$(JS_VERSION)))
+
+$(STATEDIR)/js.targetinstall:
+	@$(call targetinfo)
+
+	@$(call install_init, js)
+	@$(call install_fixup, js,PRIORITY,optional)
+	@$(call install_fixup, js,SECTION,base)
+	@$(call install_fixup, js,AUTHOR,"Robert Schwebel <r.schwebel@pengutronix.de>")
+	@$(call install_fixup, js,DESCRIPTION,missing)
+
+	@$(call install_lib, js, 0, 0, 0644, libmozjs-$(JS_VERSION_MAJOR))
+
+	@$(call install_finish, js)
+
+	@$(call touch)
+
+# vim: syntax=make
-- 
2.1.4


_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de

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

end of thread, other threads:[~2016-07-31 20:15 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-07-29  0:22 [ptxdist] js: return of spidermonkey Ladislav Michl
2016-07-29  6:14 ` Robert Schwebel
2016-07-29  7:11 ` Michael Olbrich
2016-07-29  8:44   ` Bruno Thomsen
2016-07-29  9:16   ` Ladislav Michl
2016-07-31 20:15     ` [ptxdist] [PATCH] js: mozjs-45.0.2 Ladislav Michl

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox