From patchwork Mon Jul 10 21:09:45 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Khem Raj X-Patchwork-Id: 107327 Delivered-To: patch@linaro.org Received: by 10.140.101.44 with SMTP id t41csp3949163qge; Mon, 10 Jul 2017 14:10:00 -0700 (PDT) X-Received: by 10.99.173.70 with SMTP id y6mr16969059pgo.9.1499721000641; Mon, 10 Jul 2017 14:10:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1499721000; cv=none; d=google.com; s=arc-20160816; b=qchroHjHTjZs7NVNPgIUZOj/WPqUYYzZnPCmWzSAm2QrjCURpPyN0ZDmM+Uc48Nf6+ iHZVzSIZBtQNBvqPZOKVoaRcvhXKheI7zigbbNl+xV+UL1i+GTpUt0arTdh0qQBgg0il 47NwtEPUVI7eGQsWjJjMeiDm/1iHYGgqUWaM0Zj8bpt+WKi0iVnEx6G1heIZn6IeL9iy XhjjUSuUocFYOz2L94qIt4XG2mHKb0ybUKPSn+KWA7NnGUFTlM/6FxUKVSi0Fy+ujok2 K33/hY+E06dtlW8CAslg8HCBb+Udsm8hraYNVIui9kuOQLGUgscTXCugaptjStPPDXbq hWyQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=errors-to:sender:content-transfer-encoding:mime-version :list-subscribe:list-help:list-post:list-archive:list-unsubscribe :list-id:precedence:subject:message-id:date:to:from:dkim-signature :delivered-to:arc-authentication-results; bh=644p6fKM1nYxkBQ6I3njasu8+bIlNfiNlOk+UjQjK/g=; b=rcBu0LMcLxxlCcHkXAH0WvMKdB7aQMwW3ky2hHtGDH1fd35zGuYoHRh8IQh3tmDaLL 2AmVHoqy8Ogdv/lk4y1j4bXAoggcihOkjRKkKaoEukFyhIOn/KWZ3+yNRSJXJuk+IFjo HxSKNZ8ghSZm8AJuxp9eNxaZoGmIiD0Vh4ucZ1Z8SZGRLI3kBCsooo2CXA70pCE4/lS1 o6lm7/708AzDIQjBVJWX3v+zjY8FdaXYCg40VH5XK1FPzffJl/aSUw3QUFifivKyPmoP nAHCv07LsJqCO23WmDunTsFRsCmj0fcg0D/mLigL0Rfl7X78W4GMhVwBK7IHzASijNEu ScMA== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.b=I8b+sjF5; spf=pass (google.com: best guess record for domain of openembedded-devel-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) smtp.mailfrom=openembedded-devel-bounces@lists.openembedded.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=gmail.com Return-Path: Received: from mail.openembedded.org (mail.openembedded.org. [140.211.169.62]) by mx.google.com with ESMTP id y16si8510117pfk.142.2017.07.10.14.10.00; Mon, 10 Jul 2017 14:10:00 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of openembedded-devel-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) client-ip=140.211.169.62; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.b=I8b+sjF5; spf=pass (google.com: best guess record for domain of openembedded-devel-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) smtp.mailfrom=openembedded-devel-bounces@lists.openembedded.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=gmail.com Received: from review.yoctoproject.org (localhost [127.0.0.1]) by mail.openembedded.org (Postfix) with ESMTP id 352D077E51; Mon, 10 Jul 2017 21:09:58 +0000 (UTC) X-Original-To: openembedded-devel@lists.openembedded.org Delivered-To: openembedded-devel@lists.openembedded.org Received: from mail-pg0-f68.google.com (mail-pg0-f68.google.com [74.125.83.68]) by mail.openembedded.org (Postfix) with ESMTP id C3A4377DBE for ; Mon, 10 Jul 2017 21:09:56 +0000 (UTC) Received: by mail-pg0-f68.google.com with SMTP id u36so14067742pgn.3 for ; Mon, 10 Jul 2017 14:09:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=+kDiu7orUdNxlALC8zd5jThbhMVAr+MFFr/qesIKNEw=; b=I8b+sjF5WwZxyVGFtaWwTpR/iYzaVElKa7XB+JdaqgM8Z/rBaRrrSBGoL14dUfz6y+ nFdnvvjPoNap00HTWvpxP4klG9W9nhAaI2d1DrTOyR9legNeMtXcPyvfvjL/Lsn0M+L0 tb27wVeEd1tsMFx0tV8piHM9w3hokC2Zgv3/A6ecSCQXGVYkVjcrZ9xD+31LI73JsbN8 kcM+gSe3KYnYKNMciyIDJRM/PZO2anV97ctgc4DqC88Unl7G0rysUWiQxQURSscPCgJu 62s52em0Ga+5pRK1C7qUCeYXYaZqKsXwvozd0+R9XKIE2nyfmNte5sgNiLxod0NFRcb4 7zCQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=+kDiu7orUdNxlALC8zd5jThbhMVAr+MFFr/qesIKNEw=; b=Tie+IQrueEZZyRi87RHy54I1z3sY88Vz9+Txv1+62+JTNl1aEuzMPgwDR4uTUUxlW1 M/YiMtg+DrFt+mYf7aH0ybQRGJbhhaJZi3R634y+Xk6PVgCgSALYAY2ovz/b0emqqgVk UglUYZz4b+6ZD5CSRBMqwp7cDfEgmk+TH5JQKOad6zlD5cFYQzV3cXESkeM2InUfxmWU f9Kvl0fRJHOz79QByVnCvsjOjMzIKLscRY5geXNtgqCALvobl64JxBofuNirjKkjJHLP kmPQxpO8FFdB5grgokxuWSR8ieGhLq6SHDGcRYfxedd1JY3oCMvSiGnGd/DrWi+6FKj/ rJtQ== X-Gm-Message-State: AIVw112HiT5xVd0FvsbJzZeSnVLeCb0aKDXSV3wPSNHud5gFARXDToCi vCu1qNS8/G3FExEs X-Received: by 10.99.44.8 with SMTP id s8mr16881255pgs.84.1499720997021; Mon, 10 Jul 2017 14:09:57 -0700 (PDT) Received: from localhost.localdomain ([2601:646:8882:b8c::7028]) by smtp.gmail.com with ESMTPSA id z82sm29136904pfk.1.2017.07.10.14.09.55 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 10 Jul 2017 14:09:56 -0700 (PDT) From: Khem Raj To: openembedded-devel@lists.openembedded.org Date: Mon, 10 Jul 2017 14:09:45 -0700 Message-Id: <20170710210947.24353-1-raj.khem@gmail.com> X-Mailer: git-send-email 2.13.2 Subject: [oe] [meta-browser][PATCH 1/3] firefox: Fix build with x86_64/musl X-BeenThere: openembedded-devel@lists.openembedded.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: Using the OpenEmbedded metadata to build Distributions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: openembedded-devel-bounces@lists.openembedded.org Errors-To: openembedded-devel-bounces@lists.openembedded.org Signed-off-by: Khem Raj --- .../0005-original-patch-fix_off64_t.patch.patch | 63 +++++++++++++++ .../0006-original-patch-getcontext.patch.patch | 30 ++++++++ .../0007-original-patch-basename.patch.patch | 51 ++++++++++++ ...original-patch-musl-missing-headers.patch.patch | 32 ++++++++ .../firefox/0009-original-patch-stab.h.patch.patch | 90 ++++++++++++++++++++++ .../firefox/firefox/0010-Define-N_UNDF.patch | 31 ++++++++ ...-libav-with-sysctl-on-Unix-it-s-not-used-.patch | 30 ++++++++ ...alls-siginfo_t-member-__si_fields-instead.patch | 30 ++++++++ recipes-mozilla/firefox/firefox_45.9.0esr.bb | 8 ++ 9 files changed, 365 insertions(+) create mode 100644 recipes-mozilla/firefox/firefox/0005-original-patch-fix_off64_t.patch.patch create mode 100644 recipes-mozilla/firefox/firefox/0006-original-patch-getcontext.patch.patch create mode 100644 recipes-mozilla/firefox/firefox/0007-original-patch-basename.patch.patch create mode 100644 recipes-mozilla/firefox/firefox/0008-original-patch-musl-missing-headers.patch.patch create mode 100644 recipes-mozilla/firefox/firefox/0009-original-patch-stab.h.patch.patch create mode 100644 recipes-mozilla/firefox/firefox/0010-Define-N_UNDF.patch create mode 100644 recipes-mozilla/firefox/firefox/0011-Don-t-build-libav-with-sysctl-on-Unix-it-s-not-used-.patch create mode 100644 recipes-mozilla/firefox/firefox/0012-musl-libc-calls-siginfo_t-member-__si_fields-instead.patch -- 2.13.2 -- _______________________________________________ Openembedded-devel mailing list Openembedded-devel@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-devel diff --git a/recipes-mozilla/firefox/firefox/0005-original-patch-fix_off64_t.patch.patch b/recipes-mozilla/firefox/firefox/0005-original-patch-fix_off64_t.patch.patch new file mode 100644 index 0000000..ea6ff87 --- /dev/null +++ b/recipes-mozilla/firefox/firefox/0005-original-patch-fix_off64_t.patch.patch @@ -0,0 +1,63 @@ +From b1a3d3332e74b5a1bcf2a4fb7e08f3dece08318c Mon Sep 17 00:00:00 2001 +From: OpenEmbedded +Date: Sat, 8 Jul 2017 15:57:20 -0700 +Subject: [PATCH 05/12] %% original patch: fix_off64_t.patch + +--- + toolkit/crashreporter/google-breakpad/src/common/moz.build | 5 +++-- + .../google-breakpad/src/third_party/lss/linux_syscall_support.h | 2 +- + tools/profiler/core/platform.h | 2 +- + 3 files changed, 5 insertions(+), 4 deletions(-) + +diff --git a/toolkit/crashreporter/google-breakpad/src/common/moz.build b/toolkit/crashreporter/google-breakpad/src/common/moz.build +index 6456e2864..9aec5afd3 100644 +--- a/toolkit/crashreporter/google-breakpad/src/common/moz.build ++++ b/toolkit/crashreporter/google-breakpad/src/common/moz.build +@@ -35,8 +35,8 @@ if CONFIG['OS_ARCH'] == 'Linux': + 'linux/dump_symbols.cc', + 'linux/elf_symbols_to_module.cc', + ] +- HOST_DEFINES['HAVE_A_OUT_H'] = True +- DEFINES['HAVE_A_OUT_H'] = True ++ HOST_DEFINES['HAVE_A_OUT_H'] = False ++ DEFINES['HAVE_A_OUT_H'] = False + + if CONFIG['OS_ARCH'] == 'Darwin' and CONFIG['HOST_OS_ARCH'] != 'Darwin': + HOST_CXXFLAGS += [ +@@ -98,6 +98,7 @@ if CONFIG['MOZ_WIDGET_TOOLKIT'] == 'gonk': + + if CONFIG['OS_TARGET'] == 'Android': + DEFINES['NO_STABS_SUPPORT'] = True ++DEFINES['NO_STABS_SUPPORT'] = True + + DEFINES['BP_LOGGING_INCLUDE'] = '"BreakpadLogging.h"' + +diff --git a/toolkit/crashreporter/google-breakpad/src/third_party/lss/linux_syscall_support.h b/toolkit/crashreporter/google-breakpad/src/third_party/lss/linux_syscall_support.h +index 18277490f..b67d3a92d 100644 +--- a/toolkit/crashreporter/google-breakpad/src/third_party/lss/linux_syscall_support.h ++++ b/toolkit/crashreporter/google-breakpad/src/third_party/lss/linux_syscall_support.h +@@ -2814,7 +2814,7 @@ struct kernel_statfs { + LSS_INLINE _syscall6(void*, mmap, void*, s, + size_t, l, int, p, + int, f, int, d, +- __off64_t, o) ++ off64_t, o) + + LSS_INLINE _syscall4(int, newfstatat, int, d, + const char *, p, +diff --git a/tools/profiler/core/platform.h b/tools/profiler/core/platform.h +index 5d2e25c8e..4917e5b8e 100644 +--- a/tools/profiler/core/platform.h ++++ b/tools/profiler/core/platform.h +@@ -61,7 +61,7 @@ + + // We need a definition of gettid(), but glibc doesn't provide a + // wrapper for it. +-#if defined(__GLIBC__) ++#if defined(__linux__) + #include + #include + static inline pid_t gettid() +-- +2.13.2 + diff --git a/recipes-mozilla/firefox/firefox/0006-original-patch-getcontext.patch.patch b/recipes-mozilla/firefox/firefox/0006-original-patch-getcontext.patch.patch new file mode 100644 index 0000000..c8b101e --- /dev/null +++ b/recipes-mozilla/firefox/firefox/0006-original-patch-getcontext.patch.patch @@ -0,0 +1,30 @@ +From ba081ed6eb612d72e0d9deb5cf40aa6f8ff5380a Mon Sep 17 00:00:00 2001 +From: OpenEmbedded +Date: Sat, 8 Jul 2017 15:57:22 -0700 +Subject: [PATCH 06/12] %% original patch: getcontext.patch + +--- + tools/profiler/core/platform-linux.cc | 2 ++ + 1 file changed, 2 insertions(+) + +diff --git a/tools/profiler/core/platform-linux.cc b/tools/profiler/core/platform-linux.cc +index 0df1e8f08..d8688959d 100644 +--- a/tools/profiler/core/platform-linux.cc ++++ b/tools/profiler/core/platform-linux.cc +@@ -711,11 +711,13 @@ void OS::Startup() { + void TickSample::PopulateContext(void* aContext) + { + MOZ_ASSERT(aContext); ++#if defined(__GLIBC__) + ucontext_t* pContext = reinterpret_cast(aContext); + if (!getcontext(pContext)) { + context = pContext; + SetSampleContext(this, aContext); + } ++#endif + } + + void OS::SleepMicro(int microseconds) +-- +2.13.2 + diff --git a/recipes-mozilla/firefox/firefox/0007-original-patch-basename.patch.patch b/recipes-mozilla/firefox/firefox/0007-original-patch-basename.patch.patch new file mode 100644 index 0000000..7b50fa3 --- /dev/null +++ b/recipes-mozilla/firefox/firefox/0007-original-patch-basename.patch.patch @@ -0,0 +1,51 @@ +From 66661ee35dabc01ee712c2ad23f93f999c61787d Mon Sep 17 00:00:00 2001 +From: OpenEmbedded +Date: Sat, 8 Jul 2017 15:57:25 -0700 +Subject: [PATCH 07/12] %% original patch: basename.patch + +--- + .../google-breakpad/src/common/linux/dump_symbols.cc | 8 ++++---- + tools/profiler/lul/LulElf.cpp | 8 ++++---- + 2 files changed, 8 insertions(+), 8 deletions(-) + +diff --git a/toolkit/crashreporter/google-breakpad/src/common/linux/dump_symbols.cc b/toolkit/crashreporter/google-breakpad/src/common/linux/dump_symbols.cc +index 8e379a7ec..3eecc78cf 100644 +--- a/toolkit/crashreporter/google-breakpad/src/common/linux/dump_symbols.cc ++++ b/toolkit/crashreporter/google-breakpad/src/common/linux/dump_symbols.cc +@@ -828,10 +828,10 @@ string FormatIdentifier(unsigned char identifier[16]) { + // Return the non-directory portion of FILENAME: the portion after the + // last slash, or the whole filename if there are no slashes. + string BaseFileName(const string &filename) { +- // Lots of copies! basename's behavior is less than ideal. +- char *c_filename = strdup(filename.c_str()); +- string base = basename(c_filename); +- free(c_filename); ++ // basename's behavior is less than ideal so avoid it ++ const char *c_filename = filename.c_str(); ++ const char *p = strrchr(c_filename, '/'); ++ string base = p ? p+1 : c_filename; + return base; + } + +diff --git a/tools/profiler/lul/LulElf.cpp b/tools/profiler/lul/LulElf.cpp +index a9221370d..d01dde10e 100644 +--- a/tools/profiler/lul/LulElf.cpp ++++ b/tools/profiler/lul/LulElf.cpp +@@ -483,10 +483,10 @@ string FormatIdentifier(unsigned char identifier[16]) { + // Return the non-directory portion of FILENAME: the portion after the + // last slash, or the whole filename if there are no slashes. + string BaseFileName(const string &filename) { +- // Lots of copies! basename's behavior is less than ideal. +- char *c_filename = strdup(filename.c_str()); +- string base = basename(c_filename); +- free(c_filename); ++ // basename's behavior is less than ideal so avoid it ++ const char *c_filename = filename.c_str(); ++ const char *p = strrchr(c_filename, '/'); ++ string base = p ? p+1 : c_filename; + return base; + } + +-- +2.13.2 + diff --git a/recipes-mozilla/firefox/firefox/0008-original-patch-musl-missing-headers.patch.patch b/recipes-mozilla/firefox/firefox/0008-original-patch-musl-missing-headers.patch.patch new file mode 100644 index 0000000..8198863 --- /dev/null +++ b/recipes-mozilla/firefox/firefox/0008-original-patch-musl-missing-headers.patch.patch @@ -0,0 +1,32 @@ +From 68aa10845658bd4493e35e37d636002f87b57486 Mon Sep 17 00:00:00 2001 +From: OpenEmbedded +Date: Sat, 8 Jul 2017 15:57:27 -0700 +Subject: [PATCH 08/12] %% original patch: musl-missing-headers.patch + +--- + config/system-headers | 2 -- + 1 file changed, 2 deletions(-) + +diff --git a/config/system-headers b/config/system-headers +index 403fa8d95..0fc063530 100644 +--- a/config/system-headers ++++ b/config/system-headers +@@ -420,7 +420,6 @@ execinfo.h + extras.h + fabdef.h + fcntl.h +-features.h + fibdef.h + File.h + filehdr.h +@@ -1065,7 +1064,6 @@ sys/statfs.h + sys/stat.h + sys/statvfs.h + sys/syscall.h +-sys/sysctl.h + sys/sysinfo.h + sys/sysmp.h + sys/syssgi.h +-- +2.13.2 + diff --git a/recipes-mozilla/firefox/firefox/0009-original-patch-stab.h.patch.patch b/recipes-mozilla/firefox/firefox/0009-original-patch-stab.h.patch.patch new file mode 100644 index 0000000..b21cedc --- /dev/null +++ b/recipes-mozilla/firefox/firefox/0009-original-patch-stab.h.patch.patch @@ -0,0 +1,90 @@ +From ce9582578067a34d419e4e3bb615c7485f98ca8e Mon Sep 17 00:00:00 2001 +From: OpenEmbedded +Date: Sat, 8 Jul 2017 15:57:30 -0700 +Subject: [PATCH 09/12] %% original patch: stab.h.patch + +--- + toolkit/crashreporter/google-breakpad/src/stab.h | 71 ++++++++++++++++++++++++ + 1 file changed, 71 insertions(+) + create mode 100644 toolkit/crashreporter/google-breakpad/src/stab.h + +diff --git a/toolkit/crashreporter/google-breakpad/src/stab.h b/toolkit/crashreporter/google-breakpad/src/stab.h +new file mode 100644 +index 000000000..6f70af398 +--- /dev/null ++++ b/toolkit/crashreporter/google-breakpad/src/stab.h +@@ -0,0 +1,71 @@ ++/* $OpenBSD: stab.h,v 1.3 2003/06/02 19:34:12 millert Exp $ */ ++/* $NetBSD: stab.h,v 1.4 1994/10/26 00:56:25 cgd Exp $ */ ++ ++/*- ++ * Copyright (c) 1991 The Regents of the University of California. ++ * All rights reserved. ++ * ++ * Redistribution and use in source and binary forms, with or without ++ * modification, are permitted provided that the following conditions ++ * are met: ++ * 1. Redistributions of source code must retain the above copyright ++ * notice, this list of conditions and the following disclaimer. ++ * 2. Redistributions in binary form must reproduce the above copyright ++ * notice, this list of conditions and the following disclaimer in the ++ * documentation and/or other materials provided with the distribution. ++ * 3. Neither the name of the University nor the names of its contributors ++ * may be used to endorse or promote products derived from this software ++ * without specific prior written permission. ++ * ++ * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND ++ * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE ++ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ++ * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE ++ * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL ++ * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS ++ * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) ++ * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT ++ * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY ++ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF ++ * SUCH DAMAGE. ++ * ++ * @(#)stab.h 5.2 (Berkeley) 4/4/91 ++ */ ++ ++#ifndef _STAB_H_ ++#define _STAB_H_ ++ ++/* ++ * The following are symbols used by various debuggers and by the Pascal ++ * compiler. Each of them must have one (or more) of the bits defined by ++ * the N_STAB mask set. ++ */ ++ ++#define N_GSYM 0x20 /* global symbol */ ++#define N_FNAME 0x22 /* F77 function name */ ++#define N_FUN 0x24 /* procedure name */ ++#define N_STSYM 0x26 /* data segment variable */ ++#define N_LCSYM 0x28 /* bss segment variable */ ++#define N_MAIN 0x2a /* main function name */ ++#define N_PC 0x30 /* global Pascal symbol */ ++#define N_RSYM 0x40 /* register variable */ ++#define N_SLINE 0x44 /* text segment line number */ ++#define N_DSLINE 0x46 /* data segment line number */ ++#define N_BSLINE 0x48 /* bss segment line number */ ++#define N_SSYM 0x60 /* structure/union element */ ++#define N_SO 0x64 /* main source file name */ ++#define N_LSYM 0x80 /* stack variable */ ++#define N_BINCL 0x82 /* include file beginning */ ++#define N_SOL 0x84 /* included source file name */ ++#define N_PSYM 0xa0 /* parameter variable */ ++#define N_EINCL 0xa2 /* include file end */ ++#define N_ENTRY 0xa4 /* alternate entry point */ ++#define N_LBRAC 0xc0 /* left bracket */ ++#define N_EXCL 0xc2 /* deleted include file */ ++#define N_RBRAC 0xe0 /* right bracket */ ++#define N_BCOMM 0xe2 /* begin common */ ++#define N_ECOMM 0xe4 /* end common */ ++#define N_ECOML 0xe8 /* end common (local name) */ ++#define N_LENG 0xfe /* length of preceding entry */ ++ ++#endif /* !_STAB_H_ */ +-- +2.13.2 + diff --git a/recipes-mozilla/firefox/firefox/0010-Define-N_UNDF.patch b/recipes-mozilla/firefox/firefox/0010-Define-N_UNDF.patch new file mode 100644 index 0000000..7baae8f --- /dev/null +++ b/recipes-mozilla/firefox/firefox/0010-Define-N_UNDF.patch @@ -0,0 +1,31 @@ +From 86544a22d8f241b3ba2545f470831edc019c6638 Mon Sep 17 00:00:00 2001 +From: Khem Raj +Date: Sat, 8 Jul 2017 16:08:43 -0700 +Subject: [PATCH 10/12] Define N_UNDF + +Fixes +error: 'N_UNDF' was not declared in this scope + +Signed-off-by: Khem Raj +--- + toolkit/crashreporter/google-breakpad/src/stab.h | 4 ++++ + 1 file changed, 4 insertions(+) + +diff --git a/toolkit/crashreporter/google-breakpad/src/stab.h b/toolkit/crashreporter/google-breakpad/src/stab.h +index 6f70af398..8fb2ffc97 100644 +--- a/toolkit/crashreporter/google-breakpad/src/stab.h ++++ b/toolkit/crashreporter/google-breakpad/src/stab.h +@@ -41,6 +41,10 @@ + * the N_STAB mask set. + */ + ++#if !defined (N_UNDF) ++#define N_UNDF 0 ++#endif ++ + #define N_GSYM 0x20 /* global symbol */ + #define N_FNAME 0x22 /* F77 function name */ + #define N_FUN 0x24 /* procedure name */ +-- +2.13.2 + diff --git a/recipes-mozilla/firefox/firefox/0011-Don-t-build-libav-with-sysctl-on-Unix-it-s-not-used-.patch b/recipes-mozilla/firefox/firefox/0011-Don-t-build-libav-with-sysctl-on-Unix-it-s-not-used-.patch new file mode 100644 index 0000000..4afb804 --- /dev/null +++ b/recipes-mozilla/firefox/firefox/0011-Don-t-build-libav-with-sysctl-on-Unix-it-s-not-used-.patch @@ -0,0 +1,30 @@ +From b31468e975212556f1d8c7d5d2cf8f3313496803 Mon Sep 17 00:00:00 2001 +From: Khem Raj +Date: Sat, 8 Jul 2017 16:27:06 -0700 +Subject: [PATCH 11/12] Don't build libav with sysctl on Unix (it's not used + anyway) + +backported from +https://hg.mozilla.org/integration/mozilla-inbound/rev/081c52bae5e7 + +Signed-off-by: Khem Raj +--- + media/libav/config_unix.h | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/media/libav/config_unix.h b/media/libav/config_unix.h +index 3921293a0..b3c44d62b 100644 +--- a/media/libav/config_unix.h ++++ b/media/libav/config_unix.h +@@ -219,7 +219,7 @@ + #define HAVE_STRERROR_R 1 + #define HAVE_STRPTIME 1 + #define HAVE_SYSCONF 1 +-#define HAVE_SYSCTL 1 ++#define HAVE_SYSCTL 0 + #define HAVE_USLEEP 1 + #define HAVE_VIRTUALALLOC 0 + #define HAVE_PTHREADS 0 +-- +2.13.2 + diff --git a/recipes-mozilla/firefox/firefox/0012-musl-libc-calls-siginfo_t-member-__si_fields-instead.patch b/recipes-mozilla/firefox/firefox/0012-musl-libc-calls-siginfo_t-member-__si_fields-instead.patch new file mode 100644 index 0000000..9b9af86 --- /dev/null +++ b/recipes-mozilla/firefox/firefox/0012-musl-libc-calls-siginfo_t-member-__si_fields-instead.patch @@ -0,0 +1,30 @@ +From 92e6fdcc84c69ae25e9d4ed9e1e9c3203afeeaea Mon Sep 17 00:00:00 2001 +From: Khem Raj +Date: Sat, 8 Jul 2017 16:37:03 -0700 +Subject: [PATCH 12/12] musl libc calls siginfo_t member __si_fields instead of + _sifields + +Signed-off-by: Khem Raj +--- + security/sandbox/chromium/sandbox/linux/seccomp-bpf/trap.cc | 5 +++++ + 1 file changed, 5 insertions(+) + +diff --git a/security/sandbox/chromium/sandbox/linux/seccomp-bpf/trap.cc b/security/sandbox/chromium/sandbox/linux/seccomp-bpf/trap.cc +index dce6b7b85..5b2e2cc02 100644 +--- a/security/sandbox/chromium/sandbox/linux/seccomp-bpf/trap.cc ++++ b/security/sandbox/chromium/sandbox/linux/seccomp-bpf/trap.cc +@@ -23,6 +23,11 @@ + #include "sandbox/linux/services/android_ucontext.h" + #endif + ++// musl libc defines siginfo_t __si_fields instead of _sifields ++#if defined(OS_LINUX) && !defined(__GLIBC__) ++#define _sifields __si_fields ++#endif ++ + namespace { + + struct arch_sigsys { +-- +2.13.2 + diff --git a/recipes-mozilla/firefox/firefox_45.9.0esr.bb b/recipes-mozilla/firefox/firefox_45.9.0esr.bb index 5087df0..55b2f3c 100644 --- a/recipes-mozilla/firefox/firefox_45.9.0esr.bb +++ b/recipes-mozilla/firefox/firefox_45.9.0esr.bb @@ -50,6 +50,14 @@ SRC_URI_append_libc-musl = "\ file://0002-disable-hunspell-hooks.patch \ file://0003-define-TEMP_FAILURE_RETRY.patch \ file://0004-Fix-mozilla-arm-builds.patch \ + file://0005-original-patch-fix_off64_t.patch.patch \ + file://0006-original-patch-getcontext.patch.patch \ + file://0007-original-patch-basename.patch.patch \ + file://0008-original-patch-musl-missing-headers.patch.patch \ + file://0009-original-patch-stab.h.patch.patch \ + file://0010-Define-N_UNDF.patch \ + file://0011-Don-t-build-libav-with-sysctl-on-Unix-it-s-not-used-.patch \ + file://0012-musl-libc-calls-siginfo_t-member-__si_fields-instead.patch \ " SRC_URI[archive.md5sum] = "f4d83c5150fc5085db20d71862497eb8" From patchwork Mon Jul 10 21:09:46 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Khem Raj X-Patchwork-Id: 107328 Delivered-To: patch@linaro.org Received: by 10.140.101.44 with SMTP id t41csp3949240qge; Mon, 10 Jul 2017 14:10:05 -0700 (PDT) X-Received: by 10.84.129.12 with SMTP id 12mr20286438plb.242.1499721005586; Mon, 10 Jul 2017 14:10:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1499721005; cv=none; d=google.com; s=arc-20160816; b=hvaZtySHunJWdLpc3DMMxI2MwwvqNmb2ywjl2EoNEx1kN0wCKhgnUghTxY2plQBttk iPFzyfl/ElkdHHPI6EYRmDYMdg/wtw0rn9s+V6Bx2kEiYXYWlX+uIKCVgVAowNzVJhLb gugStRWZhY6srQuQ6dbop3NgdB6OGnXzWMZBxdN3npSzxvVjofUS3etUtmnXW7JceDKU srsOkWBX8ytmQOwi5M3760XKfQXgfdxF5Iq34aEqUYoB1/SjuqittcewJeTFzxrMQwyV uZn5CPTanlmBs7nNTgG8ISRIUf5CqjAGIcvFIRHWTSWV7FRGVT+b8oQyqFpCCewW5J4I Au2g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=errors-to:sender:content-transfer-encoding:mime-version :list-subscribe:list-help:list-post:list-archive:list-unsubscribe :list-id:precedence:subject:references:in-reply-to:message-id:date :to:from:dkim-signature:delivered-to:arc-authentication-results; bh=JwU9sORlv/TXq0WI7sA5gDHC7UEw+XBRuO2GTcLMPvs=; b=wDvhmQxgzMQ3ZH+sOBeavN9mpMBdf0g8miXH5awpL6HpMdfK9UqTfULa2lcwUfp6/O HtLiJFJrxjhO62KSZ19VDkwb3jKXPpyLWXrY4QT2Jaqa705R3vcKhvX7ORoAgYxmJg74 p33lEkxyorHkC+H0C9MPIGLIgTodZwD8RJBhUBY8g5NsuCV/0KCA6s8f9HDMPREGZ+hI Xc8FaNn7aJkgZFp7Ihz+S25xOF/afIY5kP2L1d4dRunD34xX9uwqMHKMayninE569nki 9+QTSpDsnM7wMrCKZoxhanEK81mOcHsuEtdL98uZ37HzXALAIq4f4TtLjhohfVj9G5lQ ul8Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.b=roUTVGVc; spf=pass (google.com: best guess record for domain of openembedded-devel-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) smtp.mailfrom=openembedded-devel-bounces@lists.openembedded.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=gmail.com Return-Path: Received: from mail.openembedded.org (mail.openembedded.org. [140.211.169.62]) by mx.google.com with ESMTP id e9si9575030pln.373.2017.07.10.14.10.05; Mon, 10 Jul 2017 14:10:05 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of openembedded-devel-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) client-ip=140.211.169.62; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.b=roUTVGVc; spf=pass (google.com: best guess record for domain of openembedded-devel-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) smtp.mailfrom=openembedded-devel-bounces@lists.openembedded.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=gmail.com Received: from review.yoctoproject.org (localhost [127.0.0.1]) by mail.openembedded.org (Postfix) with ESMTP id 9BE7577E82; Mon, 10 Jul 2017 21:09:59 +0000 (UTC) X-Original-To: openembedded-devel@lists.openembedded.org Delivered-To: openembedded-devel@lists.openembedded.org Received: from mail-pf0-f196.google.com (mail-pf0-f196.google.com [209.85.192.196]) by mail.openembedded.org (Postfix) with ESMTP id 5F1A677DBE for ; Mon, 10 Jul 2017 21:09:57 +0000 (UTC) Received: by mail-pf0-f196.google.com with SMTP id q85so16030198pfq.2 for ; Mon, 10 Jul 2017 14:09:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=WCxR/WGMxIvXRIt/7Sg+XI+Anba5lfqLlyv3UzPCScQ=; b=roUTVGVcWehtJczLlmswNtLsofKPV9jRT/K7FWNCix4iTkcGGU0ypcAwSbjdBQ/erx DJY9Vt9Kh5Vy59eLnUXJC1zG2adsgKrA5x6BR/TMRt7DWtBiscNzF2zWDhElTIK11roq JluELPD9cAYk/fMJHqy3gcVGoYnrtoG8fRNX2HycJAkMW6kKoL/5kR9UcAPEbS2d9IjH x9hZhrAUmtctHJxiLT/XF6id1OAMx89uADJIVSVRoMhTaipR6Hihm5UWguiCoNu6sPCG xchXityWsRhr5+CHU12iORW09kfT/6qfNNPJIK9/ua4bxUJkXaNRU2yl6ZqIfTGAa6j1 h8xw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=WCxR/WGMxIvXRIt/7Sg+XI+Anba5lfqLlyv3UzPCScQ=; b=J7DlkpashOCoCAqiQQJLIa/hheym3whX3uo05pLMXV7apBDqpG9aelScHTESfWNpqt WUkL+onMSW2rl41fF/a7qqopsiG1wV6TJPx/qogx6Akpx62fbDVnJVxNIX3gqhp7Do5Z kC+2gFezJxGn39oiszfawxGVtr874kqcYKwNx+T3szoihgLYYBtTnhaN7aVdWrUaXJBL 4nUcYVckpieM8XvgBbGoqcoDfquMmKq4N9ufr/rStnfdJ5zXmwC9oNMjBrwDaZG/pKds 8TQBZ4ta46Njb+tRyS86kBCE8C3uhuf9gBoR7z5F1ze7R/fcESWuF6v9hQXoZfRUMFG4 LxUw== X-Gm-Message-State: AIVw110lLhIkUwsKmJBWmgffF5pAjQ8Bpt8zJOgC19j2DM1GzVyAVvzB CtJWM8gzUEh1f7Ry X-Received: by 10.101.70.198 with SMTP id n6mr7966025pgr.249.1499720998226; Mon, 10 Jul 2017 14:09:58 -0700 (PDT) Received: from localhost.localdomain ([2601:646:8882:b8c::7028]) by smtp.gmail.com with ESMTPSA id z82sm29136904pfk.1.2017.07.10.14.09.57 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 10 Jul 2017 14:09:57 -0700 (PDT) From: Khem Raj To: openembedded-devel@lists.openembedded.org Date: Mon, 10 Jul 2017 14:09:46 -0700 Message-Id: <20170710210947.24353-2-raj.khem@gmail.com> X-Mailer: git-send-email 2.13.2 In-Reply-To: <20170710210947.24353-1-raj.khem@gmail.com> References: <20170710210947.24353-1-raj.khem@gmail.com> Subject: [oe] [meta-browser][PATCH 2/3] chromium: Fix build on musl/x86_64 X-BeenThere: openembedded-devel@lists.openembedded.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: Using the OpenEmbedded metadata to build Distributions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: openembedded-devel-bounces@lists.openembedded.org Errors-To: openembedded-devel-bounces@lists.openembedded.org Signed-off-by: Khem Raj --- recipes-browser/chromium/chromium-browser.inc | 2 + ...017-Use-_fpstate-instead-of-_libc_fpstate.patch | 65 ++++++++++++++++++++++ ...tcmalloc-Use-off64_t-insread-of-__off64_t.patch | 26 +++++++++ 3 files changed, 93 insertions(+) create mode 100644 recipes-browser/chromium/chromium/0017-Use-_fpstate-instead-of-_libc_fpstate.patch create mode 100644 recipes-browser/chromium/chromium/0018-tcmalloc-Use-off64_t-insread-of-__off64_t.patch -- 2.13.2 -- _______________________________________________ Openembedded-devel mailing list Openembedded-devel@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-devel diff --git a/recipes-browser/chromium/chromium-browser.inc b/recipes-browser/chromium/chromium-browser.inc index a1e22d6..094a3d3 100644 --- a/recipes-browser/chromium/chromium-browser.inc +++ b/recipes-browser/chromium/chromium-browser.inc @@ -49,6 +49,8 @@ SRC_URI_append_libc-musl = "\ file://0014-link-with-libexecinfo-on-musl.patch \ file://0015-metrics-Keep-GNU-extentions-effective-only-when-usin.patch \ file://0016-getcontext-API-is-unimplemented-in-musl.patch \ + file://0017-Use-_fpstate-instead-of-_libc_fpstate.patch \ + file://0018-tcmalloc-Use-off64_t-insread-of-__off64_t.patch \ " S = "${WORKDIR}/chromium-${PV}" diff --git a/recipes-browser/chromium/chromium/0017-Use-_fpstate-instead-of-_libc_fpstate.patch b/recipes-browser/chromium/chromium/0017-Use-_fpstate-instead-of-_libc_fpstate.patch new file mode 100644 index 0000000..d4f3f49 --- /dev/null +++ b/recipes-browser/chromium/chromium/0017-Use-_fpstate-instead-of-_libc_fpstate.patch @@ -0,0 +1,65 @@ +From ccfd39487d142eafd882a5f35664a1b6cf589f13 Mon Sep 17 00:00:00 2001 +From: Khem Raj +Date: Sat, 8 Jul 2017 09:07:02 -0700 +Subject: [PATCH 1/2] Use _fpstate instead of _libc_fpstate + +_libc_fpstate is not available on musl + +Signed-off-by: Khem Raj +--- + breakpad/src/client/linux/dump_writer_common/ucontext_reader.cc | 4 ++-- + breakpad/src/client/linux/dump_writer_common/ucontext_reader.h | 2 +- + breakpad/src/client/linux/minidump_writer/minidump_writer.h | 2 +- + 3 files changed, 4 insertions(+), 4 deletions(-) + +diff --git a/breakpad/src/client/linux/dump_writer_common/ucontext_reader.cc b/breakpad/src/client/linux/dump_writer_common/ucontext_reader.cc +index 93b4d9f85..57d5b377d 100644 +--- a/breakpad/src/client/linux/dump_writer_common/ucontext_reader.cc ++++ b/breakpad/src/client/linux/dump_writer_common/ucontext_reader.cc +@@ -49,7 +49,7 @@ uintptr_t UContextReader::GetInstructionPointer(const ucontext_t* uc) { + } + + void UContextReader::FillCPUContext(RawContextCPU *out, const ucontext_t *uc, +- const struct _libc_fpstate* fp) { ++ const struct _fpstate* fp) { + const greg_t* regs = uc->uc_mcontext.gregs; + + out->context_flags = MD_CONTEXT_X86_FULL | +@@ -97,7 +97,7 @@ uintptr_t UContextReader::GetInstructionPointer(const ucontext_t* uc) { + } + + void UContextReader::FillCPUContext(RawContextCPU *out, const ucontext_t *uc, +- const struct _libc_fpstate* fpregs) { ++ const struct _fpstate* fpregs) { + const greg_t* regs = uc->uc_mcontext.gregs; + + out->context_flags = MD_CONTEXT_AMD64_FULL; +diff --git a/breakpad/src/client/linux/dump_writer_common/ucontext_reader.h b/breakpad/src/client/linux/dump_writer_common/ucontext_reader.h +index 2369a9ad3..658fddbde 100644 +--- a/breakpad/src/client/linux/dump_writer_common/ucontext_reader.h ++++ b/breakpad/src/client/linux/dump_writer_common/ucontext_reader.h +@@ -50,7 +50,7 @@ struct UContextReader { + // info: the collection of register structures. + #if defined(__i386__) || defined(__x86_64) + static void FillCPUContext(RawContextCPU *out, const ucontext_t *uc, +- const struct _libc_fpstate* fp); ++ const struct _fpstate* fp); + #elif defined(__aarch64__) + static void FillCPUContext(RawContextCPU *out, const ucontext_t *uc, + const struct fpsimd_context* fpregs); +diff --git a/breakpad/src/client/linux/minidump_writer/minidump_writer.h b/breakpad/src/client/linux/minidump_writer/minidump_writer.h +index d13fb120b..7945ac5b2 100644 +--- a/breakpad/src/client/linux/minidump_writer/minidump_writer.h ++++ b/breakpad/src/client/linux/minidump_writer/minidump_writer.h +@@ -48,7 +48,7 @@ class ExceptionHandler; + #if defined(__aarch64__) + typedef struct fpsimd_context fpstate_t; + #elif !defined(__ARM_EABI__) && !defined(__mips__) +-typedef struct _libc_fpstate fpstate_t; ++typedef struct _fpstate fpstate_t; + #endif + + // These entries store a list of memory regions that the client wants included +-- +2.13.2 + diff --git a/recipes-browser/chromium/chromium/0018-tcmalloc-Use-off64_t-insread-of-__off64_t.patch b/recipes-browser/chromium/chromium/0018-tcmalloc-Use-off64_t-insread-of-__off64_t.patch new file mode 100644 index 0000000..2ef5433 --- /dev/null +++ b/recipes-browser/chromium/chromium/0018-tcmalloc-Use-off64_t-insread-of-__off64_t.patch @@ -0,0 +1,26 @@ +From 1a468dd5239ebdf013d9ffb3a2d181d0434b4c6c Mon Sep 17 00:00:00 2001 +From: Khem Raj +Date: Sat, 8 Jul 2017 09:08:23 -0700 +Subject: [PATCH 2/2] tcmalloc: Use off64_t insread of __off64_t + +Signed-off-by: Khem Raj +--- + third_party/tcmalloc/chromium/src/base/linux_syscall_support.h | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/third_party/tcmalloc/chromium/src/base/linux_syscall_support.h b/third_party/tcmalloc/chromium/src/base/linux_syscall_support.h +index b53dd46c5..58da4d19d 100644 +--- a/third_party/tcmalloc/chromium/src/base/linux_syscall_support.h ++++ b/third_party/tcmalloc/chromium/src/base/linux_syscall_support.h +@@ -1930,7 +1930,7 @@ typedef unsigned long int ulong; + #if defined(__x86_64__) + /* Need to make sure __off64_t isn't truncated to 32-bits under x32. */ + LSS_INLINE void* LSS_NAME(mmap)(void *s, size_t l, int p, int f, int d, +- __off64_t o) { ++ off64_t o) { + LSS_BODY(6, void*, mmap, LSS_SYSCALL_ARG(s), LSS_SYSCALL_ARG(l), + LSS_SYSCALL_ARG(p), LSS_SYSCALL_ARG(f), + LSS_SYSCALL_ARG(d), (uint64_t)(o)); +-- +2.13.2 + From patchwork Mon Jul 10 21:09:47 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Khem Raj X-Patchwork-Id: 107329 Delivered-To: patch@linaro.org Received: by 10.140.101.44 with SMTP id t41csp3949362qge; Mon, 10 Jul 2017 14:10:13 -0700 (PDT) X-Received: by 10.84.215.150 with SMTP id l22mr20564943pli.29.1499721013162; Mon, 10 Jul 2017 14:10:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1499721013; cv=none; d=google.com; s=arc-20160816; b=k986OEWGBWNMeiImSGrF55qMqy0T2m8QPdqE3b9Mpycw3rbhER+liuwHEiZsUELu1b p2tpXl2yaD99sdHLmI58o6stdKu+29kRxGvQDQ/lhXCF4ygXLoyJgAhewZ0cFxV6dy43 JN2Fd/Spp9u8sVtikUxMExJImdCB2ZquKCa9iDQccgvqtKNUVC/vQAmQYZ4sn9bM+Dt6 plcVOjygVAWlNWd7N9v6C6/IuDm5Y9BlzRy9alHCY9towU1UUfaLu1F3Ow624hzVav4N T/jamrxkyoenLdHHODi6caobkqBMpiKaAcHlzAfbuiSc+b68r7LMbiTzhQIZPKxHbhwh yTZg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=errors-to:sender:content-transfer-encoding:mime-version :list-subscribe:list-help:list-post:list-archive:list-unsubscribe :list-id:precedence:subject:references:in-reply-to:message-id:date :to:from:dkim-signature:delivered-to:arc-authentication-results; bh=YJbIG037A6ZLafISFD1DsFJaB9NLSFuNH/WpF4vr2RM=; b=rEtVlxlZWdvOwWKzLcgRaEq/aSXWC9HyOWFvCNQjra7VP1S8BPGU/p5poJJCkzCadE mE9J6UQCaH1+uBdsukbTnUaaweFUSvmKF5V+zIdchQ4s71NlfO0KlgQDwR5aZvy11tGd 1mDUUnplOHpbCBRASzQXr/wESY54FL7mt6YsQZYezfKWbJdodVAgZCCsqG1BvXlvGf4R tlfB0FAzrtpmPxB1vB66aEQt4O7hx535oiK21yhi6QCHLtbn0CZNiui5/tZUmJ54smnx hhyDKw1BjKKju1Am0NRLYc+JZhbD2JCYuYZOG40B1wjrvb2J51hDz0V43/pcZFlZeSiB QI5w== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.b=kw6Ywhj6; spf=pass (google.com: best guess record for domain of openembedded-devel-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) smtp.mailfrom=openembedded-devel-bounces@lists.openembedded.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=gmail.com Return-Path: Received: from mail.openembedded.org (mail.openembedded.org. [140.211.169.62]) by mx.google.com with ESMTP id n5si8889244pgk.175.2017.07.10.14.10.12; Mon, 10 Jul 2017 14:10:13 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of openembedded-devel-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) client-ip=140.211.169.62; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.b=kw6Ywhj6; spf=pass (google.com: best guess record for domain of openembedded-devel-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) smtp.mailfrom=openembedded-devel-bounces@lists.openembedded.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=gmail.com Received: from review.yoctoproject.org (localhost [127.0.0.1]) by mail.openembedded.org (Postfix) with ESMTP id B391F77E13; Mon, 10 Jul 2017 21:10:08 +0000 (UTC) X-Original-To: openembedded-devel@lists.openembedded.org Delivered-To: openembedded-devel@lists.openembedded.org Received: from mail-pf0-f180.google.com (mail-pf0-f180.google.com [209.85.192.180]) by mail.openembedded.org (Postfix) with ESMTP id A66BB77E44 for ; Mon, 10 Jul 2017 21:09:58 +0000 (UTC) Received: by mail-pf0-f180.google.com with SMTP id e7so55858394pfk.0 for ; Mon, 10 Jul 2017 14:10:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=aNX69GBy8MYvbpHpCmt/bhNmn2wfCyfECB2CsruHUk0=; b=kw6Ywhj61er0J8zwJ/cFgZMxmxLYoxbWnlfAKbrwdlqdueAcqyFeeG6lqsgwezzISH J2Uv2Z1zDhwMj/czNj4PAIj4fv5A0k6nR3cGMa+QKdhjQ2r7fJbq3zyo3PUg1PAGhF3a SBvxLmWzXL3k9bZyzWZ2Lmv6RsPyLCqj0xigJaMTQIm2nCTMTKrQemXFVMl1HArQSnrB aPv1kh81mCYr8b9j9FywDRhT6PlxOtRqn5TpZTE8jsSAvJB6pLRlKq5QGk4a4qUZMdmv hVH7ARqjV7ARiKAMbmsYx5kAhmolfQ4ENbzJuMW7enFa/8WndBNyyitNlLkt1j2tSsEN QE5Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=aNX69GBy8MYvbpHpCmt/bhNmn2wfCyfECB2CsruHUk0=; b=WPbskZoxxTJZ14vkOQUr35m4CEDFVLUxgVyWUW8G29P+6vIwMxoIaQHoqhPa83gIpi GZ6uwr0rq1GAhRyAn4+yaRP6/lnkGu0iwBVrnPxE0D/e6s78Js3jzJUKKdsb5QpawxCB xYAOzLPtiult01H/DCti4JyroJsq3xIpmvXcnysrODv57MDR5AFrMF/dwK4E6oVbDzyX MfAUVHSPEfSAD4+nvHaClzWx16lzost0vMIH3uk2If2OfUsa/p8+tt7m8mZUSlCMT/Dn uy2bDcKApa/0sFsnC3v/Q4Y4JKoopwYqqw+NAfqsDJ/EdjV2La9SLglR4plq77PCrC/j 5wbA== X-Gm-Message-State: AIVw113JLbKtaWNi5Q6t7oa1ddt9mjwyT/3wkOMFmj6crSeyZ120Uv4G TqNn8pEQ4FBoajqU X-Received: by 10.99.117.68 with SMTP id f4mr16623328pgn.56.1499720999591; Mon, 10 Jul 2017 14:09:59 -0700 (PDT) Received: from localhost.localdomain ([2601:646:8882:b8c::7028]) by smtp.gmail.com with ESMTPSA id z82sm29136904pfk.1.2017.07.10.14.09.58 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 10 Jul 2017 14:09:58 -0700 (PDT) From: Khem Raj To: openembedded-devel@lists.openembedded.org Date: Mon, 10 Jul 2017 14:09:47 -0700 Message-Id: <20170710210947.24353-3-raj.khem@gmail.com> X-Mailer: git-send-email 2.13.2 In-Reply-To: <20170710210947.24353-1-raj.khem@gmail.com> References: <20170710210947.24353-1-raj.khem@gmail.com> Subject: [oe] [meta-browser][PATCH 3/3] firefox: Fix host library contamination on x86_64 X-BeenThere: openembedded-devel@lists.openembedded.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: Using the OpenEmbedded metadata to build Distributions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: openembedded-devel-bounces@lists.openembedded.org Errors-To: openembedded-devel-bounces@lists.openembedded.org On x86_64 build system starts to poke into build system libraries and its especially seen with glibc 2.26 since it has deprecated certain symbols which are not available in libc e.g. /usr/lib/libresolv.so.2: undefined reference to `__res_maybe_init@GLIBC_PRIVATE' collect2: error: ld returned 1 exit status So its linking to libresolv.so from host system is clear due to this error because its then using libc.so from cross build which is glibc 2.26 and doesnt have that symbol. Explicilty specify -lresolv on linker cmdline for components where its needed. Signed-off-by: Khem Raj --- .../firefox/firefox/add-libresolv.patch | 40 ++++++++++++++++++++++ recipes-mozilla/firefox/firefox_45.9.0esr.bb | 1 + 2 files changed, 41 insertions(+) create mode 100644 recipes-mozilla/firefox/firefox/add-libresolv.patch -- 2.13.2 -- _______________________________________________ Openembedded-devel mailing list Openembedded-devel@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-devel diff --git a/recipes-mozilla/firefox/firefox/add-libresolv.patch b/recipes-mozilla/firefox/firefox/add-libresolv.patch new file mode 100644 index 0000000..4bd0131 --- /dev/null +++ b/recipes-mozilla/firefox/firefox/add-libresolv.patch @@ -0,0 +1,40 @@ +Index: firefox-45.9.0esr/webapprt/gtk/moz.build +=================================================================== +--- firefox-45.9.0esr.orig/webapprt/gtk/moz.build ++++ firefox-45.9.0esr/webapprt/gtk/moz.build +@@ -24,3 +24,7 @@ DISABLE_STL_WRAPPING = True + CXXFLAGS += CONFIG['TK_CFLAGS'] + + OS_LIBS += CONFIG['TK_LIBS'] ++OS_LIBS += [ ++ 'resolv', ++] ++ +Index: firefox-45.9.0esr/ipc/app/moz.build +=================================================================== +--- firefox-45.9.0esr.orig/ipc/app/moz.build ++++ firefox-45.9.0esr/ipc/app/moz.build +@@ -129,6 +129,9 @@ if CONFIG['MOZ_WIDGET_TOOLKIT'] == 'gonk + 'binder', + 'utils', + ] ++OS_LIBS += [ ++ 'resolv', ++] + + if CONFIG['GNU_CXX']: + CXXFLAGS += ['-Wshadow'] +Index: firefox-45.9.0esr/js/xpconnect/shell/moz.build +=================================================================== +--- firefox-45.9.0esr.orig/js/xpconnect/shell/moz.build ++++ firefox-45.9.0esr/js/xpconnect/shell/moz.build +@@ -35,6 +35,9 @@ if CONFIG['OS_ARCH'] == 'WINNT': + CFLAGS += CONFIG['TK_CFLAGS'] + CXXFLAGS += CONFIG['TK_CFLAGS'] + OS_LIBS += CONFIG['TK_LIBS'] ++OS_LIBS += [ ++ 'resolv', ++] + + if CONFIG['GNU_CXX']: + CXXFLAGS += ['-Wshadow'] diff --git a/recipes-mozilla/firefox/firefox_45.9.0esr.bb b/recipes-mozilla/firefox/firefox_45.9.0esr.bb index 55b2f3c..3f2fbe0 100644 --- a/recipes-mozilla/firefox/firefox_45.9.0esr.bb +++ b/recipes-mozilla/firefox/firefox_45.9.0esr.bb @@ -44,6 +44,7 @@ SRC_URI = "https://archive.mozilla.org/pub/firefox/releases/${PV}/source/firefox file://0003-do-not-link-against-crmf-library-it-is-not-there.patch \ file://gcc7.patch \ file://remove_AC_PATH_XTRA.patch \ + file://add-libresolv.patch \ " SRC_URI_append_libc-musl = "\ file://0001-mallinfo-is-glibc-specific-API.patch \