firefox build fixes
v3 cover firefox build fixes
Hope patches apply now...
Andreas Müller (3):
firefox: fix configure with oe-core master - there is no nss-config
firefox: use pkg-config to find nspr
firefox: do not link against crmf library it is not there
.../firefox/0001-use-pkg-config-to-find-nss.patch | 47 +++++++++++++++++++++ .../firefox/0002-use-pkg-config-to-find-nspr.patch | 37 +++++++++++++++++ ...link-against-crmf-library-it-is-not-there.patch | 48 ++++++++++++++++++++++ recipes-mozilla/firefox/firefox_45.6.0esr.bb | 3 ++ 4 files changed, 135 insertions(+) create mode 100644 recipes-mozilla/firefox/firefox/0001-use-pkg-config-to-find-nss.patch create mode 100644 recipes-mozilla/firefox/firefox/0002-use-pkg-config-to-find-nspr.patch create mode 100644 recipes-mozilla/firefox/firefox/0003-do-not-link-against-crmf-library-it-is-not-there.patch
Signature · 1 line
2.7.4
PATCH v3 1/3 firefox: fix configure with oe-core master - there is no nss-config
| configure:15633: checking for NSS - version >= 3.21.3
| configure: error: you don't have NSS installed or your version is too old
--- .../firefox/0001-use-pkg-config-to-find-nss.patch | 47 ++++++++++++++++++++++ recipes-mozilla/firefox/firefox_45.6.0esr.bb | 1 + 2 files changed, 48 insertions(+) create mode 100644 recipes-mozilla/firefox/firefox/0001-use-pkg-config-to-find-nss.patch
recipes-mozilla/firefox/firefox/0001-use-pkg-config-to-find-nss.patch new file +47 -0
@@ -0,0 +1,47 @@ +From f5533e4f2ac147256f7c41166ae1ef98f41d7f39 Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Andreas=20M=C3=BCller?= <[email protected]> +Date: Wed, 14 Dec 2016 21:37:03 +0100 +Subject: [PATCH] use pkg-config to find nss +MIME-Version: 1.0 +Content-Type: text/plain; charset=UTF-8 +Content-Transfer-Encoding: 8bit + +Upstream-Status: Inappropriate [embedded specific] + +Signed-off-by: Andreas Müller <[email protected]> +--- + configure | 9 +++++---- + 1 file changed, 5 insertions(+), 4 deletions(-) + +diff --git a/configure b/configure +index c27acdd..9b68803 100755 +--- a/configure ++++ b/configure +@@ -15630,7 +15630,8 @@ fi + min_nss_version=3.21.3 + echo $ac_n "checking for NSS - version >= $min_nss_version""... $ac_c" 1>&6 + echo "configure:15633: checking for NSS - version >= $min_nss_version" >&5 +- ++ NSS_CONFIG="pkg-config nss" ++ nss_config_args= + no_nss="" + if test "$NSS_CONFIG" = "no"; then + no_nss="yes" +@@ -15638,11 +15639,11 @@ echo "configure:15633: checking for NSS - version >= $min_nss_version" >&5 + NSS_CFLAGS=`$NSS_CONFIG $nss_config_args --cflags` + NSS_LIBS=`$NSS_CONFIG $nss_config_args --libs` + +- nss_config_major_version=`$NSS_CONFIG $nss_config_args --version | \ ++ nss_config_major_version=`$NSS_CONFIG $nss_config_args --modversion | \ + sed 's/\([0-9]*\)\.\([0-9]*\)\(\.\([0-9]*\)\)\{0,1\}/\1/'` +- nss_config_minor_version=`$NSS_CONFIG $nss_config_args --version | \ ++ nss_config_minor_version=`$NSS_CONFIG $nss_config_args --modversion | \ + sed 's/\([0-9]*\)\.\([0-9]*\)\(\.\([0-9]*\)\)\{0,1\}/\2/'` +- nss_config_micro_version=`$NSS_CONFIG $nss_config_args --version | \ ++ nss_config_micro_version=`$NSS_CONFIG $nss_config_args --modversion | \ + sed 's/\([0-9]*\)\.\([0-9]*\)\(\.\([0-9]*\)\)\{0,1\}/\4/'` + if test -z "$nss_config_micro_version"; then + nss_config_micro_version="0" +-- +2.7.4 +
recipes-mozilla/firefox/firefox_45.6.0esr.bb +1 -0
@@ -39,6 +39,7 @@ SRC_URI = "https://archive.mozilla.org/pub/firefox/releases/${PV}/source/firefox file://debian-hacks/Avoid-wrong-sessionstore-data-to-keep-windows-out-of.patch \ file://Fix-firefox-install-dir.patch \ file://fixes/Correct-the-source-to-be-compatible-with-gcc6-by-pre.patch \ + file://0001-use-pkg-config-to-find-nss.patch \ " SRC_URI[archive.md5sum] = "ee3cf2401a5716cebacaae5fb70d133f"
Signature · 1 line
2.7.4
PATCH v3 2/3 firefox: use pkg-config to find nspr
In reply to Andreas Müllernspr-config adds path /usr/include
which causes lots of
| cc1plus: warning: include location "/usr/include" is unsafe for cross-compilation [-Wpoison-system-directories]
and finally fails with
| In file included from /usr/include/sys/syscall.h:31:0, | from <workdir>/cortexa7hf-neon-vfpv4-angstrom-linux-gnueabi/firefox/45.5.1esr-r0/firefox-45.5.1esr/firefox-build-dir/dist/system_wrappers/sys/syscall.h:4, | from <workdir>/cortexa7hf-neon-vfpv4-angstrom-linux-gnueabi/firefox/45.5.1esr-r0/firefox-45.5.1esr/memory/mozjemalloc/jemalloc.c:397: | <workdir>/cortexa7hf-neon-vfpv4-angstrom-linux-gnueabi/firefox/45.5.1esr-r0/firefox-45.5.1esr/memory/mozjemalloc/jemalloc.c: In function '_mmap': | <workdir>/cortexa7hf-neon-vfpv4-angstrom-linux-gnueabi/firefox/45.5.1esr-r0/firefox-45.5.1esr/memory/mozjemalloc/jemalloc.c:417:26: error: '__NR_mmap2' undeclared (first use in this function) | return (void *) syscall(SYS_mmap2, addr, length, prot, flags,
--- .../firefox/0002-use-pkg-config-to-find-nspr.patch | 37 ++++++++++++++++++++++ recipes-mozilla/firefox/firefox_45.6.0esr.bb | 1 + 2 files changed, 38 insertions(+) create mode 100644 recipes-mozilla/firefox/firefox/0002-use-pkg-config-to-find-nspr.patch
recipes-mozilla/firefox/firefox/0002-use-pkg-config-to-find-nspr.patch new file +37 -0
@@ -0,0 +1,37 @@ +From cdb21594b814af82c4128ccd1179267de2e0e780 Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Andreas=20M=C3=BCller?= <[email protected]> +Date: Wed, 14 Dec 2016 22:57:55 +0100 +Subject: [PATCH] use pkg-config to find nspr +MIME-Version: 1.0 +Content-Type: text/plain; charset=UTF-8 +Content-Transfer-Encoding: 8bit + +Upstream-Status: Inappropriate [embedded specific] + +Signed-off-by: Andreas Müller <[email protected]> +--- + configure | 5 ++++- + 1 file changed, 4 insertions(+), 1 deletion(-) + +diff --git a/configure b/configure +index 9b68803..312c8a3 100755 +--- a/configure ++++ b/configure +@@ -15153,10 +15153,13 @@ fi + echo "configure:15154: checking for NSPR - version >= $min_nspr_version" >&5 + + no_nspr="" ++ NSPR_CONFIG="pkg-config nspr" ++ nspr_config_args= + if test "$NSPR_CONFIG" != "no"; then + NSPR_CFLAGS=`$NSPR_CONFIG $nspr_config_args --cflags` + NSPR_LIBS=`$NSPR_CONFIG $nspr_config_args --libs` +- NSPR_VERSION_STRING=`$NSPR_CONFIG $nspr_config_args --version` ++ NSPR_VERSION_STRING=`$NSPR_CONFIG $nspr_config_args --modversion` ++ echo -n "$NSPR_VERSION_STRING... " + elif test -n "${NO_NSPR_CONFIG_SYSTEM_VERSION}"; then + NSPR_CFLAGS="${NO_NSPR_CONFIG_SYSTEM_CFLAGS}" + NSPR_LIBS="${NO_NSPR_CONFIG_SYSTEM_LDFLAGS}" +-- +2.7.4 +
recipes-mozilla/firefox/firefox_45.6.0esr.bb +1 -0
@@ -40,6 +40,7 @@ SRC_URI = "https://archive.mozilla.org/pub/firefox/releases/${PV}/source/firefox file://Fix-firefox-install-dir.patch \ file://fixes/Correct-the-source-to-be-compatible-with-gcc6-by-pre.patch \ file://0001-use-pkg-config-to-find-nss.patch \ + file://0002-use-pkg-config-to-find-nspr.patch \ " SRC_URI[archive.md5sum] = "ee3cf2401a5716cebacaae5fb70d133f"
Signature · 1 line
2.7.4
PATCH v3 3/3 firefox: do not link against crmf library it is not there
In reply to Andreas Müllerand build succeeds without it
fixes:
| <...>/arm-angstrom-linux-gnueabi/gcc/arm-angstrom-linux-gnueabi/6.2.0/ld: error: cannot find -lcrmf
--- ...link-against-crmf-library-it-is-not-there.patch | 48 ++++++++++++++++++++++ recipes-mozilla/firefox/firefox_45.6.0esr.bb | 1 + 2 files changed, 49 insertions(+) create mode 100644 recipes-mozilla/firefox/firefox/0003-do-not-link-against-crmf-library-it-is-not-there.patch
recipes-mozilla/firefox/firefox/0003-do-not-link-against-crmf-library-it-is-not-there.patch new file +48 -0
@@ -0,0 +1,48 @@ +From 82862c9be8e1c87d32b639403f1f5715c8f4be59 Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Andreas=20M=C3=BCller?= <[email protected]> +Date: Thu, 15 Dec 2016 00:23:41 +0100 +Subject: [PATCH] do not link against crmf library - it is not there +MIME-Version: 1.0 +Content-Type: text/plain; charset=UTF-8 +Content-Transfer-Encoding: 8bit + +Upstream-Status: Inappropriate [embedded specific] + +Signed-off-by: Andreas Müller <[email protected]> +--- + config/external/nss/crmf/moz.build | 1 - + configure | 6 +----- + 2 files changed, 1 insertion(+), 6 deletions(-) + +diff --git a/config/external/nss/crmf/moz.build b/config/external/nss/crmf/moz.build +index 9b8005f..4bfcc81 100644 +--- a/config/external/nss/crmf/moz.build ++++ b/config/external/nss/crmf/moz.build +@@ -8,7 +8,6 @@ Library('crmf') + + if CONFIG['MOZ_NATIVE_NSS']: + OS_LIBS += [l for l in CONFIG['NSS_LIBS'] if l.startswith('-L')] +- OS_LIBS += ['-lcrmf'] + else: + USE_LIBS += [ + # The dependency on nss is not real, but is required to force the +diff --git a/configure b/configure +index 312c8a3..2f77843 100755 +--- a/configure ++++ b/configure +@@ -15689,11 +15689,7 @@ echo "configure:15633: checking for NSS - version >= $min_nss_version" >&5 + + fi + +-if test -n "$MOZ_NATIVE_NSS"; then +- NSS_LIBS="$NSS_LIBS -lcrmf" +-else +- NSS_CFLAGS="-I${DIST}/include/nss" +-fi ++ + + + echo $ac_n "checking for YASM assembler""... $ac_c" 1>&6 +-- +2.7.4 +
recipes-mozilla/firefox/firefox_45.6.0esr.bb +1 -0
@@ -41,6 +41,7 @@ SRC_URI = "https://archive.mozilla.org/pub/firefox/releases/${PV}/source/firefox file://fixes/Correct-the-source-to-be-compatible-with-gcc6-by-pre.patch \ file://0001-use-pkg-config-to-find-nss.patch \ file://0002-use-pkg-config-to-find-nspr.patch \ + file://0003-do-not-link-against-crmf-library-it-is-not-there.patch \ " SRC_URI[archive.md5sum] = "ee3cf2401a5716cebacaae5fb70d133f"
Signature · 1 line
2.7.4
Hi Andreas!
The problem was in git am command. When I ran git am, git changes files to fix whitespace errors and patch 0002-use-pkg-config-to-find-nspr.patch doesn't apply in firefox source, failing when running bitbake firefox -c patch. So, I used git am --whitespace=warn and works fine. Patches are good and firefox build succesfully.
Thanks!
Quoted 30 lines · Andreas Müller
Hope patches apply now...
Andreas Müller (3):
firefox: fix configure with oe-core master - there is no nss-config
firefox: use pkg-config to find nspr
firefox: do not link against crmf library it is not there.../firefox/0001-use-pkg-config-to-find-nss.patch | 47 +++++++++++++++++++++ .../firefox/0002-use-pkg-config-to-find-nspr.patch | 37 +++++++++++++++++ ...link-against-crmf-library-it-is-not-there.patch | 48 ++++++++++++++++++++++ recipes-mozilla/firefox/firefox_45.6.0esr.bb | 3 ++ 4 files changed, 135 insertions(+) create mode 100644 recipes-mozilla/firefox/firefox/0001-use-pkg-config- to-find-nss.patch create mode 100644 recipes-mozilla/firefox/firefox/0002-use-pkg-config- to-find-nspr.patch create mode 100644 recipes-mozilla/firefox/firefox/0003-do-not-link-against-crmf-library-it-is-not-there.patch
--
2.7.4--
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel