From patchwork Sun Dec 29 18:25:42 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Khem Raj X-Patchwork-Id: 182582 Delivered-To: patch@linaro.org Received: by 2002:a92:815a:0:0:0:0:0 with SMTP id e87csp5493436ild; Sun, 29 Dec 2019 10:26:20 -0800 (PST) X-Google-Smtp-Source: APXvYqyj1ly5MbmImYHykSBtK2IfR//8wNQ5eSgFS+mPI+4AYNKHI+9jsG6CNK5x5xFwpj9PwCDW X-Received: by 2002:a17:90a:36af:: with SMTP id t44mr40383035pjb.25.1577643980611; Sun, 29 Dec 2019 10:26:20 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1577643980; cv=none; d=google.com; s=arc-20160816; b=hE4V3WmKLEuiuPTVU9wpejJzpyyvXQSEgY87sObrBtVtUh6tt5PkV3ahumpjldIdad YybZzLL6HLxW0pk92RYe2GTXhVsprZ/lCIIMMhUbkNgolFtgUNSEf3OXAixh6ZtYtNC0 +cjGGASBrfFl//stvobKNUXy1wI6JL8jznRg5t/il4Z106z1Y9EuZfIDpNE3H0IWK8mM XkSDiCazFBOkyiFaPWef1dSLDGFGPDbD6rkISRK+UsjFg9sVSMNXLMgUBstEfa9x/Cx2 kfQKyxCa5o6PeLmGNqwPqDv3UFORje9l+8J6zluyaAJKhOvvAbcWKh3QjlaM+xAQrEkS Gvcw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=errors-to:sender:content-transfer-encoding:list-subscribe:list-help :list-post:list-archive:list-unsubscribe:list-id:precedence:subject :mime-version:references:in-reply-to:message-id:date:to:from :dkim-signature:delivered-to; bh=NrJ3H4Aa67fsR3lERGFJzqA16A3GCM0T35++5RpVl6U=; b=gy9wIb8Q+LiPp4YIiMlEjiGxxbAAVOSEB96feHkOQQ1qj83/89cHGvM/WZDf03ykmU yA3ZTxtJwUPMawJMulYe7FJPWiVka2JZiS6swObY156hpXvzQk9LD9PJmmEcz0iaQuBU Am2QZWe8BO0n2gN9dOHJku5Uei4LUeONczNibnkFfb2fwvJOn97dVyPM+Aj0aJEsjNLK uh+T8tIvL+m3mSxgQcIejwjm0VJSVPu29QTqRaNXEduDJ2bKP1BbyDCcIyaWmRzY/e8i 43TXHvlXfWGap2+TzfUcF9B2WqtVcilYW215Cf/jmC6UfI0sPYO8hKUM+fssFPo5z90o 7zJg== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.s=20161025 header.b=aUDVlZL5; 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 d10si39298275pga.420.2019.12.29.10.26.20; Sun, 29 Dec 2019 10:26:20 -0800 (PST) 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=aUDVlZL5; 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 ec2-34-214-78-129.us-west-2.compute.amazonaws.com (localhost [127.0.0.1]) by mail.openembedded.org (Postfix) with ESMTP id 719137F82E; Sun, 29 Dec 2019 18:26:13 +0000 (UTC) X-Original-To: openembedded-devel@lists.openembedded.org Delivered-To: openembedded-devel@lists.openembedded.org Received: from mail-pl1-f171.google.com (mail-pl1-f171.google.com [209.85.214.171]) by mail.openembedded.org (Postfix) with ESMTP id 1AFE77F7D7 for ; Sun, 29 Dec 2019 18:25:51 +0000 (UTC) Received: by mail-pl1-f171.google.com with SMTP id g6so10849770plp.6 for ; Sun, 29 Dec 2019 10:25:52 -0800 (PST) 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 :mime-version:content-transfer-encoding; bh=EWPfz74sm8O4P1Fuk/TMvTOv5CRDhHfsqwK8YKGqBZQ=; b=aUDVlZL5EvUnFOeGWZul0h1ByVapcf11HPPwOzOFwBV0ENCpSqWsqmQMbqWjByw5M9 lv1j5DhgBKAQyHwQKGCzP1am3BN3bj6aBwT8Av+ju4a1Lj603qpFAw5I6FaaNieWNkD5 AvHwTkVz/TmMFutw4evqSA68rrZP2RKkmjAE+SF+rfJ1jBnUxNMmmAuQ+kKxGt86RM4L ORxIkhv8jmPYWdx3FLRqeiRzid/SHfLvjG65jQxH/icFUMW0YzwMGXymudGOjg1Mhy7z hIb9lOqTPoaOEZ1toMGGlD6PAzmHRfFfl/bto7HH8SjeVqnAodxPBa+VeTWfEwT3gzzr vfZg== 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:mime-version:content-transfer-encoding; bh=EWPfz74sm8O4P1Fuk/TMvTOv5CRDhHfsqwK8YKGqBZQ=; b=NnCqZ9hn3+F1B57WusQiAt/cXWEUPfpbJEFoc4cVBpPyPESJHnaqbpuaLfwVok/vW+ k1XDK/QqmSoEe3tWxqHQI/9lwAdxu7WHt8bpZErDcXh0m2ABBBiHX05mpHPQS6AGz+RE NWE0o49uDtOObQU4JuIbnbOz9X5kO4lBya2RyNkrrSZrLR1dMkrdNq5IOU5NmTQSjERT 17SiXjMcBni1WX46lQhB0Su+2Mx7Waixa88Hh4Z6f9A+yI55vjfx93YNyNxzh0J8zcK3 hx0sw3hsMdzLNuK6bshJ3yqlYLtrq0pD/exor7S3tUF6ssbDU9yX2EO7sAVZCu3fFzfr +wkg== X-Gm-Message-State: APjAAAVxQVt3ElXUPRGLyJk/iY/iS8SuTQryObvvQ17OMeyyq5d3mdEf RrxKC6OVZOchFrGMFY7vAHihrLEb4Gs= X-Received: by 2002:a17:90a:aa81:: with SMTP id l1mr41379297pjq.62.1577643951720; Sun, 29 Dec 2019 10:25:51 -0800 (PST) Received: from apollo.hsd1.ca.comcast.net ([2601:646:9200:4e0::2f83]) by smtp.gmail.com with ESMTPSA id gc1sm21395010pjb.20.2019.12.29.10.25.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 29 Dec 2019 10:25:51 -0800 (PST) From: Khem Raj To: openembedded-devel@lists.openembedded.org Date: Sun, 29 Dec 2019 10:25:42 -0800 Message-Id: <20191229182544.16104-3-raj.khem@gmail.com> X-Mailer: git-send-email 2.24.1 In-Reply-To: <20191229182544.16104-1-raj.khem@gmail.com> References: <20191229182544.16104-1-raj.khem@gmail.com> MIME-Version: 1.0 Subject: [oe] [meta-oe][PATCH 3/5] mariadb: Upgrade to 10.4.11 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: , Sender: openembedded-devel-bounces@lists.openembedded.org Errors-To: openembedded-devel-bounces@lists.openembedded.org Backport a rocksdb patch to fix clang error Refresh existing patches as needed Switch SRC_URI to downloads.mariadb.org since archive.mariadb.org is too slow if no mirrors are used Signed-off-by: Khem Raj --- ...e_10.3.18.bb => mariadb-native_10.4.11.bb} | 0 meta-oe/recipes-dbs/mysql/mariadb.inc | 7 ++-- ...-breakage-from-lock_guard-error-6161.patch | 32 +++++++++++++++++++ .../mysql/mariadb/fix-arm-atomic.patch | 9 ++---- ...{mariadb_10.3.18.bb => mariadb_10.4.11.bb} | 0 5 files changed, 38 insertions(+), 10 deletions(-) rename meta-oe/recipes-dbs/mysql/{mariadb-native_10.3.18.bb => mariadb-native_10.4.11.bb} (100%) create mode 100644 meta-oe/recipes-dbs/mysql/mariadb/0001-Fix-build-breakage-from-lock_guard-error-6161.patch rename meta-oe/recipes-dbs/mysql/{mariadb_10.3.18.bb => mariadb_10.4.11.bb} (100%) -- 2.24.1 -- _______________________________________________ Openembedded-devel mailing list Openembedded-devel@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-devel diff --git a/meta-oe/recipes-dbs/mysql/mariadb-native_10.3.18.bb b/meta-oe/recipes-dbs/mysql/mariadb-native_10.4.11.bb similarity index 100% rename from meta-oe/recipes-dbs/mysql/mariadb-native_10.3.18.bb rename to meta-oe/recipes-dbs/mysql/mariadb-native_10.4.11.bb diff --git a/meta-oe/recipes-dbs/mysql/mariadb.inc b/meta-oe/recipes-dbs/mysql/mariadb.inc index ec5ac11ef0..1c1b8a0a87 100644 --- a/meta-oe/recipes-dbs/mysql/mariadb.inc +++ b/meta-oe/recipes-dbs/mysql/mariadb.inc @@ -4,7 +4,7 @@ SECTION = "libs" LICENSE = "GPLv2" LIC_FILES_CHKSUM = "file://COPYING;md5=b1becf0cfa3366e0f4d854d1d264f311" -SRC_URI = "http://archive.mariadb.org/${BP}/source/${BP}.tar.gz \ +SRC_URI = "https://downloads.mariadb.org/interstitial/${BP}/source/${BP}.tar.gz \ file://my.cnf \ file://mysqld.service \ file://install_db.service \ @@ -18,9 +18,10 @@ SRC_URI = "http://archive.mariadb.org/${BP}/source/${BP}.tar.gz \ file://c11_atomics.patch \ file://clang_version_header_conflict.patch \ file://fix-arm-atomic.patch \ + file://0001-Fix-build-breakage-from-lock_guard-error-6161.patch \ " -SRC_URI[md5sum] = "b3524c0825c3a1c255496daea38304a0" -SRC_URI[sha256sum] = "69456ca85bf9d96c6d28b4ade2a9f6787d79a602e27ef941f9ba4e0b55dddedc" +SRC_URI[md5sum] = "d0de881ab8ead46928cafb7d558535c1" +SRC_URI[sha256sum] = "4c076232b99433b09eb3c6d62f607192b3474d022703699b8f6aef4e79de3fb9" UPSTREAM_CHECK_URI = "https://github.com/MariaDB/server/releases" diff --git a/meta-oe/recipes-dbs/mysql/mariadb/0001-Fix-build-breakage-from-lock_guard-error-6161.patch b/meta-oe/recipes-dbs/mysql/mariadb/0001-Fix-build-breakage-from-lock_guard-error-6161.patch new file mode 100644 index 0000000000..87c70617a1 --- /dev/null +++ b/meta-oe/recipes-dbs/mysql/mariadb/0001-Fix-build-breakage-from-lock_guard-error-6161.patch @@ -0,0 +1,32 @@ +Subject: [PATCH] Fix build breakage from lock_guard error (#6161) + +Summary: +This change fixes a source issue that caused compile time error which +breaks build for many fbcode services in that setup. The size() member +function of channel is a const member, so member variables accessed +within it are implicitly const as well. This caused error when clang +fails to resolve to a constructor that takes std::mutex because the +suitable constructor got rejected due to loss of constness for its +argument. The fix is to add mutable modifier to the lock_ member of +channel. + +Pull Request resolved: https://github.com/facebook/rocksdb/pull/6161 + +Differential Revision: D18967685 + +Pulled By: maysamyabandeh + +Upstream-Status: Backport + +fbshipit-source-id:698b6a5153c3c92eeacb842c467aa28cc350d432 +--- a/storage/rocksdb/rocksdb/util/channel.h ++++ b/storage/rocksdb/rocksdb/util/channel.h +@@ -60,7 +60,7 @@ class channel { + + private: + std::condition_variable cv_; +- std::mutex lock_; ++ mutable std::mutex lock_; + std::queue buffer_; + bool eof_; + }; diff --git a/meta-oe/recipes-dbs/mysql/mariadb/fix-arm-atomic.patch b/meta-oe/recipes-dbs/mysql/mariadb/fix-arm-atomic.patch index 34d31148b4..185b7b77ff 100644 --- a/meta-oe/recipes-dbs/mysql/mariadb/fix-arm-atomic.patch +++ b/meta-oe/recipes-dbs/mysql/mariadb/fix-arm-atomic.patch @@ -15,11 +15,9 @@ Signed-off-by: Mingli Yu storage/rocksdb/build_rocksdb.cmake | 3 +++ 1 file changed, 3 insertions(+) -diff --git a/storage/rocksdb/build_rocksdb.cmake b/storage/rocksdb/build_rocksdb.cmake -index c36c761..2b539ff 100644 --- a/storage/rocksdb/build_rocksdb.cmake +++ b/storage/rocksdb/build_rocksdb.cmake -@@ -424,6 +424,9 @@ list(APPEND SOURCES ${CMAKE_CURRENT_BINARY_DIR}/build_version.cc) +@@ -470,6 +470,9 @@ list(APPEND SOURCES ${CMAKE_CURRENT_BINA ADD_CONVENIENCE_LIBRARY(rocksdblib ${SOURCES}) target_link_libraries(rocksdblib ${THIRDPARTY_LIBS} ${SYSTEM_LIBS}) @@ -27,8 +25,5 @@ index c36c761..2b539ff 100644 + TARGET_LINK_LIBRARIES(rocksdblib atomic) +ENDIF() IF(CMAKE_CXX_COMPILER_ID MATCHES "GNU" OR CMAKE_CXX_COMPILER_ID MATCHES "Clang") - set_target_properties(rocksdblib PROPERTIES COMPILE_FLAGS "-fPIC -fno-builtin-memcmp -frtti") + set_target_properties(rocksdblib PROPERTIES COMPILE_FLAGS "-fPIC -fno-builtin-memcmp") endif() --- -2.17.1 - diff --git a/meta-oe/recipes-dbs/mysql/mariadb_10.3.18.bb b/meta-oe/recipes-dbs/mysql/mariadb_10.4.11.bb similarity index 100% rename from meta-oe/recipes-dbs/mysql/mariadb_10.3.18.bb rename to meta-oe/recipes-dbs/mysql/mariadb_10.4.11.bb