Skip to contentSkip to conversation

Integrate new js185 as a new bb file

PATCH In review Andrei Gherzan 2 participants 3 messages Apr 11, 2012 – Apr 28, 2012

lore
Share & tools
lore
#0 lore raw

cover Integrate new js185 as a new bb file

This is a temporary solution until we know what to do with packages like web or web-webkit.

The following changes since commit 190f6d791d51aaa4cfb9f1cf932bc205ff674fb5:

runqemu-internal: Add console=tty for qemuppc and NFS (2012-04-06 01:12:47 +0100)

are available in the git repository at:
git://git.yoctoproject.org/poky-contrib ag/js
http://git.yoctoproject.org/cgit.cgi/poky-contrib/log/?h=ag/js

Andrei Gherzan (1):
js185: Integrate version 1.8.5

 meta/recipes-support/js/files/link_with_gcc.patch |   12 +++----
 meta/recipes-support/js/files/usepic.patch        |   15 ++------
 meta/recipes-support/js/js185_1.0.0.bb            |   36 +++++++++++++++++++++
 3 files changed, 45 insertions(+), 18 deletions(-)
 create mode 100644 meta/recipes-support/js/js185_1.0.0.bb
Signature · 1 line
1.7.5.4
#1 lore raw

PATCH 1/1 js185: Integrate version 1.8.5

---
 meta/recipes-support/js/files/link_with_gcc.patch |   12 +++----
 meta/recipes-support/js/files/usepic.patch        |   15 ++------
 meta/recipes-support/js/js185_1.0.0.bb            |   36 +++++++++++++++++++++
 3 files changed, 45 insertions(+), 18 deletions(-)
 create mode 100644 meta/recipes-support/js/js185_1.0.0.bb
meta/recipes-support/js/files/link_with_gcc.patch +5 -7
index 988df61..1bee233 100644
@@ -1,11 +1,9 @@
-Upstream-Status: Pending
-
-Index: src/config/Linux_All.mk
+Index: js-1.8.5/js/src/ref-config/Linux_All.mk
 ===================================================================
---- src.orig/config/Linux_All.mk	2005-05-10 19:53:44.000000000 +0000
-+++ src/config/Linux_All.mk	2007-06-18 17:20:05.000000000 +0000
-@@ -47,7 +47,7 @@
- OS_CFLAGS = -DXP_UNIX -DSVR4 -DSYSV -D_BSD_SOURCE -DPOSIX_SOURCE -DHAVE_LOCALTIME_R
+--- src.orig/ref-config/Linux_All.mk	2012-04-09 23:43:45.099107032 +0300
++++ src/ref-config/Linux_All.mk	2012-04-09 23:43:56.947106799 +0300
+@@ -48,7 +48,7 @@
+ OS_CFLAGS = -DXP_UNIX -DSVR4 -DSYSV -D_BSD_SOURCE -DPOSIX_SOURCE -DHAVE_LOCALTIME_R -DLINUX
  
  RANLIB = echo
 -MKSHLIB = $(LD) -shared $(XMKSHLIBOPTS)
meta/recipes-support/js/files/usepic.patch +4 -11
index 91b0923..7098188 100644
@@ -1,15 +1,8 @@
-Upstream-Status: Inappropriate [embedded specific]
-
-Mips needs -fPIC to compile properly. These tests are broken anyway as they test 
-the build system architecture, not the target. This is a hack.
-
-RP 10/6/2010
-
-Index: src/config/Linux_All.mk
+Index: src/ref-config/Linux_All.mk
 ===================================================================
---- src.orig/config/Linux_All.mk	2010-06-10 22:09:43.000000000 +0100
-+++ src/config/Linux_All.mk	2010-06-10 22:09:55.000000000 +0100
-@@ -90,14 +90,10 @@
+--- src.orig/ref-config/Linux_All.mk	2012-04-09 23:47:06.775103048 +0300
++++ src/ref-config/Linux_All.mk	2012-04-09 23:47:40.267102388 +0300
+@@ -92,14 +92,10 @@
  # Use the editline library to provide line-editing support.
  JS_EDITLINE = 1
  
meta/recipes-support/js/js185_1.0.0.bb new file +36 -0
new file mode 100644
index 0000000..c91d9b6
@@ -0,0 +1,36 @@
+DESCRIPTION = "Spidermonkey: a javascript engine written in C"
+HOMEPAGE = "http://www.mozilla.org/js/spidermonkey/"
+SECTION = "libs"
+
+# the package is licensed under either of the following
+LICENSE = "MPL-1 | GPLv2+ | LGPLv2.1+"
+LIC_FILES_CHKSUM = "file://jsapi.h;beginline=4;endline=39;md5=347c6bbf4fb4547de1fa5ad830030063"
+PR = "r0"
+
+DEPENDS = "nspr"
+
+SRC_URI = "http://ftp.mozilla.org/pub/mozilla.org/js/js185-1.0.0.tar.gz \
+           file://link_with_gcc.patch \
+           file://usepic.patch \
+          "
+
+SRC_URI[md5sum] = "a4574365938222adca0a6bd33329cb32"
+SRC_URI[sha256sum] = "5d12f7e1f5b4a99436685d97b9b7b75f094d33580227aa998c406bbae6f2a687"
+
+S = "${WORKDIR}/${PN}-${PV}/js/src"
+
+inherit autotools
+
+# Use the configure and avoid autoconf as v2.13 is mandatory
+do_configure_prepend() {
+	rm -f ${S}/configure.in
+}
+
+EXTRA_OEMAKE = "'CC=${CC}' 'LD=${LD}' 'XCFLAGS=${CFLAGS}' 'XLDFLAGS=${LDFLAGS} -Wl,-soname=libjs' \
+                'BUILD_CC=${BUILD_CC}' 'BUILD_CFLAGS=${BUILD_CFLAGS}' 'BUILD_LDFLAGS=${BUILD_LDFLAGS}'"
+
+EXTRA_OECONF = '--with-nspr-libs="-lplds4 -lplc4 -lnspr4" \
+                --prefix=/usr'
+
+PARALLEL_MAKE = ""
+
Signature · 1 line
1.7.5.4
#2 lore raw

Re: [PATCH 1/1] js185: Integrate version 1.8.5

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Quoted 8 lines · Andrei Gherzan
meta/recipes-support/js/files/link_with_gcc.patch |   12 +++---- 
meta/recipes-support/js/files/usepic.patch        |   15 ++------ 
meta/recipes-support/js/js185_1.0.0.bb            |   36

+++++++++++++++++++++ 3 files changed, 45 insertions(+), 18 deletions(-) create mode 100644 meta/recipes-support/js/js185_1.0.0.bb

Quoted 10 lines
(quoted diff) +0 -0

b/meta/recipes-support/js/files/link_with_gcc.patch index 988df61..1bee233 100644 --- a/meta/recipes-support/js/files/link_with_gcc.patch +++ b/meta/recipes-support/js/files/link_with_gcc.patch @@ -1,11 +1,9 @@ -Upstream-Status: Pending - -Index: src/config/Linux_All.mk +Index: js-1.8.5/js/src/ref-config/Linux_All.mk
===================================================================

- ---- src.orig/config/Linux_All.mk 2005-05-10 19:53:44.000000000 +0000

Quoted 16 lines

-+++ src/config/Linux_All.mk 2007-06-18 17:20:05.000000000 +0000
-@@ -47,7 +47,7 @@ - OS_CFLAGS = -DXP_UNIX -DSVR4 -DSYSV -D_BSD_SOURCE -DPOSIX_SOURCE -DHAVE_LOCALTIME_R +---
src.orig/ref-config/Linux_All.mk 2012-04-09 23:43:45.099107032
+0300 ++++ src/ref-config/Linux_All.mk 2012-04-09
23:43:56.947106799 +0300 +@@ -48,7 +48,7 @@ + OS_CFLAGS = -DXP_UNIX

(quoted diff) +0 -2
-DSVR4 -DSYSV -D_BSD_SOURCE -DPOSIX_SOURCE -DHAVE_LOCALTIME_R
-DLINUX

RANLIB = echo -MKSHLIB = $(LD) -shared $(XMKSHLIBOPTS) diff --git a/meta/recipes-support/js/files/usepic.patch b/meta/recipes-support/js/files/usepic.patch index 91b0923..7098188 100644 --- a/meta/recipes-support/js/files/usepic.patch +++ b/meta/recipes-support/js/files/usepic.patch @@ -1,15 +1,8 @@

(quoted diff) +0 -2
-Upstream-Status: Inappropriate [embedded specific] - -Mips needs
-fPIC to compile properly. These tests are broken anyway as they
Quoted 2 lines

test -the build system architecture, not the target. This is a hack. - -RP 10/6/2010 -

why is patch header gone

Quoted 5 lines

-Index: src/config/Linux_All.mk +Index:
src/ref-config/Linux_All.mk
===================================================================

- ---- src.orig/config/Linux_All.mk 2010-06-10 22:09:43.000000000 +0100

Quoted 13 lines

-+++ src/config/Linux_All.mk 2010-06-10 22:09:55.000000000 +0100
-@@ -90,14 +90,10 @@ +--- src.orig/ref-config/Linux_All.mk

2012-04-09 23:47:06.775103048 +0300 ++++

src/ref-config/Linux_All.mk 2012-04-09 23:47:40.267102388 +0300 +@@
-92,14 +92,10 @@ # Use the editline library to provide line-editing support. JS_EDITLINE = 1

(quoted diff) +0 -0

b/meta/recipes-support/js/js185_1.0.0.bb new file mode 100644 index 0000000..c91d9b6 --- /dev/null +++ b/meta/recipes-support/js/js185_1.0.0.bb @@ -0,0 +1,36 @@

(quoted diff) +2 -0
+DESCRIPTION = "Spidermonkey: a javascript engine written in C" 
+HOMEPAGE = "http://www.mozilla.org/js/spidermonkey/" +SECTION =
Quoted 5 lines

"libs" + +# the package is licensed under either of the following +LICENSE = "MPL-1 | GPLv2+ | LGPLv2.1+" +LIC_FILES_CHKSUM = "file://jsapi.h;beginline=4;endline=39;md5=347c6bbf4fb4547de1fa5ad830030063"

+PR = "r0"

Quoted 10 lines

+ +DEPENDS = "nspr" + +SRC_URI = "http://ftp.mozilla.org/pub/mozilla.org/js/js185-1.0.0.tar.gz \ +
file://link_with_gcc.patch \ + file://usepic.patch \ +
" + +SRC_URI[md5sum] = "a4574365938222adca0a6bd33329cb32" +SRC_URI[sha256sum] = "5d12f7e1f5b4a99436685d97b9b7b75f094d33580227aa998c406bbae6f2a687"
+ +S = "${WORKDIR}/${PN}-${PV}/js/src" + +inherit autotools + +# Use the configure and avoid autoconf as v2.13 is mandatory

(quoted diff) +2 -0
+do_configure_prepend() { +	rm -f ${S}/configure.in +} + 
+EXTRA_OEMAKE = "'CC=${CC}' 'LD=${LD}' 'XCFLAGS=${CFLAGS}'
Quoted 5 lines

'XLDFLAGS=${LDFLAGS} -Wl,-soname=libjs' \ + 'BUILD_CC=${BUILD_CC}' 'BUILD_CFLAGS=${BUILD_CFLAGS}' 'BUILD_LDFLAGS=${BUILD_LDFLAGS}'" + +EXTRA_OECONF = '--with-nspr-libs="-lplds4 -lplc4 -lnspr4" \ + --prefix=/usr' + +PARALLEL_MAKE = ""

can you make sure this is really needed ?

Quoted 1 line

+

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk+cW0IACgkQuwUzVZGdMxSFhgCfUUBEACEl2mG/QrelmeS01b+i 44IAn0JtcpeOtRFfIF1zqLNgZNjqk7Z8
=rO7K
-----END PGP SIGNATURE-----