From patchwork Sat Jul 27 20:06:13 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Khem Raj X-Patchwork-Id: 169948 Delivered-To: patch@linaro.org Received: by 2002:a92:4782:0:0:0:0:0 with SMTP id e2csp1654998ilk; Sat, 27 Jul 2019 13:06:32 -0700 (PDT) X-Google-Smtp-Source: APXvYqxmiPhqp+lx0miPrH6nB5x0jZTzurFXg7UWG9FMgVG17nso0fZL2ZdwDa13lN1v0b7uHFPC X-Received: by 2002:a17:90a:b387:: with SMTP id e7mr14770397pjr.113.1564257991966; Sat, 27 Jul 2019 13:06:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1564257991; cv=none; d=google.com; s=arc-20160816; b=scalG2MW2JIe5IJ3LnoTaOOAiBPAxcnG0N2GcFoYv7lMTH1nfr3+kareS4U6dblD7C CbW0KYBlXgEaWP3fO5eNCOnmua0oib6Z/YwyFbTR8bNlQvC87hhhwJGmj0VfUsufk1le WdFkZlfUQDqICqeDpUW/Fd4S+yNaVMTAxZFy31OkoCKh4oOdmPqNDu41p+WLKwvG6jC3 zgBl7YWPpTNq9pnOEploh78VQ1S6Mm+H2jt9ZdY8VKRb81Y6xaJ9DuTZCNWuVEf5A8sz +0m7tzXBFijiyOVFtDy+K9ZpBSXz19g+3heq6sHjXMAfSbP6au+pV4pgvFfJ50sQa5Sf Ml1Q== 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:message-id:date:to:from:dkim-signature:delivered-to; bh=sNUIjcmmOWyO+Xkmz8gY15bzX3pAR+I6ElkDMYg7Sh0=; b=nZQWr2Lcw7wdVgVdnOdTi7QybFx4SLgBHHJXznOOJUhQcl0BdQkDgNbqqOV3pYve0D AgZMkFH/oraL0dJTiG59/0HxbUxwR0t94XrCzkMvrvgDVXqK4zh05cFlHdfJqPu/U8Db MHf8zvSdh3zcOY10dyIDPVeKWAFKWqrK8Vi7QseX4Aro+L6hfkZX1agAmQXMKt8rKDc+ +bEhc1/VZlybJjhbP9psrjzhZ4JPZ0tZm25/qtkXmNkIQC8bt88tBh1bSlQnRsDRdvyY fZlYbDOzjZ4EYci/jwI3tjy5mr3ndaxkPsgm+mwo1ZgGY46Uvk4uSxDSGG6wwfkdLg10 6VSg== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.s=20161025 header.b=kgKfAHbg; 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 c8si21067678pls.436.2019.07.27.13.06.30; Sat, 27 Jul 2019 13:06:31 -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=kgKfAHbg; 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 052E67F1E3; Sat, 27 Jul 2019 20:06:24 +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 36B627F1E3 for ; Sat, 27 Jul 2019 20:06:23 +0000 (UTC) Received: by mail-pg1-f195.google.com with SMTP id f5so17491172pgu.5 for ; Sat, 27 Jul 2019 13:06:24 -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:mime-version :content-transfer-encoding; bh=jQaJBnvHII11j6LmOTCYLqlBB5JvMA4tGTOx3duRlnw=; b=kgKfAHbg4K89bKXVz36lPP1IRCyMQfolmMqjKECHYYpM6+6KZF1IvOw9u34tUnvnEx hcjboQw7bOvjrVtJk6WSpOhV64CUCf0adRamxnCBM9TscMdHqZAsgn+Ji2/WmI/KVNGy mtTWPJaR2BH3gF3DI3FHTAxqPHplyTADeo0EWXDtJE1wq+5knO2kbFUJHs6vHEteeC3L H8t8wYs/3JLOxxxlObu02GQlmtac2V8ALaYcHxhzuh8ZoP0Uj1W2Y3gXJndVOIWPm6fR PTJgIqWrKui2HGn01qSeBv5wzVdrj9IGpLBGNH7Fl2oPO/gLRXuHNX8adXoJqP9jI6KK x5GQ== 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:mime-version :content-transfer-encoding; bh=jQaJBnvHII11j6LmOTCYLqlBB5JvMA4tGTOx3duRlnw=; b=QhTSuraIRBVKaqvV9TCifTGFOhyJZRymMKavuNuIHlLjnOSGo6ebpB+OeI7yhI2vx5 A7Pbvpoy25az7Huu0xlO9Pl3sNzpNon3sKtVofnjpx9S+JsK7iEl3O74a7Ub7vRoRlXu WnWPtu8TCNQNOkoB2ZHU8huuUtd5dfj4OBW8It3UFCaWQqcP5GcfVRGCSaiPICjNGbd8 tBshnk1lSSeYRxcQN8UQf1cu/Zahoq4CyNwnpxWvg/isXyt+CBq2iSbH6wS6Lfi51SiV Ua4jU69uXupCDTT1Gd49Jq2xbz2aO5jqRsbmeUyzqDf7GGnBVv/IuCZxu2zSiXGTNmdb gUhQ== X-Gm-Message-State: APjAAAWzPQU1O5p4g04egSrxbFcCzxJPw0+tLbAiMO0sof6YIMhDOyJN 4gKfoP09fdU+0NAiQBKeCZ0znkTvs4I= X-Received: by 2002:a63:3148:: with SMTP id x69mr11512107pgx.300.1564257983580; Sat, 27 Jul 2019 13:06:23 -0700 (PDT) Received: from apollo.hsd1.ca.comcast.net (c-73-71-176-3.hsd1.ca.comcast.net. [73.71.176.3]) by smtp.gmail.com with ESMTPSA id q24sm50850554pjp.14.2019.07.27.13.06.22 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Sat, 27 Jul 2019 13:06:23 -0700 (PDT) From: Khem Raj To: openembedded-devel@lists.openembedded.org Date: Sat, 27 Jul 2019 13:06:13 -0700 Message-Id: <20190727200614.5661-1-raj.khem@gmail.com> X-Mailer: git-send-email 2.22.0 MIME-Version: 1.0 Subject: [oe] [meta-oe][PATCH 1/2] collectd: Fix build with glibc 2.30 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 Signed-off-by: Khem Raj --- .../0001-Remove-including-sys-sysctl.h.patch | 81 +++++++++++++++++++ .../collectd/collectd_5.8.1.bb | 1 + 2 files changed, 82 insertions(+) create mode 100644 meta-oe/recipes-extended/collectd/collectd/0001-Remove-including-sys-sysctl.h.patch -- 2.22.0 -- _______________________________________________ Openembedded-devel mailing list Openembedded-devel@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-devel diff --git a/meta-oe/recipes-extended/collectd/collectd/0001-Remove-including-sys-sysctl.h.patch b/meta-oe/recipes-extended/collectd/collectd/0001-Remove-including-sys-sysctl.h.patch new file mode 100644 index 0000000000..450cdd0e5f --- /dev/null +++ b/meta-oe/recipes-extended/collectd/collectd/0001-Remove-including-sys-sysctl.h.patch @@ -0,0 +1,81 @@ +From e06c1b4259533ef7a396da841cbf950baccd8c11 Mon Sep 17 00:00:00 2001 +From: Khem Raj +Date: Sat, 27 Jul 2019 12:20:22 -0700 +Subject: [PATCH] Remove including sys/sysctl.h + +Glibc 2.30 has added deprecation notice and collectd detects it as +warning + +Fixes +sys/sysctl.h:21:2: error: "The header is deprecated and will be removed." [-Werror,-W#warnings] + +Upstream-Status: Pending +Signed-off-by: Khem Raj +--- + src/contextswitch.c | 4 ---- + src/memory.c | 3 --- + src/swap.c | 3 --- + src/uuid.c | 4 ---- + 4 files changed, 14 deletions(-) + +diff --git a/src/contextswitch.c b/src/contextswitch.c +index 461fb0a..75d42ae 100644 +--- a/src/contextswitch.c ++++ b/src/contextswitch.c +@@ -26,10 +26,6 @@ + #include "common.h" + #include "plugin.h" + +-#ifdef HAVE_SYS_SYSCTL_H +-#include +-#endif +- + #if HAVE_SYSCTLBYNAME + /* no global variables */ + /* #endif HAVE_SYSCTLBYNAME */ +diff --git a/src/memory.c b/src/memory.c +index e49fe84..41996d5 100644 +--- a/src/memory.c ++++ b/src/memory.c +@@ -28,9 +28,6 @@ + #include "common.h" + #include "plugin.h" + +-#ifdef HAVE_SYS_SYSCTL_H +-#include +-#endif + #ifdef HAVE_SYS_VMMETER_H + #include + #endif +diff --git a/src/swap.c b/src/swap.c +index 78f05c5..2488a5b 100644 +--- a/src/swap.c ++++ b/src/swap.c +@@ -49,9 +49,6 @@ + #if HAVE_SYS_PARAM_H + #include + #endif +-#if HAVE_SYS_SYSCTL_H +-#include +-#endif + #if HAVE_SYS_DKSTAT_H + #include + #endif +diff --git a/src/uuid.c b/src/uuid.c +index 1cb9027..1c6cdc6 100644 +--- a/src/uuid.c ++++ b/src/uuid.c +@@ -29,10 +29,6 @@ + #include "common.h" + #include "plugin.h" + +-#if HAVE_SYS_SYSCTL_H +-#include +-#endif +- + #define UUID_RAW_LENGTH 16 + #define UUID_PRINTABLE_COMPACT_LENGTH (UUID_RAW_LENGTH * 2) + #define UUID_PRINTABLE_NORMAL_LENGTH (UUID_PRINTABLE_COMPACT_LENGTH + 4) +-- +2.22.0 + diff --git a/meta-oe/recipes-extended/collectd/collectd_5.8.1.bb b/meta-oe/recipes-extended/collectd/collectd_5.8.1.bb index 6dff18c16b..ed8b8a5d2b 100644 --- a/meta-oe/recipes-extended/collectd/collectd_5.8.1.bb +++ b/meta-oe/recipes-extended/collectd/collectd_5.8.1.bb @@ -14,6 +14,7 @@ SRC_URI = "http://collectd.org/files/collectd-${PV}.tar.bz2 \ file://0001-configure-Check-for-Wno-error-format-truncation-comp.patch \ file://0005-Disable-new-gcc8-warnings.patch \ file://0006-libcollectdclient-Fix-string-overflow-errors.patch \ + file://0001-Remove-including-sys-sysctl.h.patch \ " SRC_URI[md5sum] = "bfce96c42cede5243028510bcc57c1e6" SRC_URI[sha256sum] = "e796fda27ce06377f491ad91aa286962a68c2b54076aa77a29673d53204453da"