Patchwork [1/1] nspr: Integrate version 4.8.9

login
register
mail settings
Submitter Andrei Gherzan
Date Feb. 7, 2012, 6:19 p.m.
Message ID <1328638770-31141-1-git-send-email-andrei@gherzan.ro>
Download mbox | patch
Permalink /patch/20897/
State New
Headers show

Comments

Andrei Gherzan - Feb. 7, 2012, 6:19 p.m.
Signed-off-by: Andrei Gherzan <andrei@gherzan.ro>
Signed-off-by: Sergey 'Jin' Bostandzhyan <jin@mediatomb.cc>
---
 meta/recipes-support/nspr/files/nspr.pc.in |   11 ++++++++
 meta/recipes-support/nspr/nspr_4.8.9.bb    |   36 ++++++++++++++++++++++++++++
 2 files changed, 47 insertions(+), 0 deletions(-)
 create mode 100644 meta/recipes-support/nspr/files/nspr.pc.in
 create mode 100644 meta/recipes-support/nspr/nspr_4.8.9.bb
Otavio Salvador - Feb. 7, 2012, 6:21 p.m.
Acked-by: Otavio Salvador <otavio@ossystems.com.br>

On Tue, Feb 7, 2012 at 16:19, Andrei Gherzan <andrei@gherzan.ro> wrote:

> Signed-off-by: Andrei Gherzan <andrei@gherzan.ro>
> Signed-off-by: Sergey 'Jin' Bostandzhyan <jin@mediatomb.cc>
> ---
>  meta/recipes-support/nspr/files/nspr.pc.in |   11 ++++++++
>  meta/recipes-support/nspr/nspr_4.8.9.bb    |   36
> ++++++++++++++++++++++++++++
>  2 files changed, 47 insertions(+), 0 deletions(-)
>  create mode 100644 meta/recipes-support/nspr/files/nspr.pc.in
>  create mode 100644 meta/recipes-support/nspr/nspr_4.8.9.bb
>
> diff --git a/meta/recipes-support/nspr/files/nspr.pc.inb/meta/recipes-support/nspr/files/
> nspr.pc.in
> new file mode 100644
> index 0000000..bbb7b5a
> --- /dev/null
> +++ b/meta/recipes-support/nspr/files/nspr.pc.in
> @@ -0,0 +1,11 @@
> +os_libs=-lpthread -ldl
> +prefix=OEPREFIX
> +exec_prefix=OEEXECPREFIX
> +libdir=OELIBDIR
> +includedir=OEINCDIR
> +
> +Name: NSPR
> +Description: The Netscape Portable Runtime
> +Version: 4.8.9
> +Libs: -L${libdir} -lplds4 -lplc4 -lnspr4 -lpthread -ldl
> +Cflags:
> diff --git a/meta/recipes-support/nspr/nspr_4.8.9.bbb/meta/recipes-support/nspr/
> nspr_4.8.9.bb
> new file mode 100644
> index 0000000..9ae5c70
> --- /dev/null
> +++ b/meta/recipes-support/nspr/nspr_4.8.9.bb
> @@ -0,0 +1,36 @@
> +DESCRIPTION = "Netscape Portable Runtime Library"
> +HOMEPAGE =  "http://www.mozilla.org/projects/nspr/"
> +LICENSE = "GPLv2"
> +LIC_FILES_CHKSUM =
> "file://${COMMON_LICENSE_DIR}/GPL-2.0;md5=801f80980d171dd6425610833a22dbe6"
> +SECTION = "libs/network"
> +
> +PR = "r0"
> +
> +SRC_URI = "
> ftp://ftp.mozilla.org/pub/mozilla.org/nspr/releases/v${PV}/src/nspr-${PV}.tar.gz
> "
> +
> +SRC_URI += "file://nspr.pc.in "
> +
> +SRC_URI[md5sum] = "60770d45dc08c0f181b22cdfce5be3e8"
> +SRC_URI[sha256sum] =
> "ff43c7c819e72f03bb908e7652c5d5f59a5d31ee86c333e692650207103d1cce"
> +
> +S = "${WORKDIR}/nspr-${PV}/mozilla/nsprpub"
> +
> +inherit autotools
> +
> +do_configure() {
> +       oe_runconf
> +}
> +
> +do_compile_prepend() {
> +       oe_runmake CROSS_COMPILE=1 CFLAGS="-DXP_UNIX" LDFLAGS="" CC=gcc -C
> config export
> +}
> +
> +do_install_append() {
> +    install -D ${WORKDIR}/nspr.pc.in ${D}${libdir}/pkgconfig/nspr.pc
> +    sed -i s:OEPREFIX:${prefix}:g ${D}${libdir}/pkgconfig/nspr.pc
> +    sed -i s:OELIBDIR:${libdir}:g ${D}${libdir}/pkgconfig/nspr.pc
> +    sed -i s:OEINCDIR:${includedir}:g ${D}${libdir}/pkgconfig/nspr.pc
> +    sed -i s:OEEXECPREFIX:${exec_prefix}:g ${D}${libdir}/pkgconfig/nspr.pc
> +}
> +
> +
> --
> 1.7.5.4
>
>
> _______________________________________________
> Openembedded-core mailing list
> Openembedded-core@lists.openembedded.org
> http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core
>
Denis Carikli - Feb. 10, 2012, 2:04 p.m.
There are some small issues:

>+Cflags: 
There is a whitespace at the end.
> +inherit autotools 
There is a whitespace at the end.

>+LICENSE = "GPLv2"
The license is not GPLv2 only, but rather:
GPLv2+ or MPL1.1(I'm not sure if it's spelled correctly) or  LGPLv2.1+
(I don't remember how or are expressed, maybe | or ||, you should grep for it)

>+LIC_FILES_CHKSUM = 
"file://${COMMON_LICENSE_DIR}/GPL-2.0;md5=801f80980d171dd6425610833a22dbe6"
Could you instead md5sum part of Makefile.in(or configure.in, or both) that 
contains a license header that seem to be applied to all files at 
compilation...

Thank a lot for working on nspr, I need it for chromium.

Denis.

Patch

diff --git a/meta/recipes-support/nspr/files/nspr.pc.in b/meta/recipes-support/nspr/files/nspr.pc.in
new file mode 100644
index 0000000..bbb7b5a
--- /dev/null
+++ b/meta/recipes-support/nspr/files/nspr.pc.in
@@ -0,0 +1,11 @@ 
+os_libs=-lpthread -ldl
+prefix=OEPREFIX
+exec_prefix=OEEXECPREFIX
+libdir=OELIBDIR
+includedir=OEINCDIR
+
+Name: NSPR
+Description: The Netscape Portable Runtime
+Version: 4.8.9
+Libs: -L${libdir} -lplds4 -lplc4 -lnspr4 -lpthread -ldl
+Cflags: 
diff --git a/meta/recipes-support/nspr/nspr_4.8.9.bb b/meta/recipes-support/nspr/nspr_4.8.9.bb
new file mode 100644
index 0000000..9ae5c70
--- /dev/null
+++ b/meta/recipes-support/nspr/nspr_4.8.9.bb
@@ -0,0 +1,36 @@ 
+DESCRIPTION = "Netscape Portable Runtime Library"
+HOMEPAGE =  "http://www.mozilla.org/projects/nspr/"
+LICENSE = "GPLv2"
+LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/GPL-2.0;md5=801f80980d171dd6425610833a22dbe6"
+SECTION = "libs/network"
+
+PR = "r0"
+
+SRC_URI = "ftp://ftp.mozilla.org/pub/mozilla.org/nspr/releases/v${PV}/src/nspr-${PV}.tar.gz"
+
+SRC_URI += "file://nspr.pc.in "
+
+SRC_URI[md5sum] = "60770d45dc08c0f181b22cdfce5be3e8"
+SRC_URI[sha256sum] = "ff43c7c819e72f03bb908e7652c5d5f59a5d31ee86c333e692650207103d1cce"
+
+S = "${WORKDIR}/nspr-${PV}/mozilla/nsprpub"
+
+inherit autotools 
+
+do_configure() {
+	oe_runconf
+}
+
+do_compile_prepend() {
+	oe_runmake CROSS_COMPILE=1 CFLAGS="-DXP_UNIX" LDFLAGS="" CC=gcc -C config export
+}
+
+do_install_append() {
+    install -D ${WORKDIR}/nspr.pc.in ${D}${libdir}/pkgconfig/nspr.pc
+    sed -i s:OEPREFIX:${prefix}:g ${D}${libdir}/pkgconfig/nspr.pc
+    sed -i s:OELIBDIR:${libdir}:g ${D}${libdir}/pkgconfig/nspr.pc
+    sed -i s:OEINCDIR:${includedir}:g ${D}${libdir}/pkgconfig/nspr.pc
+    sed -i s:OEEXECPREFIX:${exec_prefix}:g ${D}${libdir}/pkgconfig/nspr.pc
+}
+
+