From patchwork Fri Aug 24 20:35:03 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Khem Raj X-Patchwork-Id: 145100 Delivered-To: patch@linaro.org Received: by 2002:a2e:1648:0:0:0:0:0 with SMTP id 8-v6csp1648838ljw; Fri, 24 Aug 2018 13:35:18 -0700 (PDT) X-Google-Smtp-Source: ANB0VdY7ds62HHDg7C/vswg8Fu0MXSRvE0XBsA9vxdtG1k8aPYFYgK9JHd9Sag/uSwBeITkpMnwe X-Received: by 2002:a63:7058:: with SMTP id a24-v6mr3055962pgn.206.1535142918255; Fri, 24 Aug 2018 13:35:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1535142918; cv=none; d=google.com; s=arc-20160816; b=J7pfMAzgRDYNEnQRWgUtOBjY0gkpGVzhLXXu8F+XW1z26xSGyZ76bkYCLA2ONCBi7w AoK12IwT06lXspDyI0NecFzKSMU1LRNYf3P9TZMdH7evLBLl2TCUjv86dvfvKOpzlCNi gD4ENxF4IFwoiNZKbr8Nm5A08PkTbz4jAMOZHgG2gY6iv8IATM5HF5dapcwAjYZjRtQB DVZ4R0kruqLGKQ8HXGrRwpSmo+pcknq8MGhSjPISOKu5tAVmx9m7jn2UV68JvqqouA7o +QMbJZ8wjKddAgM03N05DEJCsdOInZNi/m/57BWhZDcQdYPY55lLwZhBqZrEtlNz9i6J 9Whw== 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=p0kNVwf+DcvPYH5uPiv/So+Iltn9Yveo8LrNtMFqck0=; b=pea0VDEIBwfymhu95ZlOfNwzr81Vj2Atex1RCqfsoQ400BfQNcOqkIdKJl0ukutJDP YERX+8nnYa9KAIcHdFJ+UhUgjEDfR0DsHhUlmSPo6DC44iyPXS5b0u8DJuucrPsVTdoz P5vEnkjCMJaDi8cJDCTOlZk5ybV06u+CyARg8sVZG+JiRQ/+ari9z5fCwE6aiTk+8/7N rHTyoWmdoAO10cQxRQm3NQuwR5dzV7dae1ypW28nRqxcid/569L/jjRaZnzHaPEXyXuC sgURD7cz1w2hyLErhbhnfzLpbktiy8b37gfK8a9vbDYUwkju1OoYKofPYgPU9f2hkMOn rDxg== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.s=20161025 header.b="gMZpuaB/"; 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=QUARANTINE 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 14-v6si7633239pgc.179.2018.08.24.13.35.17; Fri, 24 Aug 2018 13:35:18 -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.s=20161025 header.b="gMZpuaB/"; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: from layers.openembedded.org (localhost [127.0.0.1]) by mail.openembedded.org (Postfix) with ESMTP id 421B474623; Fri, 24 Aug 2018 20:35:13 +0000 (UTC) X-Original-To: openembedded-devel@lists.openembedded.org Delivered-To: openembedded-devel@lists.openembedded.org Received: from mail-pg1-f195.google.com (mail-pg1-f195.google.com [209.85.215.195]) by mail.openembedded.org (Postfix) with ESMTP id 8FE34745F2 for ; Fri, 24 Aug 2018 20:35:12 +0000 (UTC) Received: by mail-pg1-f195.google.com with SMTP id b129-v6so4773818pga.13 for ; Fri, 24 Aug 2018 13:35:13 -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=JSIhKxmNq3YmwwhUsiZh9/tcNKyNGEgO97Pe/a8X8SU=; b=gMZpuaB/tcb39OHpD1Mj2PFHaJkLxsn5zDAyD98n+TNOMjd7rv8ONrKAgCpEg0g1kO g9KY+9oygrDVBuy6SP2VvvOd2baHQWjYr+o5VcPLMFCrmVL31QYYurXkOHfyVffSf3ds xmU0ZYoG5oIYbmvkdGtVrBvLfbZTTrQgawbAxOEaAwpWlyickNTF5XgmzXCFzM4bedPf kzXmVtdz5MDihcA8DpFamyosWJliYoMi+aKY7GqWKEbHPVLkhQoDsTrpsXCvTWWBLKhq 4uxga+v52lGhB44bhxLtC1Q1l+jnmQeysjp1TE8IbhLmgIQOzHqlkLFeSoChBrhaJ+ip xwFg== 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=JSIhKxmNq3YmwwhUsiZh9/tcNKyNGEgO97Pe/a8X8SU=; b=X7Q7BQncO0PAvm5McAqs+ARsl8blU/JPzH/N1UFWmE26XYA9R/r+c2cKfQqlueZCWo koU8v+IL9/02hEaWtpuk+aKDyrBZjy73QEsamLUP9bScSwjpZ2mW9xetEd7ahaPTjnCp 8w244ByocGYWH2LjhVv97MCY1ZrKdBg04ipozlS3uiIGrA4N/RGQyrO0LPheKVgBN1Qi 96hd3r8iJGoAyKRomokgkS+tQ+ylaQDBBXPWCqz02AmxA+FTY+n+UrgHvGbR0MDOaNWU 4/BlAHRlgCSYs2sPmiJKi/SIfn2ppvfAsVvZj+O5nezgfrs/nasKhIR73lV7eKi9ZBCj s9/A== X-Gm-Message-State: APzg51AEs+yYXoEZU+FDMsuvmmOk7a2G7sNQR8yfSDXDbUXF64ayZvhP sAS5kbAeCaumV7rjogzj0WUy0OsQ X-Received: by 2002:a65:4384:: with SMTP id m4-v6mr3027278pgp.265.1535142913103; Fri, 24 Aug 2018 13:35:13 -0700 (PDT) Received: from localhost.localdomain ([2601:646:877f:9499::4add]) by smtp.gmail.com with ESMTPSA id b14-v6sm15241540pfc.178.2018.08.24.13.35.12 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 24 Aug 2018 13:35:12 -0700 (PDT) From: Khem Raj To: openembedded-devel@lists.openembedded.org Date: Fri, 24 Aug 2018 13:35:03 -0700 Message-Id: <20180824203504.699-1-raj.khem@gmail.com> X-Mailer: git-send-email 2.18.0 Subject: [oe] [OE][PATCH 1/2] Update maintainers 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 --- README | 5 ++++- meta-filesystems/README | 2 +- meta-initramfs/README | 2 +- meta-oe/README | 2 +- 4 files changed, 7 insertions(+), 4 deletions(-) -- 2.18.0 -- _______________________________________________ Openembedded-devel mailing list Openembedded-devel@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-devel Acked-by: Martin Jansa Acked-by: Andreas Müller Acked-by: Armin Kuster diff --git a/README b/README index 204966ac8d..7318f09cdb 100644 --- a/README +++ b/README @@ -1,4 +1,7 @@ Collection of layers for the OE-core universe -Please see the respective READMEs in the layer subdirectories +Main layer maintainer: Khem Raj +This repository is a collection of layers to suppliment OE-Core +with additional packages, Each layer have designated maintainer +Please see the respective READMEs in the layer subdirectories diff --git a/meta-filesystems/README b/meta-filesystems/README index 97d0e94bfe..87cb685b4a 100644 --- a/meta-filesystems/README +++ b/meta-filesystems/README @@ -27,7 +27,7 @@ Please submit any patches against the filesystems layer to the OpenEmbedded development mailing list (openembedded-devel@lists.openembedded.org) with '[meta-filesystems]' in the subject. -Layer maintainer: Armin Kuster +Layer maintainer: Khem Raj When sending single patches, please use something like: diff --git a/meta-initramfs/README b/meta-initramfs/README index 7185383123..79244d43f0 100644 --- a/meta-initramfs/README +++ b/meta-initramfs/README @@ -25,7 +25,7 @@ with '[meta-initramfs]' in the subject. When sending single patches, please using something like: 'git send-email -M -1 --to openembedded-devel@lists.openembedded.org --subject-prefix=meta-initramfs][PATCH' -Interm layer maintainer: Armin Kuster +Interm layer maintainer: Khem Raj License diff --git a/meta-oe/README b/meta-oe/README index db5697dd90..0e9f8423bd 100644 --- a/meta-oe/README +++ b/meta-oe/README @@ -19,4 +19,4 @@ Other services like gitorious, repo.or.cz or self-hosted setups are of course ac 'git fetch ' works the same on all of them. We recommend GitHub because it is free, easy to use, has been proven to be reliable and has a really good web GUI. -Main layer maintainer: Armin Kuster +layer maintainer: Khem Raj From patchwork Fri Aug 24 20:35:04 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Khem Raj X-Patchwork-Id: 145101 Delivered-To: patch@linaro.org Received: by 2002:a2e:1648:0:0:0:0:0 with SMTP id 8-v6csp1649090ljw; Fri, 24 Aug 2018 13:35:41 -0700 (PDT) X-Google-Smtp-Source: ANB0VdbX9Qjy2bVRz4KG1p0YN3m8EGs1ZLG0xfGeUxmwanRoDrQPf3hBoPiqGVvc6oFG581Dndeq X-Received: by 2002:a62:ad9:: with SMTP id 86-v6mr3465585pfk.57.1535142941101; Fri, 24 Aug 2018 13:35:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1535142941; cv=none; d=google.com; s=arc-20160816; b=c0+y7ZQ5noiTsLKtlcZiasfDr2nbIFxfgbcbwEmEDL8149bNzXHhhANCS27UwAXyzV S4ys6+q3RtVNoEAb+CsRyOn7adgpoXTstd9fDCldigOEAMboKMwDqo35xO5MhyM7l9+B IO6nA0oCBN49lQoOQ0xwFfqZLiEzXDA5AGrypujfudJLCtzedVLG1dkg3LmAe6TkCKi2 eso86y8ostEHL7TXu/3Y2FdRSfiWZ4F4rJym7Hk3zuvqYax2gt+y1wpg1I2f0h4NWW+v 4fUfilTOAtfzakorTFHKcTAX7i0b45pExsxX6QEIwUQKQyaD2xAgRTRLU84E+Ig3VobN 7vDQ== 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=MUBgJvBY0CqOprWJWmxDeONSc8XLoAeNUiHoYGzLNx4=; b=a9plUde5Bt9NYbE6P3w2FgoHpZHBctju0VkHG+lCdRyEdLM6+FMssBMiacKOGimgQW jCowhfcp50tkAsaFUA7zD3Sa6wQph/v5cfCWVw6CVCFv23jPVpG6SiaOqdASQ+5Z3WFQ rmQWwzfactuGPQfoAK+UY/3Tv6muJXZO7S+NB/Sk1ERNmNXL2Gighjtv0TK0LNYuu496 2yOnOeCg/XPsgp9MkHtTcfq+jeufqWj/Bmro5MsflgJluDsOl1A0drfSPBzV4YKHifxA /5/Fia4yoqlPpXBFoUnIFWOAKFT5TUu5IHiOiQ9x+vjGWP/fLZkbWdvn762FeA6aVH2f PHmg== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.s=20161025 header.b=hlmi+hhk; 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=QUARANTINE 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 s125-v6si8987341pfb.335.2018.08.24.13.35.40; Fri, 24 Aug 2018 13:35:41 -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.s=20161025 header.b=hlmi+hhk; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: from layers.openembedded.org (localhost [127.0.0.1]) by mail.openembedded.org (Postfix) with ESMTP id 1002C7961F; Fri, 24 Aug 2018 20:35:39 +0000 (UTC) X-Original-To: openembedded-devel@lists.openembedded.org Delivered-To: openembedded-devel@lists.openembedded.org Received: from mail-pf1-f181.google.com (mail-pf1-f181.google.com [209.85.210.181]) by mail.openembedded.org (Postfix) with ESMTP id C6C0F79620 for ; Fri, 24 Aug 2018 20:35:13 +0000 (UTC) Received: by mail-pf1-f181.google.com with SMTP id s13-v6so4887814pfi.7 for ; Fri, 24 Aug 2018 13:35:15 -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=L3DNn4WFhYv35QPMNioQtz2Gq+Ah5ovJODMay7fQHW4=; b=hlmi+hhkbWGZ09+aa2LSX2bTAgQhB/0Q3W/1D3oDOolyD+EzrXlE+JXyRnA7V9qyrq BOcRR0ehqjF51gEM8g1eTXdYfbzZYRrTJdAlWfGAYIzZ9IKCRkQmow025pdGbZNs8nw/ NjIF7cyACcmhvVvF0HOmJLoO8PhbBYoTL+fDDiGGNQSHjB+MCG7UWEEUg1LhsuM7hh/E jOySL3iv1aGG/7uA2K/Mtkvh52fZTf4J99knmrAC2D8RHIgZBvu7QxcoUSMHkerLlsBc bx6ilatCB2pqEyJboBbLk7AHqyywL+IhVuHrWWau2IcmIVps/j+Rv8ITxBVTfEIi/Wg4 bdaA== 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=L3DNn4WFhYv35QPMNioQtz2Gq+Ah5ovJODMay7fQHW4=; b=BtcY5oDle86z0c7YLmtVyPjGWEI8VMwmvDF+oEYTUePTpB0fAD31AwV4GVZaDmLM2h HY1CJu6uydm5bMZTkRAoRC3tenSiBVL+GFCEXBeWB6CQ+ZQYN2thAXAMXOe/dKxpAI6X 5LTJE+4g4YzMEIeuREQNfcmqVkHtLvEK56ZniI0hj8r3zNZaKD1BAKL/KK/Rr8m54MBD nqqWvOo7GvkwRmVaUskFt+SlIqHG1PDElhMBe81sPPGcuulidK4B8bjNBQydGc7xsZgh mzSywi70cifI6s20Uhp5+IZmVZmbXGn40/v/BIZsmawRTXW2BKP0/t9ARoSIFfxV73AU HZ+Q== X-Gm-Message-State: APzg51Caypa2mT1bsWqYMPWl4eznSQpMgaOKNUH54/R+mz32oFxu46C+ N79FiDqx2IBIy3m9B0oecBF1ojqn X-Received: by 2002:a63:4663:: with SMTP id v35-v6mr3088475pgk.178.1535142914324; Fri, 24 Aug 2018 13:35:14 -0700 (PDT) Received: from localhost.localdomain ([2601:646:877f:9499::4add]) by smtp.gmail.com with ESMTPSA id b14-v6sm15241540pfc.178.2018.08.24.13.35.13 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 24 Aug 2018 13:35:13 -0700 (PDT) From: Khem Raj To: openembedded-devel@lists.openembedded.org Date: Fri, 24 Aug 2018 13:35:04 -0700 Message-Id: <20180824203504.699-2-raj.khem@gmail.com> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20180824203504.699-1-raj.khem@gmail.com> References: <20180824203504.699-1-raj.khem@gmail.com> Subject: [oe] [meta-oe][PATCH 2/2] mongodb: Upgrade to 4.0.1 release 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 Drop/adapt patches as some of them are not needed anymore Add patches to support musl especially thread stack and resolver functionality Signed-off-by: Khem Raj --- ...hLib20U1-Check-for-__DEFINED_wchar_t.patch | 17 +++---- ...upport-deprecated-resolver-functions.patch | 33 ++++++++++++++ ...e-build-settings-from-environment-va.patch | 12 ++--- ...-control-use-of-gnu_get_libc_version.patch | 44 +++++++------------ ...001-Use-long-long-instead-of-int64_t.patch | 4 +- ...Use-strerror_r-only-on-glibc-systems.patch | 26 ----------- .../0002-Fix-default-stack-size-to-256K.patch | 39 ++++++++++++++++ ...missing-dependenncy-on-local_shardin.patch | 25 ----------- ...itionalize-glibc-specific-strerror_r.patch | 39 ---------------- ...4-wiredtiger-Disable-strtouq-on-musl.patch | 13 +++--- .../mongodb/mongodb/arm64-support.patch | 6 +-- .../disable-hw-crc32-on-arm64-s390x.patch | 6 +-- meta-oe/recipes-dbs/mongodb/mongodb_git.bb | 19 ++++---- 13 files changed, 125 insertions(+), 158 deletions(-) create mode 100644 meta-oe/recipes-dbs/mongodb/mongodb/0001-Support-deprecated-resolver-functions.patch delete mode 100644 meta-oe/recipes-dbs/mongodb/mongodb/0001-Use-strerror_r-only-on-glibc-systems.patch create mode 100644 meta-oe/recipes-dbs/mongodb/mongodb/0002-Fix-default-stack-size-to-256K.patch delete mode 100644 meta-oe/recipes-dbs/mongodb/mongodb/0002-d_state.cpp-Add-missing-dependenncy-on-local_shardin.patch delete mode 100644 meta-oe/recipes-dbs/mongodb/mongodb/0003-Conditionalize-glibc-specific-strerror_r.patch -- 2.18.0 -- _______________________________________________ Openembedded-devel mailing list Openembedded-devel@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-devel diff --git a/meta-oe/recipes-dbs/mongodb/mongodb/0001-IntelRDFPMathLib20U1-Check-for-__DEFINED_wchar_t.patch b/meta-oe/recipes-dbs/mongodb/mongodb/0001-IntelRDFPMathLib20U1-Check-for-__DEFINED_wchar_t.patch index 5da34480e7..4d7ac3aa56 100644 --- a/meta-oe/recipes-dbs/mongodb/mongodb/0001-IntelRDFPMathLib20U1-Check-for-__DEFINED_wchar_t.patch +++ b/meta-oe/recipes-dbs/mongodb/mongodb/0001-IntelRDFPMathLib20U1-Check-for-__DEFINED_wchar_t.patch @@ -18,19 +18,16 @@ Upstream-Status: Pending src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid_functions.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -diff --git a/src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid_functions.h b/src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid_functions.h -index 2b3f76db86..cc80305775 100755 ---- a/src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid_functions.h -+++ b/src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid_functions.h -@@ -42,7 +42,7 @@ - #include +Index: git/src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid_functions.h +=================================================================== +--- git.orig/src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid_functions.h ++++ git/src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid_functions.h +@@ -43,7 +43,7 @@ + #if 0 // MongoDB Modification -- just `#include ` // Fix system header issue on Sun solaris and define required type by ourselves -#if !defined(_WCHAR_T) && !defined(_WCHAR_T_DEFINED) && !defined(__QNX__) +#if !defined(_WCHAR_T) && !defined(_WCHAR_T_DEFINED) && !defined(__QNX__) && !defined(__DEFINED_wchar_t) typedef int wchar_t; #endif - --- -2.14.1 - + #else diff --git a/meta-oe/recipes-dbs/mongodb/mongodb/0001-Support-deprecated-resolver-functions.patch b/meta-oe/recipes-dbs/mongodb/mongodb/0001-Support-deprecated-resolver-functions.patch new file mode 100644 index 0000000000..070411ab9f --- /dev/null +++ b/meta-oe/recipes-dbs/mongodb/mongodb/0001-Support-deprecated-resolver-functions.patch @@ -0,0 +1,33 @@ +From 5994023a03634dfc0318976c293e7391fe6aa060 Mon Sep 17 00:00:00 2001 +From: Khem Raj +Date: Fri, 24 Aug 2018 12:56:22 -0700 +Subject: [PATCH 1/2] Support deprecated resolver functions + +Needed for musl libc + +Upstream-Status: Pending +Signed-off-by: Khem Raj +--- + src/mongo/util/dns_query_posix-impl.h | 6 ++++++ + 1 file changed, 6 insertions(+) + +diff --git a/src/mongo/util/dns_query_posix-impl.h b/src/mongo/util/dns_query_posix-impl.h +index d19958010c..bbca3309ed 100644 +--- a/src/mongo/util/dns_query_posix-impl.h ++++ b/src/mongo/util/dns_query_posix-impl.h +@@ -53,6 +53,12 @@ + + #include + ++#ifndef res_ninit ++#define res_nclose(arg) ++#define res_ninit(arg) res_init() ++#define res_nsearch(sta, nam, clas, typ, ans, alen) res_search(nam, clas, typ, ans, alen) ++#endif ++ + namespace mongo { + namespace dns { + // The anonymous namespace is safe, in this header, as it is not really a header. It is only used +-- +2.18.0 + diff --git a/meta-oe/recipes-dbs/mongodb/mongodb/0001-Tell-scons-to-use-build-settings-from-environment-va.patch b/meta-oe/recipes-dbs/mongodb/mongodb/0001-Tell-scons-to-use-build-settings-from-environment-va.patch index aa01e954f7..a6d721ac54 100644 --- a/meta-oe/recipes-dbs/mongodb/mongodb/0001-Tell-scons-to-use-build-settings-from-environment-va.patch +++ b/meta-oe/recipes-dbs/mongodb/mongodb/0001-Tell-scons-to-use-build-settings-from-environment-va.patch @@ -13,7 +13,7 @@ Index: git/SConstruct =================================================================== --- git.orig/SConstruct +++ git/SConstruct -@@ -548,6 +548,7 @@ def variable_arch_converter(val): +@@ -564,6 +564,7 @@ def variable_arch_converter(val): 'amd64': 'x86_64', 'emt64': 'x86_64', 'x86': 'i386', @@ -21,7 +21,7 @@ Index: git/SConstruct } val = val.lower() -@@ -627,7 +628,8 @@ env_vars.Add( +@@ -652,7 +653,8 @@ env_vars.Add( ) env_vars.Add('CC', @@ -31,7 +31,7 @@ Index: git/SConstruct env_vars.Add('CCFLAGS', help='Sets flags for the C and C++ compiler', -@@ -647,7 +649,8 @@ env_vars.Add('CPPPATH', +@@ -672,7 +674,8 @@ env_vars.Add('CPPPATH', converter=variable_shlex_converter) env_vars.Add('CXX', @@ -41,19 +41,19 @@ Index: git/SConstruct env_vars.Add('CXXFLAGS', help='Sets flags for the C++ compiler', -@@ -895,6 +898,7 @@ envDict = dict(BUILD_ROOT=buildDir, +@@ -961,6 +964,7 @@ envDict = dict(BUILD_ROOT=buildDir, ) env = Environment(variables=env_vars, **envDict) +env.PrependENVPath('PATH', os.getenv('PATH')) del envDict - env.AddMethod(env_os_is_wrapper, 'TargetOSIs') + env.AddMethod(mongo_platform.env_os_is_wrapper, 'TargetOSIs') Index: git/src/mongo/util/SConscript =================================================================== --- git.orig/src/mongo/util/SConscript +++ git/src/mongo/util/SConscript -@@ -274,6 +274,8 @@ if env['MONGO_ALLOCATOR'] == 'tcmalloc': +@@ -329,6 +329,8 @@ if env['MONGO_ALLOCATOR'] == 'tcmalloc': 'MONGO_HAVE_GPERFTOOLS_SIZE_CLASS_STATS' ] ) diff --git a/meta-oe/recipes-dbs/mongodb/mongodb/0001-Use-__GLIBC__-to-control-use-of-gnu_get_libc_version.patch b/meta-oe/recipes-dbs/mongodb/mongodb/0001-Use-__GLIBC__-to-control-use-of-gnu_get_libc_version.patch index f8c419d8a3..c17ebf1e7e 100644 --- a/meta-oe/recipes-dbs/mongodb/mongodb/0001-Use-__GLIBC__-to-control-use-of-gnu_get_libc_version.patch +++ b/meta-oe/recipes-dbs/mongodb/mongodb/0001-Use-__GLIBC__-to-control-use-of-gnu_get_libc_version.patch @@ -9,34 +9,25 @@ Upstream-Status: Pending src/mongo/util/processinfo_linux.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) -diff --git a/src/mongo/util/processinfo_linux.cpp b/src/mongo/util/processinfo_linux.cpp -index 910015215e..bf8c1ffd15 100644 ---- a/src/mongo/util/processinfo_linux.cpp -+++ b/src/mongo/util/processinfo_linux.cpp -@@ -40,7 +40,7 @@ - #include - #include +Index: git/src/mongo/util/processinfo_linux.cpp +=================================================================== +--- git.orig/src/mongo/util/processinfo_linux.cpp ++++ git/src/mongo/util/processinfo_linux.cpp +@@ -44,10 +44,10 @@ #include --#ifdef __UCLIBC__ -+#ifndef __GLIBC__ - #include - #else + #ifdef __BIONIC__ + #include +-#elif __UCLIBC__ +-#include +-#else ++#elif defined(__GLIBC__) && !defined(__UCLIBC__) #include -@@ -451,11 +451,13 @@ double ProcessInfo::getSystemMemoryPressurePercentage() { - } - - void ProcessInfo::getExtraInfo(BSONObjBuilder& info) { -+#if defined(__GLIBC__) - LinuxProc p(_pid); - if (p._maj_flt <= std::numeric_limits::max()) - info.appendNumber("page_faults", static_cast(p._maj_flt)); - else - info.appendNumber("page_faults", static_cast(p._maj_flt)); -+#endif - } ++#else ++#include + #endif - /** -@@ -491,7 +493,7 @@ void ProcessInfo::SystemInfo::collectSystemInfo() { + #include +@@ -503,7 +503,7 @@ void ProcessInfo::SystemInfo::collectSys stringstream ss; ss << "uClibc-" << __UCLIBC_MAJOR__ << "." << __UCLIBC_MINOR__ << "." << __UCLIBC_SUBLEVEL__; bExtra.append("libcVersion", ss.str()); @@ -45,6 +36,3 @@ index 910015215e..bf8c1ffd15 100644 bExtra.append("libcVersion", gnu_get_libc_version()); #endif if (!verSig.empty()) --- -2.14.1 - diff --git a/meta-oe/recipes-dbs/mongodb/mongodb/0001-Use-long-long-instead-of-int64_t.patch b/meta-oe/recipes-dbs/mongodb/mongodb/0001-Use-long-long-instead-of-int64_t.patch index 389b302c3c..99edad3c4b 100644 --- a/meta-oe/recipes-dbs/mongodb/mongodb/0001-Use-long-long-instead-of-int64_t.patch +++ b/meta-oe/recipes-dbs/mongodb/mongodb/0001-Use-long-long-instead-of-int64_t.patch @@ -44,7 +44,7 @@ Index: git/src/mongo/util/procparser.cpp if (!parseNumberFromString(stringValue, &value).isOK()) { value = 0; -@@ -426,7 +426,7 @@ Status parseProcDiskStats(const std::vec +@@ -522,7 +522,7 @@ Status parseProcDiskStats(const std::vec StringData data, BSONObjBuilder* builder) { bool foundKeys = false; @@ -53,7 +53,7 @@ Index: git/src/mongo/util/procparser.cpp stats.reserve(kDiskFieldCount); using string_split_iterator = boost::split_iterator; -@@ -501,7 +501,7 @@ Status parseProcDiskStats(const std::vec +@@ -597,7 +597,7 @@ Status parseProcDiskStats(const std::vec StringData stringValue((*partIt).begin(), (*partIt).end()); diff --git a/meta-oe/recipes-dbs/mongodb/mongodb/0001-Use-strerror_r-only-on-glibc-systems.patch b/meta-oe/recipes-dbs/mongodb/mongodb/0001-Use-strerror_r-only-on-glibc-systems.patch deleted file mode 100644 index 0334d994e4..0000000000 --- a/meta-oe/recipes-dbs/mongodb/mongodb/0001-Use-strerror_r-only-on-glibc-systems.patch +++ /dev/null @@ -1,26 +0,0 @@ -From a4dfc92ff342e59596ab64267a8d4f22f173c23b Mon Sep 17 00:00:00 2001 -From: Khem Raj -Date: Sat, 2 Sep 2017 12:40:41 -0700 -Subject: [PATCH 1/4] Use strerror_r only on glibc systems - -Signed-off-by: Khem Raj ---- - src/mongo/util/log.cpp | 2 +- - 1 file changed, 1 insertion(+), 1 deletion(-) - -diff --git a/src/mongo/util/log.cpp b/src/mongo/util/log.cpp -index 1957eb4791..ddf3908818 100644 ---- a/src/mongo/util/log.cpp -+++ b/src/mongo/util/log.cpp -@@ -101,7 +101,7 @@ string errnoWithDescription(int errNumber) { - char buf[kBuflen]; - char* msg{nullptr}; - --#if defined(__GNUC__) && defined(_GNU_SOURCE) -+#if defined(__GNUC__) && defined(_GNU_SOURCE) && defined(__GLIBC__) - msg = strerror_r(errNumber, buf, kBuflen); - #elif defined(_WIN32) - --- -2.14.1 - diff --git a/meta-oe/recipes-dbs/mongodb/mongodb/0002-Fix-default-stack-size-to-256K.patch b/meta-oe/recipes-dbs/mongodb/mongodb/0002-Fix-default-stack-size-to-256K.patch new file mode 100644 index 0000000000..085fa50d90 --- /dev/null +++ b/meta-oe/recipes-dbs/mongodb/mongodb/0002-Fix-default-stack-size-to-256K.patch @@ -0,0 +1,39 @@ +From 98543889f7ba38c02eb7cd9822f45e27d619edd6 Mon Sep 17 00:00:00 2001 +From: Khem Raj +Date: Fri, 24 Aug 2018 13:07:01 -0700 +Subject: [PATCH 2/2] Fix default stack size to 256K + +On musl default stack size is ~80K which is too low +for mongodb + +Upstream-Status: Pending + +Signed-off-by: Khem Raj +--- + .../platform/stack_locator_pthread_getattr_np.cpp | 10 ++++++++++ + 1 file changed, 10 insertions(+) + +diff --git a/src/mongo/platform/stack_locator_pthread_getattr_np.cpp b/src/mongo/platform/stack_locator_pthread_getattr_np.cpp +index 648d26a41c..6e398f00c9 100644 +--- a/src/mongo/platform/stack_locator_pthread_getattr_np.cpp ++++ b/src/mongo/platform/stack_locator_pthread_getattr_np.cpp +@@ -35,6 +35,16 @@ + #include "mongo/util/assert_util.h" + #include "mongo/util/scopeguard.h" + ++__attribute__((constructor)) ++static void set_default_stack_size(void) ++{ ++ pthread_attr_t attr; ++ invariant(pthread_attr_init(&attr) == 0); ++ invariant(pthread_attr_setstacksize(&attr, 256*1024) == 0); ++ pthread_setattr_default_np(&attr); ++ invariant(pthread_attr_destroy(&attr) == 0); ++} ++ + namespace mongo { + + StackLocator::StackLocator() { +-- +2.18.0 + diff --git a/meta-oe/recipes-dbs/mongodb/mongodb/0002-d_state.cpp-Add-missing-dependenncy-on-local_shardin.patch b/meta-oe/recipes-dbs/mongodb/mongodb/0002-d_state.cpp-Add-missing-dependenncy-on-local_shardin.patch deleted file mode 100644 index dc488ad7ea..0000000000 --- a/meta-oe/recipes-dbs/mongodb/mongodb/0002-d_state.cpp-Add-missing-dependenncy-on-local_shardin.patch +++ /dev/null @@ -1,25 +0,0 @@ -From 5759878e5d278f11a1063e8fccd1e6b7b54caadf Mon Sep 17 00:00:00 2001 -From: Khem Raj -Date: Wed, 2 Aug 2017 16:25:37 -0700 -Subject: [PATCH 2/2] d_state.cpp: Add missing dependenncy on - local_sharding_info - -Fixes -| src/mongo/s/d_state.cpp:81: error: undefined reference to 'mongo::enableLocalShardingInfo(mongo::ServiceContext*, std::function, std::allocator > const&)>)' - -Signed-off-by: Khem Raj ---- - src/mongo/s/SConscript | 1 + - 1 file changed, 1 insertion(+) - -Index: git/src/mongo/s/SConscript -=================================================================== ---- git.orig/src/mongo/s/SConscript -+++ git/src/mongo/s/SConscript -@@ -317,5 +317,6 @@ env.Library( - "$BUILD_DIR/mongo/db/s/sharding", - "$BUILD_DIR/mongo/executor/network_interface_factory", - "$BUILD_DIR/mongo/s/client/shard_local", -+ "$BUILD_DIR/mongo/s/local_sharding_info", - ], - ) diff --git a/meta-oe/recipes-dbs/mongodb/mongodb/0003-Conditionalize-glibc-specific-strerror_r.patch b/meta-oe/recipes-dbs/mongodb/mongodb/0003-Conditionalize-glibc-specific-strerror_r.patch deleted file mode 100644 index 1591f94c96..0000000000 --- a/meta-oe/recipes-dbs/mongodb/mongodb/0003-Conditionalize-glibc-specific-strerror_r.patch +++ /dev/null @@ -1,39 +0,0 @@ -From 458f80f482a201b427a1c92235804d0c3f98fd51 Mon Sep 17 00:00:00 2001 -From: Khem Raj -Date: Sat, 2 Sep 2017 13:01:11 -0700 -Subject: [PATCH 3/4] Conditionalize glibc specific strerror_r - -Signed-off-by: Khem Raj ---- - .../asio-asio-1-11-0/asio/include/asio/impl/error_code.ipp | 11 ++++------- - 1 file changed, 4 insertions(+), 7 deletions(-) - -diff --git a/src/third_party/asio-asio-1-11-0/asio/include/asio/impl/error_code.ipp b/src/third_party/asio-asio-1-11-0/asio/include/asio/impl/error_code.ipp -index 4e7badb14a..0eeae884e2 100644 ---- a/src/third_party/asio-asio-1-11-0/asio/include/asio/impl/error_code.ipp -+++ b/src/third_party/asio-asio-1-11-0/asio/include/asio/impl/error_code.ipp -@@ -97,17 +97,14 @@ public: - #if defined(__sun) || defined(__QNX__) || defined(__SYMBIAN32__) - using namespace std; - return strerror(value); --#elif defined(__MACH__) && defined(__APPLE__) \ -- || defined(__NetBSD__) || defined(__FreeBSD__) || defined(__OpenBSD__) \ -- || defined(_AIX) || defined(__hpux) || defined(__osf__) \ -- || defined(__ANDROID__) -+#elif defined(__GLIBC__) && defined(_GNU_SOURCE) -+ char buf[256] = ""; -+ return strerror_r(value, buf, sizeof(buf)); -+#else - char buf[256] = ""; - using namespace std; - strerror_r(value, buf, sizeof(buf)); - return buf; --#else -- char buf[256] = ""; -- return strerror_r(value, buf, sizeof(buf)); - #endif - #endif // defined(ASIO_WINDOWS) - } --- -2.14.1 - diff --git a/meta-oe/recipes-dbs/mongodb/mongodb/0004-wiredtiger-Disable-strtouq-on-musl.patch b/meta-oe/recipes-dbs/mongodb/mongodb/0004-wiredtiger-Disable-strtouq-on-musl.patch index e871f2ba90..a2e1f795b1 100644 --- a/meta-oe/recipes-dbs/mongodb/mongodb/0004-wiredtiger-Disable-strtouq-on-musl.patch +++ b/meta-oe/recipes-dbs/mongodb/mongodb/0004-wiredtiger-Disable-strtouq-on-musl.patch @@ -8,11 +8,11 @@ Signed-off-by: Khem Raj src/third_party/wiredtiger/build_linux/wiredtiger_config.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -diff --git a/src/third_party/wiredtiger/build_linux/wiredtiger_config.h b/src/third_party/wiredtiger/build_linux/wiredtiger_config.h -index 1122e1e319..fdfd48687b 100644 ---- a/src/third_party/wiredtiger/build_linux/wiredtiger_config.h -+++ b/src/third_party/wiredtiger/build_linux/wiredtiger_config.h -@@ -101,7 +101,7 @@ +Index: git/src/third_party/wiredtiger/build_linux/wiredtiger_config.h +=================================================================== +--- git.orig/src/third_party/wiredtiger/build_linux/wiredtiger_config.h ++++ git/src/third_party/wiredtiger/build_linux/wiredtiger_config.h +@@ -104,7 +104,7 @@ #define HAVE_STRING_H 1 /* Define to 1 if you have the `strtouq' function. */ @@ -21,6 +21,3 @@ index 1122e1e319..fdfd48687b 100644 /* Define to 1 if you have the `sync_file_range' function. */ /* #undef HAVE_SYNC_FILE_RANGE */ --- -2.14.1 - diff --git a/meta-oe/recipes-dbs/mongodb/mongodb/arm64-support.patch b/meta-oe/recipes-dbs/mongodb/mongodb/arm64-support.patch index 9046bb2f45..c06898758a 100644 --- a/meta-oe/recipes-dbs/mongodb/mongodb/arm64-support.patch +++ b/meta-oe/recipes-dbs/mongodb/mongodb/arm64-support.patch @@ -7,7 +7,7 @@ Index: git/SConstruct =================================================================== --- git.orig/SConstruct +++ git/SConstruct -@@ -990,6 +990,7 @@ elif endian == "big": +@@ -1055,6 +1055,7 @@ elif endian == "big": processor_macros = { 'arm' : { 'endian': 'little', 'defines': ('__arm__',) }, 'aarch64' : { 'endian': 'little', 'defines': ('__arm64__', '__aarch64__')}, @@ -19,7 +19,7 @@ Index: git/src/third_party/IntelRDFPMathLib20U1/SConscript =================================================================== --- git.orig/src/third_party/IntelRDFPMathLib20U1/SConscript +++ git/src/third_party/IntelRDFPMathLib20U1/SConscript -@@ -301,7 +301,7 @@ if processor == 'i386': +@@ -308,7 +308,7 @@ if processor == 'i386': elif processor == 'arm': cpp_defines['IA32'] = '1' cpp_defines['ia32'] = '1' @@ -32,7 +32,7 @@ Index: git/src/third_party/wiredtiger/SConscript =================================================================== --- git.orig/src/third_party/wiredtiger/SConscript +++ git/src/third_party/wiredtiger/SConscript -@@ -139,7 +139,7 @@ condition_map = { +@@ -151,7 +151,7 @@ condition_map = { 'POSIX_HOST' : not env.TargetOSIs('windows'), 'WINDOWS_HOST' : env.TargetOSIs('windows'), diff --git a/meta-oe/recipes-dbs/mongodb/mongodb/disable-hw-crc32-on-arm64-s390x.patch b/meta-oe/recipes-dbs/mongodb/mongodb/disable-hw-crc32-on-arm64-s390x.patch index 5c5c20ce34..23d4923d23 100644 --- a/meta-oe/recipes-dbs/mongodb/mongodb/disable-hw-crc32-on-arm64-s390x.patch +++ b/meta-oe/recipes-dbs/mongodb/mongodb/disable-hw-crc32-on-arm64-s390x.patch @@ -5,7 +5,7 @@ Index: git/src/third_party/wiredtiger/SConscript =================================================================== --- git.orig/src/third_party/wiredtiger/SConscript +++ git/src/third_party/wiredtiger/SConscript -@@ -169,7 +169,9 @@ if useSnappy: +@@ -181,7 +181,9 @@ if useSnappy: # If not available at runtime, we fall back to software in some cases. # # On zSeries we may disable because SLES 11 kernel doe not support the instructions. @@ -32,7 +32,7 @@ Index: git/src/third_party/wiredtiger/src/checksum/zseries/crc32-s390x.c =================================================================== --- git.orig/src/third_party/wiredtiger/src/checksum/zseries/crc32-s390x.c +++ git/src/third_party/wiredtiger/src/checksum/zseries/crc32-s390x.c -@@ -78,6 +78,7 @@ unsigned int __wt_crc32c_le(unsigned int +@@ -77,6 +77,7 @@ unsigned int __wt_crc32c_le(unsigned int return crc; \ } @@ -40,7 +40,7 @@ Index: git/src/third_party/wiredtiger/src/checksum/zseries/crc32-s390x.c /* Main CRC-32 functions */ DEFINE_CRC32_VX(__wt_crc32c_le_vx, __wt_crc32c_le_vgfm_16, __wt_crc32c_le) -@@ -90,6 +91,7 @@ __wt_checksum_hw(const void *chunk, size +@@ -89,6 +90,7 @@ __wt_checksum_hw(const void *chunk, size { return (~__wt_crc32c_le_vx(0xffffffff, chunk, len)); } diff --git a/meta-oe/recipes-dbs/mongodb/mongodb_git.bb b/meta-oe/recipes-dbs/mongodb/mongodb_git.bb index bb3ff3b403..dd22388b57 100644 --- a/meta-oe/recipes-dbs/mongodb/mongodb_git.bb +++ b/meta-oe/recipes-dbs/mongodb/mongodb_git.bb @@ -3,25 +3,28 @@ LICENSE = "AGPL-3.0 & Apache-2.0 & Zlib" LIC_FILES_CHKSUM = "file://GNU-AGPL-3.0.txt;md5=73f1eb20517c55bf9493b7dd6e480788 \ file://APACHE-2.0.txt;md5=3b83ef96387f14655fc854ddc3c6bd57" -DEPENDS = "openssl libpcre libpcap zlib python boost" +DEPENDS = "openssl libpcre libpcap zlib boost curl python \ + python-setuptools-native python-typing-native \ + python-pyyaml-native python-cheetah-native \ + " -inherit scons dos2unix siteinfo +inherit scons dos2unix siteinfo pythonnative -PV = "3.4.13+git${SRCPV}" -SRCREV = "fbdef2ccc53e0fcc9afb570063633d992b2aae42" -SRC_URI = "git://github.com/mongodb/mongo.git;branch=v3.4 \ +PV = "4.0.1+git${SRCPV}" +#v4.0.1 +SRCREV = "54f1582fc6eb01de4d4c42f26fc133e623f065fb" +SRC_URI = "git://github.com/mongodb/mongo.git;branch=v4.0 \ file://0001-Tell-scons-to-use-build-settings-from-environment-va.patch \ - file://0002-d_state.cpp-Add-missing-dependenncy-on-local_shardin.patch \ file://0001-Use-long-long-instead-of-int64_t.patch \ file://0001-Use-__GLIBC__-to-control-use-of-gnu_get_libc_version.patch \ - file://0001-Use-strerror_r-only-on-glibc-systems.patch \ file://0002-Add-a-definition-for-the-macro-__ELF_NATIVE_CLASS.patch \ - file://0003-Conditionalize-glibc-specific-strerror_r.patch \ file://arm64-support.patch \ file://0001-IntelRDFPMathLib20U1-Check-for-__DEFINED_wchar_t.patch \ file://disable-hw-crc32-on-arm64-s390x.patch \ + file://0001-Support-deprecated-resolver-functions.patch \ " SRC_URI_append_libc-musl ="\ + file://0002-Fix-default-stack-size-to-256K.patch \ file://0004-wiredtiger-Disable-strtouq-on-musl.patch \ " S = "${WORKDIR}/git"