From patchwork Wed Jun 28 02:08:07 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Khem Raj X-Patchwork-Id: 106482 Delivered-To: patch@linaro.org Received: by 10.140.101.44 with SMTP id t41csp467035qge; Tue, 27 Jun 2017 19:08:45 -0700 (PDT) X-Received: by 10.98.133.211 with SMTP id m80mr8282865pfk.164.1498615725257; Tue, 27 Jun 2017 19:08:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1498615725; cv=none; d=google.com; s=arc-20160816; b=TIQfKeYzGRBeNmyAp3n1NEqwbAikyvvXzMDNGHEtLLvnu8xhTBbrYstXrA8oUumDV+ Iyh5jiDAWoAblsAbd7ZT4OkeVHxXeQy9xDu9yI8gRyRsuUKWiUsVi031wPf5mkAAQQD7 ViBvV0Qcei8APcUUcBt1xpWtS0XWH2bWCOPXU2PFLLg3t3bmdSMLY7BD7KUuibmceOs6 FY4FbdQfbHPdSMlp4pG2b1UaJJnvBL2oZvJz4S7X5BsvHNSm3yI96q+3FCiqvi0vVs0U 2AXgE/4otTW8RML1itYk8d69qDOe1RrRByscrXfbuJDHdbeuETz3tkRns5GqAiYYEx1S jsNg== 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=h6nUTKNTyVKU7vFy2UyosGu6arVyAL6xGevW3ZDBaeA=; b=IecOj0nxxbzuFtxF6NoDGHgcvRpYc2FNxcVNPkC8VnPfVVp0CLoCTx9S3Ukr2/35s+ lM/s6nE7IBM/U01kPkpSWrjFt0vG1KsfZ1jlkhSJKwWA1A6X5MfWh/Nawx/c/JR/H0tT 38N4pO5OmqCJ8JA+TQrkdDez1yYK5LtFLB7X/4uHjK45CP+FCGrEIpc3hUgyLkXLF31p REct5XKFh54gPEbP1F5+O5IRwg/Qipj1oHRDcEk4goctgKlPkKPwtx5jCCeLJJpZxZjR ygYJBrjH90vUlSkEp9yi5hFcYkXt+1UENg9RbGbssIELM22CUMkByIlJfFAkTahSYr3Z uKJQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.b=DEKmSZLg; 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 v19si573958pgj.20.2017.06.27.19.08.44; Tue, 27 Jun 2017 19:08:45 -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=DEKmSZLg; 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 C6AEE78038; Wed, 28 Jun 2017 02:08:39 +0000 (UTC) X-Original-To: openembedded-devel@lists.openembedded.org Delivered-To: openembedded-devel@lists.openembedded.org Received: from mail-pg0-f49.google.com (mail-pg0-f49.google.com [74.125.83.49]) by mail.openembedded.org (Postfix) with ESMTP id 5638877FF9 for ; Wed, 28 Jun 2017 02:08:35 +0000 (UTC) Received: by mail-pg0-f49.google.com with SMTP id f127so24199445pgc.0 for ; Tue, 27 Jun 2017 19:08:37 -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=+6W+3Uos+LqSwgvZAQv/IVCO479xPS59lrfKMs5PqEY=; b=DEKmSZLgOYNUnq2HPR9+sJom/mvuL7UwnQ2ePi9nnRgij7SrSuMOf4yaAiG8N4Jg35 hGB4rh9vAQ3cTy6wc00425bcxGhDwD4m9nTaKAKfcC/ykU3BwbJZH8RXLbanZUyZgau3 7NKY+WjQ0IEr7kmbPtg7e8szVQ0Tnsu8KMoOP1T2J8INFFIFSZfcpPSorq2CmOgYyfdX aJVUQxrHztkWpyhxAWDpQeXnZOQzhBW7XkyjYGPr8PHwEPRslCJGQY3LaWUPdbPNdVXw eJG35Ph0Bm2WmcEzIOyo9Rcz7fkH/1dIxyhlyOZfAFz3sbKfIWwU0kTzb88jsSj8GlAt vmzA== 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=+6W+3Uos+LqSwgvZAQv/IVCO479xPS59lrfKMs5PqEY=; b=ry6YespMqnx1axDIWdaOAA9gJUrEqeWMKbGcwfbfvHvzib90dHl5QRH04D3MwPQM/W iJteM8q4kd0CZlCKDu19Nb6Oe+N+ZoVJZoCmhKe6rNQDjni2Ok6iMm5VeOuaY5Z5q09V OC4f5PhVb47ZH6lrzZhqKlakWlYPChuYhAUVW+qfQe8YLA5xXnMTguAHGHEIXgIV3mv8 7XJPQ33X/Ix66zrkYrIWoaVu3o4o4ZrMtXBYEEgONCruW/YVVlKUAgCVO551ar+AUarr Tz7Xi/xWXp9MjWSYBuLddXEijhWrZ8GZVZcCUwMQBXdWCEtirnDFh43Wk68xfJCR/TQK djpw== X-Gm-Message-State: AKS2vOzwOBglyIIsCVEGOP5EtXxwucyMQSzEsow2Xguv75S4g9ex++LF DF6PJ82Szs/q1OAV X-Received: by 10.98.131.134 with SMTP id h128mr8175639pfe.132.1498615716772; Tue, 27 Jun 2017 19:08:36 -0700 (PDT) Received: from localhost.localdomain ([2601:646:8882:b8c::3df3]) by smtp.gmail.com with ESMTPSA id b8sm1003591pfd.65.2017.06.27.19.08.35 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 27 Jun 2017 19:08:35 -0700 (PDT) From: Khem Raj To: openembedded-devel@lists.openembedded.org Date: Tue, 27 Jun 2017 19:08:07 -0700 Message-Id: <20170628020819.17047-1-raj.khem@gmail.com> X-Mailer: git-send-email 2.13.2 Subject: [oe] [meta-oe][PATCH 01/13] Add stdint.h for 'UINT16_MAX' 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 --- ...ude-stdint.h-system-header-for-UINT16_MAX.patch | 29 ++++++++++++++++++++++ .../sblim-sfcb/sblim-sfcb_1.4.9.bb | 4 ++- 2 files changed, 32 insertions(+), 1 deletion(-) create mode 100644 meta-oe/recipes-extended/sblim-sfcb/sblim-sfcb-1.4.9/0001-include-stdint.h-system-header-for-UINT16_MAX.patch -- 2.13.2 -- _______________________________________________ Openembedded-devel mailing list Openembedded-devel@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-devel diff --git a/meta-oe/recipes-extended/sblim-sfcb/sblim-sfcb-1.4.9/0001-include-stdint.h-system-header-for-UINT16_MAX.patch b/meta-oe/recipes-extended/sblim-sfcb/sblim-sfcb-1.4.9/0001-include-stdint.h-system-header-for-UINT16_MAX.patch new file mode 100644 index 000000000..c2111a2c1 --- /dev/null +++ b/meta-oe/recipes-extended/sblim-sfcb/sblim-sfcb-1.4.9/0001-include-stdint.h-system-header-for-UINT16_MAX.patch @@ -0,0 +1,29 @@ +From 446fb15f79499f52ce01ca759dbdcfe635519a82 Mon Sep 17 00:00:00 2001 +From: Khem Raj +Date: Tue, 27 Jun 2017 07:09:33 -0700 +Subject: [PATCH] include stdint.h system header for UINT16_MAX + +Fixes build error + +error: 'UINT16_MAX' undeclared (first use in this function) + +Signed-off-by: Khem Raj +--- + interopServerProvider.c | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/interopServerProvider.c b/interopServerProvider.c +index 23ae182..532febe 100644 +--- a/interopServerProvider.c ++++ b/interopServerProvider.c +@@ -33,6 +33,7 @@ + #include + #include + #include ++#include + #include + #include + #include +-- +2.13.2 + diff --git a/meta-oe/recipes-extended/sblim-sfcb/sblim-sfcb_1.4.9.bb b/meta-oe/recipes-extended/sblim-sfcb/sblim-sfcb_1.4.9.bb index fa75fcc16..ddb1cba7f 100644 --- a/meta-oe/recipes-extended/sblim-sfcb/sblim-sfcb_1.4.9.bb +++ b/meta-oe/recipes-extended/sblim-sfcb/sblim-sfcb_1.4.9.bb @@ -12,6 +12,7 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=f300afd598546add034364cd0a533261" DEPENDS = "curl libpam openssl sblim-sfc-common unzip-native" SRC_URI = "http://downloads.sourceforge.net/sblim/${BP}.tar.bz2 \ + file://sfcb.service \ file://sblim-sfcb-1.3.9-sfcbrepos-schema-location.patch \ file://sblim-sfcb-1.3.15-fix-provider-debugging.patch \ file://sblim-sfcb-1.3.16-maxMsgLen.patch \ @@ -19,7 +20,8 @@ SRC_URI = "http://downloads.sourceforge.net/sblim/${BP}.tar.bz2 \ file://sblim-sfcb-1.3.16-multilib-man-cfg.patch \ file://sblim-sfcb-1.4.8-default-ecdh-curve-name.patch \ file://sblim-sfcb-1.4.9-fix-ftbfs.patch \ - file://sfcb.service" + file://0001-include-stdint.h-system-header-for-UINT16_MAX.patch \ +" SRC_URI[md5sum] = "28021cdabc73690a94f4f9d57254ce30" SRC_URI[sha256sum] = "634a67b2f7ac3b386a79160eb44413d618e33e4e7fc74ae68b0240484af149dd" From patchwork Wed Jun 28 02:08:08 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Khem Raj X-Patchwork-Id: 106483 Delivered-To: patch@linaro.org Received: by 10.140.101.44 with SMTP id t41csp467371qge; Tue, 27 Jun 2017 19:09:09 -0700 (PDT) X-Received: by 10.98.8.81 with SMTP id c78mr8157595pfd.213.1498615749631; Tue, 27 Jun 2017 19:09:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1498615749; cv=none; d=google.com; s=arc-20160816; b=aPGyhOWoRH7cQeCAHhl6dg/iKZP6Ildux7/bljewSf+QYQSseFpDH0+V6Lx20sbm2A O2H2/Nqrqh5Mj5u8NXog9JnsT/BrguUL0fPGy/sHZ27Z8GhWqqtMfEkhSf7L5DVGyxLj FtCSAh0se+i5oEQNIDqYSWyoEJ8qnD7S93VV+XI99oO80IicmiAcQb+i//uEwy8TY3sU Juwq8Fp4K0zRQcidBs1KX/bM48JO+xAwTyFC2y6+VtIN9JkX21HIajcQDiqs742f/EWC 1MQwqO8mYrp2MEclFwx4VB8Oy0IsGpdMzOprCXBtPdiahwKVCB97Qq8iDnIH+4LmhROs /wFQ== 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=7mPf6xuSbNi1Vqp4BYiWfJYgwskFsIPbnjVuWAgQISw=; b=TrR1kEKoiTjIqPTHR5vjKysvI/geEk/KYKZxBsqbmvh/k3HwHU3NeJb4FMm+rYMJTb K1Z/hx0sWzOcgvMg2EpR/eHnq+HvTGG9FbzECgZO7YHZw0UVb6rf2WTNg/2eUy+6MJPA zXTFt9zMw6t2GllbTF0Y2imCu6nTURwQLD5Mm7nyS3TGsLajbAfOe/WUBL1+LlJvyOL6 JIyC6NT2ft7K3RotqAl9c2lUf26RbnZAaMkh1TE+mDDCOyfeFm34IgW8iHocW1foQSA/ cV464I0Q+a3HueQwxVcZ1LFPvLuc1TvF1DlTcVGNjLS9Mpy8+ggJL7/oxhjS3Cgjb2RE HgmQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.b=CFlCpNXf; 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 s15si652525plj.260.2017.06.27.19.09.09; Tue, 27 Jun 2017 19:09:09 -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=CFlCpNXf; 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 27802780AA; Wed, 28 Jun 2017 02:09:06 +0000 (UTC) X-Original-To: openembedded-devel@lists.openembedded.org Delivered-To: openembedded-devel@lists.openembedded.org Received: from mail-pf0-f173.google.com (mail-pf0-f173.google.com [209.85.192.173]) by mail.openembedded.org (Postfix) with ESMTP id 976ED77FF9 for ; Wed, 28 Jun 2017 02:08:37 +0000 (UTC) Received: by mail-pf0-f173.google.com with SMTP id q86so25368009pfl.3 for ; Tue, 27 Jun 2017 19:08:39 -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=0GlnrqrS+yqZyHE3rSVhEqFhTM0GAkbb3wYnsxGFYIw=; b=CFlCpNXf5x+UdNkoTHmdne8jvGYqEnsUDjly92YFvjuh6RUqgpG1+ugX1QXPOACct1 7RenKysKMNUKqQzM8QA1aMC/+jwdCgjIKG6E54VlVdi/QUdHGWjZfUPxsWgpYuKB11fb BxrpS1pE3Y+qvkool41wXSgNxvy6COegpbd5IsyGwB4CSkrS0mbXmXKoBVErepGGw/XO Edx3gbDGbRZ4kWRGjTHHUDog6QiIcHOfAUdihdhLKBaAvso20dWR6hJjDEt7JGm77Zu9 kxNBgZQwpeIa2RB9mUQHPHO5ksoPpWwbd1sLSsWU8f3/dDQCq7KD4gy0bbdFWXtB51Ye WQQA== 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=0GlnrqrS+yqZyHE3rSVhEqFhTM0GAkbb3wYnsxGFYIw=; b=rCCeWFwoYQRpZKr9V0fv9fQbOgJNfv+/FNHycIkjxIGEVAmhKEIooevIARWWFlz3rc GfKjz09MS9NnIKG7v2wyzOS29WbLSyf6+A3C65OUWM1G/50173xAti/g9m1GifT+bi0h 6e7QkJV1VSFqRyXUQMBSxmJz8gszLTmY/sP/AUZtfNDHhQtEPV7hFiR+LnA1w0IXAMsG IxvCE2gDkFr5Xs2ziUB3jsbhvkbV7EJx6Zb4yI3DifVhjLJTNvRdndkNacAEN+L8LMVv HqIBpDci+AaVrGgX3dXEqGHuPMuT9kO34jtSpCICUsiyV3tQUmt+z+HIdOda9K1S/xO7 ZJVQ== X-Gm-Message-State: AKS2vOyR2oIK7Tcd/W+zK8Pg1urqVF33L+yfRauwkRl1RB/03yuOtfCq 2goXZKRSmcTWLCty X-Received: by 10.98.89.129 with SMTP id k1mr8371277pfj.28.1498615718471; Tue, 27 Jun 2017 19:08:38 -0700 (PDT) Received: from localhost.localdomain ([2601:646:8882:b8c::3df3]) by smtp.gmail.com with ESMTPSA id b8sm1003591pfd.65.2017.06.27.19.08.36 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 27 Jun 2017 19:08:37 -0700 (PDT) From: Khem Raj To: openembedded-devel@lists.openembedded.org Date: Tue, 27 Jun 2017 19:08:08 -0700 Message-Id: <20170628020819.17047-2-raj.khem@gmail.com> X-Mailer: git-send-email 2.13.2 In-Reply-To: <20170628020819.17047-1-raj.khem@gmail.com> References: <20170628020819.17047-1-raj.khem@gmail.com> Subject: [oe] [meta-oe][PATCH 02/13] networkmanager: Fix build with hardening 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 using xlocale.h Signed-off-by: Khem Raj --- ...stemd-xlocale.h-is-dropped-by-newer-glibc.patch | 29 ++++++++++ ...-string-in-g_dbus_message_new_method_erro.patch | 67 ++++++++++++++++++++++ .../networkmanager/networkmanager_1.4.4.bb | 2 + 3 files changed, 98 insertions(+) create mode 100644 meta-oe/recipes-connectivity/networkmanager/networkmanager/0001-systemd-xlocale.h-is-dropped-by-newer-glibc.patch create mode 100644 meta-oe/recipes-connectivity/networkmanager/networkmanager/0002-user-format-string-in-g_dbus_message_new_method_erro.patch -- 2.13.2 -- _______________________________________________ Openembedded-devel mailing list Openembedded-devel@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-devel diff --git a/meta-oe/recipes-connectivity/networkmanager/networkmanager/0001-systemd-xlocale.h-is-dropped-by-newer-glibc.patch b/meta-oe/recipes-connectivity/networkmanager/networkmanager/0001-systemd-xlocale.h-is-dropped-by-newer-glibc.patch new file mode 100644 index 000000000..4234e2be2 --- /dev/null +++ b/meta-oe/recipes-connectivity/networkmanager/networkmanager/0001-systemd-xlocale.h-is-dropped-by-newer-glibc.patch @@ -0,0 +1,29 @@ +From a9bfe6f2029d75caf28fcdf3e740843cf6359615 Mon Sep 17 00:00:00 2001 +From: Khem Raj +Date: Tue, 27 Jun 2017 07:31:25 -0700 +Subject: [PATCH 1/2] systemd: xlocale.h is dropped by newer glibc + +Signed-off-by: Khem Raj +--- + src/systemd/src/basic/parse-util.c | 4 ---- + 1 file changed, 4 deletions(-) + +diff --git a/src/systemd/src/basic/parse-util.c b/src/systemd/src/basic/parse-util.c +index 9c21e5a..dd95d1f 100644 +--- a/src/systemd/src/basic/parse-util.c ++++ b/src/systemd/src/basic/parse-util.c +@@ -25,11 +25,7 @@ + #include + #include + #include +-#ifdef __GLIBC__ +-#include +-#else + #include +-#endif + #include "alloc-util.h" + #include "extract-word.h" + #include "macro.h" +-- +2.13.2 + diff --git a/meta-oe/recipes-connectivity/networkmanager/networkmanager/0002-user-format-string-in-g_dbus_message_new_method_erro.patch b/meta-oe/recipes-connectivity/networkmanager/networkmanager/0002-user-format-string-in-g_dbus_message_new_method_erro.patch new file mode 100644 index 000000000..e32b5c00d --- /dev/null +++ b/meta-oe/recipes-connectivity/networkmanager/networkmanager/0002-user-format-string-in-g_dbus_message_new_method_erro.patch @@ -0,0 +1,67 @@ +From adc0668b854289a11cfc29597b5566ba1869d17e Mon Sep 17 00:00:00 2001 +From: Khem Raj +Date: Tue, 27 Jun 2017 07:32:09 -0700 +Subject: [PATCH 2/2] user format string in g_dbus_message_new_method_error () + +This fixes format errors with -Werror=format-security + +Signed-off-by: Khem Raj +--- + src/nm-manager.c | 6 ++++++ + 1 file changed, 6 insertions(+) + +diff --git a/src/nm-manager.c b/src/nm-manager.c +index c3d65cd..e814912 100644 +--- a/src/nm-manager.c ++++ b/src/nm-manager.c +@@ -4871,6 +4871,7 @@ prop_set_auth_done_cb (NMAuthChain *chain, + if (error || (result != NM_AUTH_CALL_RESULT_YES)) { + reply = g_dbus_message_new_method_error (pfd->message, + NM_PERM_DENIED_ERROR, ++ "%s", + (error_message = "Not authorized to perform this operation")); + if (error) + error_message = error->message; +@@ -4882,6 +4883,7 @@ prop_set_auth_done_cb (NMAuthChain *chain, + if (!object) { + reply = g_dbus_message_new_method_error (pfd->message, + "org.freedesktop.DBus.Error.UnknownObject", ++ "%s", + (error_message = "Object doesn't exist.")); + goto done; + } +@@ -4890,6 +4892,7 @@ prop_set_auth_done_cb (NMAuthChain *chain, + if (!nm_exported_object_get_interface_by_type (object, pfd->interface_type)) { + reply = g_dbus_message_new_method_error (pfd->message, + "org.freedesktop.DBus.Error.InvalidArgs", ++ "%s", + (error_message = "Object is of unexpected type.")); + goto done; + } +@@ -4905,6 +4908,7 @@ prop_set_auth_done_cb (NMAuthChain *chain, + if (global_dns && !nm_global_dns_config_is_internal (global_dns)) { + reply = g_dbus_message_new_method_error (pfd->message, + NM_PERM_DENIED_ERROR, ++ "%s", + (error_message = "Global DNS configuration already set via configuration file")); + goto done; + } +@@ -4949,6 +4953,7 @@ do_set_property_check (gpointer user_data) + if (!pfd->subject) { + reply = g_dbus_message_new_method_error (pfd->message, + NM_PERM_DENIED_ERROR, ++ "%s", + (error_message = "Could not determine request UID.")); + goto out; + } +@@ -4958,6 +4963,7 @@ do_set_property_check (gpointer user_data) + if (!chain) { + reply = g_dbus_message_new_method_error (pfd->message, + NM_PERM_DENIED_ERROR, ++ "%s", + (error_message = "Could not authenticate request.")); + goto out; + } +-- +2.13.2 + diff --git a/meta-oe/recipes-connectivity/networkmanager/networkmanager_1.4.4.bb b/meta-oe/recipes-connectivity/networkmanager/networkmanager_1.4.4.bb index 0de4383fb..e7dd4ef31 100644 --- a/meta-oe/recipes-connectivity/networkmanager/networkmanager_1.4.4.bb +++ b/meta-oe/recipes-connectivity/networkmanager/networkmanager_1.4.4.bb @@ -34,6 +34,8 @@ SRC_URI = "${GNOME_MIRROR}/NetworkManager/${@gnome_verdir("${PV}")}/NetworkManag file://0001-check-for-strndupa-before-using-it.patch \ file://0001-dns-resolved-add-systemd-resolved-backend.patch \ file://0001-dns-resolved-also-check-for-etc-resolv-conf.systemd.patch \ + file://0001-systemd-xlocale.h-is-dropped-by-newer-glibc.patch \ + file://0002-user-format-string-in-g_dbus_message_new_method_erro.patch \ " SRC_URI[md5sum] = "63f1e0d6d7e9099499d062c84c927a75" SRC_URI[sha256sum] = "829378f318cc008d138a23ca6a9191928ce75344e7e47a2f2c35f4ac82133309" From patchwork Wed Jun 28 02:08:09 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Khem Raj X-Patchwork-Id: 106484 Delivered-To: patch@linaro.org Received: by 10.140.101.44 with SMTP id t41csp467421qge; Tue, 27 Jun 2017 19:09:16 -0700 (PDT) X-Received: by 10.98.5.130 with SMTP id 124mr8155424pff.209.1498615755955; Tue, 27 Jun 2017 19:09:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1498615755; cv=none; d=google.com; s=arc-20160816; b=qzqerya9+5y3aTXtYFDHIaTkk4cvAg1YU5cPIDFRozIR9ZkKDpLaGJw0eVgmKOcmrT ElVBp8zgMidqn8kcZZk2ITYN2X4zIJoocabqXadlXG89YwjAZmEGQLAaCC37Hx4Ak290 aRMdefM6IUZ7CuitgvO8d2oV+T27L7Z9Ada0RNVDX3H2SltvK+vTzLG5gpGbw05HotDF Y2xOEZ8AaYgwS1II8yXamNaytmKrhwDdnGtE6PxOner6ELyl2uAGexe2+K2NT9rKHg/b DSriLiJFgI2ChJ9azFWdd23wEedrdhqPcoCP/0eepaElRpTPG4AaftNwogWvilO15v99 sLZQ== 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=TCvSBnnpdv4s3iP1wjtSvUsap7Wh3slm6PefPMocrig=; b=iRsCKB8ZbdZJ2BjZlckfwVui7hmNlJ6424UiKICvuwUhV3pRzk6qPWNNUbwPEwaFLt XFyQVeakuSCqtrduEm6BxHjwKLj06MF9Snas/RbyoXXlV2uSKYf+JW7MwOpNnFD2n6qY PknfWvoMDiB8jOFTCOyFnLL8jgkiXIizAUPo7phHIgh1Tp6fROyMu+1a+aBl8tS6QYum T9MqaxuAPq8znKFYjM2VzjxnXT+B4W+Zt2MXRLNOOLNVdOgyXeUrasEg2ivilau4XsMq zTGydO9ykpyI+buvX4puiDzFy9BY54VhXTQqjVWjFg+NNF4i8PPQO/O0AYKiW8+lHg0p hfYg== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.b=bePoO9pi; 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 f22si644904plk.15.2017.06.27.19.09.15; Tue, 27 Jun 2017 19:09:15 -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=bePoO9pi; 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 55685780C0; Wed, 28 Jun 2017 02:09:08 +0000 (UTC) X-Original-To: openembedded-devel@lists.openembedded.org Delivered-To: openembedded-devel@lists.openembedded.org Received: from mail-pf0-f177.google.com (mail-pf0-f177.google.com [209.85.192.177]) by mail.openembedded.org (Postfix) with ESMTP id DF44B77FFE for ; Wed, 28 Jun 2017 02:08:39 +0000 (UTC) Received: by mail-pf0-f177.google.com with SMTP id q86so25368384pfl.3 for ; Tue, 27 Jun 2017 19:08:41 -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=V0cvMaCtUtYkFG7Wt8DnhA3b96ElrrUmR3MWXZT5wXI=; b=bePoO9piVNNIeNNWmp92Mzn1WAaYS+9/0E6U+7MflOYY362jXXmC/Jqn6pjPYJRdim BaJkCgoNYdoCeoG5NfbpbOPGNYgbJ62Gh2qrlhJ79RQCjsGa+KOVGEay/eE3WLhilCE5 s4eK+XgULOJccBmUxYWzAxCx60F16kx1cedI/FsnCN8S/TG4ddEryiMNo/IrekQgd8vp jpTuJv3xk41mo9XfURRCdG+MBS79bb0Dkss8pqg+j9SiaUvE4dNg11qlOyS+7Mxj5bhG 5yNY2iauGX1lfFf9s/bFKJqWhf+FeqPSWpWykYBL5/gtWCTbH4ed1YK+hWW1XW8PBFYY bxdg== 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=V0cvMaCtUtYkFG7Wt8DnhA3b96ElrrUmR3MWXZT5wXI=; b=bi83XJ/7Puk5WfF2+vKYUdI2ts1cDS60qIrB7XFEj0utYZTrfVMvKgENBh+VmNDW// EACgv29f56UvwaYi/vjzpLNBpVO70IIsSBj9tAkBsN4qE4yJvimjYISHP6Zq2mKoow64 19m4eaGU0O7rv1J95Y1COb/0AUcSgqcfB+/dkSSR3uIupTsTjp0tYXBMuV6qTQcH5zSu vPVtj2dWCTS44sHM0qCRTNzq2oaeqIHQ1iTIZXapVqEQks6amAGigneMEfS0POXQsXKC CGCl+FAcwrAaWfYy7RodTjJCP/6e/lmFFHJUzCjRuEKKdl5ZIlGJQNav/UVOyRO+IDit Dm0w== X-Gm-Message-State: AKS2vOwI3mN+f8Oye1ieXKQs8GyTytnykcnheMEyMR1M4+uVPV6CdR72 mXn8arHuaVugrhOg X-Received: by 10.98.58.11 with SMTP id h11mr3540728pfa.148.1498615720450; Tue, 27 Jun 2017 19:08:40 -0700 (PDT) Received: from localhost.localdomain ([2601:646:8882:b8c::3df3]) by smtp.gmail.com with ESMTPSA id b8sm1003591pfd.65.2017.06.27.19.08.38 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 27 Jun 2017 19:08:39 -0700 (PDT) From: Khem Raj To: openembedded-devel@lists.openembedded.org Date: Tue, 27 Jun 2017 19:08:09 -0700 Message-Id: <20170628020819.17047-3-raj.khem@gmail.com> X-Mailer: git-send-email 2.13.2 In-Reply-To: <20170628020819.17047-1-raj.khem@gmail.com> References: <20170628020819.17047-1-raj.khem@gmail.com> Subject: [oe] [meta-networking][PATCH 03/13] strongswan: Include stdint.h for uintptr_t 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 --- ...1-memory.h-Include-stdint.h-for-uintptr_t.patch | 26 ++++++++++++++++++++++ .../recipes-support/strongswan/strongswan_5.5.3.bb | 5 +++-- 2 files changed, 29 insertions(+), 2 deletions(-) create mode 100644 meta-networking/recipes-support/strongswan/files/0001-memory.h-Include-stdint.h-for-uintptr_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/meta-networking/recipes-support/strongswan/files/0001-memory.h-Include-stdint.h-for-uintptr_t.patch b/meta-networking/recipes-support/strongswan/files/0001-memory.h-Include-stdint.h-for-uintptr_t.patch new file mode 100644 index 000000000..7ebc39818 --- /dev/null +++ b/meta-networking/recipes-support/strongswan/files/0001-memory.h-Include-stdint.h-for-uintptr_t.patch @@ -0,0 +1,26 @@ +From 2a3ab04bbdc4624792886aa51579eadb427ef99e Mon Sep 17 00:00:00 2001 +From: Khem Raj +Date: Tue, 27 Jun 2017 07:42:11 -0700 +Subject: [PATCH] memory.h: Include stdint.h for uintptr_t + +Signed-off-by: Khem Raj +--- + src/libstrongswan/utils/utils/memory.h | 2 ++ + 1 file changed, 2 insertions(+) + +diff --git a/src/libstrongswan/utils/utils/memory.h b/src/libstrongswan/utils/utils/memory.h +index b978e7c..55aaaf5 100644 +--- a/src/libstrongswan/utils/utils/memory.h ++++ b/src/libstrongswan/utils/utils/memory.h +@@ -22,6 +22,8 @@ + #ifndef MEMORY_H_ + #define MEMORY_H_ + ++#include ++ + /** + * Helper function that compares two binary blobs for equality + */ +-- +2.13.2 + diff --git a/meta-networking/recipes-support/strongswan/strongswan_5.5.3.bb b/meta-networking/recipes-support/strongswan/strongswan_5.5.3.bb index 9215233b1..3fb56bcfe 100644 --- a/meta-networking/recipes-support/strongswan/strongswan_5.5.3.bb +++ b/meta-networking/recipes-support/strongswan/strongswan_5.5.3.bb @@ -8,8 +8,9 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263" DEPENDS = "gmp openssl flex-native flex bison-native" SRC_URI = "http://download.strongswan.org/strongswan-${PV}.tar.bz2 \ - file://fix-funtion-parameter.patch \ -" + file://fix-funtion-parameter.patch \ + file://0001-memory.h-Include-stdint.h-for-uintptr_t.patch \ + " SRC_URI[md5sum] = "4afffe3c219bb2e04f09510905af836b" SRC_URI[sha256sum] = "c5ea54b199174708de11af9b8f4ecf28b5b0743d4bc0e380e741f25b28c0f8d4" From patchwork Wed Jun 28 02:08:10 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Khem Raj X-Patchwork-Id: 106485 Delivered-To: patch@linaro.org Received: by 10.140.101.44 with SMTP id t41csp467512qge; Tue, 27 Jun 2017 19:09:23 -0700 (PDT) X-Received: by 10.84.138.131 with SMTP id 3mr9169062plp.24.1498615763677; Tue, 27 Jun 2017 19:09:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1498615763; cv=none; d=google.com; s=arc-20160816; b=Xz9V6M7r+Qo3HE3fFmvaS13FNQcTztSITaqaw7UBb6A0HyPfVQ9jdM+O1FNm5F6eK9 FaRDnw8oQJNS3F3remUNdY+RV30Bwh8eTj7lfqNf2sAxMIqd6jvnafrhI7pB+US2o5/B V9kk8QKDANNukz14aVX4h3UGJzYRMBydq8Z5eGIdrtS1FVKxmuJhrXSIVM+7HhKv4csf w2XKUwc+Q9LxI7FtwHqZQ9Oi7QnWIPVQ1yelsjoXgJfbs3HmP7i3MO801tjON4TkVMVE utX1e/dHiWktear2j8KwSJSm0Qzm6hBGuK/HH8AEM/2IVZ9j1Hpu0HGj8e+5c8+VamRV tL3g== 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=Xf0bN6fmF0LtvL1MQQof7MPZnYFeKG0VOlikQmOeqVI=; b=fyxbPOkjhVZfR8uesKx3ocTDaeEp27z1VA+KEl/e7JgUTlOsFt1dtjotYJCTCbgg0N CZ6ouXgwEY/WmHQ46USPOGu59p2bH2Mtu66Bxpy/QCN6f0nHSqTNZTN5Q1l8YabgwEWA lais3amZ2cNU97oHIjJTFkt7DhS5oDkbX7ZnI5HweLcNFp0vfKmHA2NOoJ7r+TnGQMvu mvAFdJclRz6xn/mo8U0TmoH4K/D3njFbalOaiLeq0uX3OKxZe6j+VNaFXOc9xLGag4N5 uECsNti65ljEHMkuwX3E6afwwoNPdMrYQDsBy9Svw9EQi3Bn/WLEYz73I4v2GpGlRGE9 BkOQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.b=hsiwIJOh; 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 i81si577142pfj.246.2017.06.27.19.09.23; Tue, 27 Jun 2017 19:09:23 -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=hsiwIJOh; 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 6C594780CE; Wed, 28 Jun 2017 02:09:09 +0000 (UTC) X-Original-To: openembedded-devel@lists.openembedded.org Delivered-To: openembedded-devel@lists.openembedded.org Received: from mail-pf0-f178.google.com (mail-pf0-f178.google.com [209.85.192.178]) by mail.openembedded.org (Postfix) with ESMTP id A76E777FFE for ; Wed, 28 Jun 2017 02:08:41 +0000 (UTC) Received: by mail-pf0-f178.google.com with SMTP id q86so25368693pfl.3 for ; Tue, 27 Jun 2017 19:08:43 -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=Hj2RKKzuNCzpAlq4M1fF9C7isH8dhEgSYnvRq9pOzAE=; b=hsiwIJOh/mMxjvvtnIjJvw4sR7BvW8HtG+FWY0YdQ91l6duQIBmbjckiNFfgWUiNvG UHEkUf1dnwz0WILxMLBrxF2jNdPycK0K4cDl8JC/RyOVCmAUgJByrk2zAFB2WyAgcybd LEHU2TDu8MNsKjcRJRbfNpYDRGSSGNZh6T8rVtK9hPlpmlkyX0GwlRAE6R3UISGNTLqF UJimQ3Fzew9yP4zQaMZ6kUlAUyIQs19Ng5aD4FrPGKOLM3nmKcHj5bNl0g7B9RF59irs Q6cJ8Szgy5pntgYuDeqRM0CYJmk64fJIlfgfyCkA5cRMZeM2dhgwRqZdkNHoudgCs/y4 dttg== 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=Hj2RKKzuNCzpAlq4M1fF9C7isH8dhEgSYnvRq9pOzAE=; b=GrFxRysjo8aAwasDQuUppV1q9LTSLtb0BBUUE9kbmHDHQo9gUEjTWiFqMnA0qCeENt 2vYdkfbvqP+iOI+cJAmN9zchcpsiuG98wVnB1Xc4RR3LKkJLLyyYAFoKgQ6fJaQAYepv qZM5LAq/M4OVqG0QV+lPeN3P4if1wptTsaeJMf3FvYDRWuHTpIBAMtSb9J5q9JkpYQY2 ZYlUvNesiOgzowwtTlMO4LfxqLRadata+wMySwZ3pfqz/X90mwII0pQ5IfD+ZTtMW8/O /VgHPaT+AOvrartq+1PBifrTJ32Uk9mEbxL3xGSiJ4AjhrCp4AZy4ArHcRBjIWC3PyuF bPDA== X-Gm-Message-State: AKS2vOzV0vmyU7zsbTHCpmRRyC4PWHpmHtU8D8D/96qhCxb+7OlV8z7u 3prRldrh8tpR/VfS X-Received: by 10.99.135.73 with SMTP id i70mr8241481pge.74.1498615722308; Tue, 27 Jun 2017 19:08:42 -0700 (PDT) Received: from localhost.localdomain ([2601:646:8882:b8c::3df3]) by smtp.gmail.com with ESMTPSA id b8sm1003591pfd.65.2017.06.27.19.08.40 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 27 Jun 2017 19:08:41 -0700 (PDT) From: Khem Raj To: openembedded-devel@lists.openembedded.org Date: Tue, 27 Jun 2017 19:08:10 -0700 Message-Id: <20170628020819.17047-4-raj.khem@gmail.com> X-Mailer: git-send-email 2.13.2 In-Reply-To: <20170628020819.17047-1-raj.khem@gmail.com> References: <20170628020819.17047-1-raj.khem@gmail.com> Subject: [oe] [meta-oe][PATCH 04/13] umip: Fix buid with hardening 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 --- .../0001-Add-format-string-to-fprintf-call.patch | 26 ++++++++++++++++++++++ meta-oe/recipes-connectivity/umip/umip_1.0.bb | 9 ++++---- 2 files changed, 31 insertions(+), 4 deletions(-) create mode 100644 meta-oe/recipes-connectivity/umip/files/0001-Add-format-string-to-fprintf-call.patch -- 2.13.2 -- _______________________________________________ Openembedded-devel mailing list Openembedded-devel@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-devel diff --git a/meta-oe/recipes-connectivity/umip/files/0001-Add-format-string-to-fprintf-call.patch b/meta-oe/recipes-connectivity/umip/files/0001-Add-format-string-to-fprintf-call.patch new file mode 100644 index 000000000..8e5f4da36 --- /dev/null +++ b/meta-oe/recipes-connectivity/umip/files/0001-Add-format-string-to-fprintf-call.patch @@ -0,0 +1,26 @@ +From a0ad5128d14b022239445e251cf4a9826e86aa96 Mon Sep 17 00:00:00 2001 +From: Khem Raj +Date: Tue, 27 Jun 2017 07:48:31 -0700 +Subject: [PATCH] Add format string to fprintf() call + +Signed-off-by: Khem Raj +--- + src/vt.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/src/vt.c b/src/vt.c +index 795d393..a533d3d 100644 +--- a/src/vt.c ++++ b/src/vt.c +@@ -499,7 +499,7 @@ static int vt_cmd_dump_candidates(const struct vt_handle *vh, + } + llen += cmdlen; + +- ret = fprintf(vh->vh_stream, e->cmd); ++ ret = fprintf(vh->vh_stream, "%s", e->cmd); + if (ret < 0) + return ret; + +-- +2.13.2 + diff --git a/meta-oe/recipes-connectivity/umip/umip_1.0.bb b/meta-oe/recipes-connectivity/umip/umip_1.0.bb index a25056645..cbf306144 100644 --- a/meta-oe/recipes-connectivity/umip/umip_1.0.bb +++ b/meta-oe/recipes-connectivity/umip/umip_1.0.bb @@ -10,10 +10,11 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=073dc31ccb2ebed70db54f1e8aeb4c33" DEPENDS = "rpm indent-native" SRC_URI = "git://git.umip.org/umip.git \ - file://add-dependency-to-support-parallel-compilation.patch \ - file://mip6d \ - file://mip6d.service \ -" + file://add-dependency-to-support-parallel-compilation.patch \ + file://mip6d \ + file://mip6d.service \ + file://0001-Add-format-string-to-fprintf-call.patch \ + " SRCREV = "428974c2d0d8e75a2750a3ab0488708c5dfdd8e3" S = "${WORKDIR}/git" From patchwork Wed Jun 28 02:08:11 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Khem Raj X-Patchwork-Id: 106486 Delivered-To: patch@linaro.org Received: by 10.140.101.44 with SMTP id t41csp467667qge; Tue, 27 Jun 2017 19:09:34 -0700 (PDT) X-Received: by 10.84.198.129 with SMTP id p1mr8954310pld.120.1498615774252; Tue, 27 Jun 2017 19:09:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1498615774; cv=none; d=google.com; s=arc-20160816; b=iHN6wiShsDuoYx80OQGjk/OmDQPFGThlnfqFw62gyqaqKkOkNdQRXvtjgoLKahLMyr poq+sydhtImEi3XxWyCtOungIXmbnKeBDgKI3IfK5bsHb6+aIESWRCbQM3p5t+cUHiXy PzjFu3XI/98kwlIQQ7U4my1Hqy6ujeRrN4oNhRuGBJtk2pr1s/sM4yWYC0DQd2S6JTsz GwuRk2n1BYdMN3OGrgFail2rkaRISTM1N8OhHFh5VK6ShFBT+ASgarspUJAfOiIUxOTw Nvx7d+G/IONVxetMcO9Wll1aUpum3ir0hUR17dRT3hRzCWvPX5ZdmaY1tBBaEbTanPzX aNeA== 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:arc-authentication-results; bh=YewZtNvwW1Sed2TBR3ExZ1dKPngxZt+8nsDk1asRqUA=; b=R620fA8tvV7d/gKYibmCXRnIRKnsge1SCSn3oJXmaB9MAuhpbrdkx+ili0LOa4SU1u DM4J0eSGzkNo4fevdRh/JsLJpWpNGxclv7z2YqYjJ4ZUoS2hbFUteHSwYjUonv5RlZr+ SWkvOvgiGQ3fDzQoR8q9xKEdw8sKcdkUWm0aGkVsgkiWZYvYRJZlkCUGiwueK+eQ8Xjc 6mA1CAq8XvlEOSK06AKWCc6qG3L6ldejAVnZ46/9eDltAwSXEAwlQ4bFA94B2aED97+j S4oygaXrrJlxBygmj2wYVxA7dTapwa2WjHNIdCyTNeQvWQfI8h79nqJ4KjBkpwk4K7z0 EYKg== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.b=ilimCAwO; 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 d89si585979pfl.148.2017.06.27.19.09.33; Tue, 27 Jun 2017 19:09:34 -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=ilimCAwO; 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 85EA378067; Wed, 28 Jun 2017 02:09:16 +0000 (UTC) X-Original-To: openembedded-devel@lists.openembedded.org Delivered-To: openembedded-devel@lists.openembedded.org Received: from mail-pf0-f178.google.com (mail-pf0-f178.google.com [209.85.192.178]) by mail.openembedded.org (Postfix) with ESMTP id 5544378070 for ; Wed, 28 Jun 2017 02:08:43 +0000 (UTC) Received: by mail-pf0-f178.google.com with SMTP id e7so25445493pfk.0 for ; Tue, 27 Jun 2017 19:08:45 -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 :mime-version:content-transfer-encoding; bh=L2g2FffHRTU5QNXBDU5sdHZK5lQUWo/IJt8NOx4Sb6w=; b=ilimCAwOyHkRjgbxqXTBkBKKnxAu7Vnvf6dAVQAIS6sKRwQ0HJMaR1Ss5O6BrlAhB9 1jA7lSFB6T/N5KCsv2ps+9YXb11iU9WuHExqoNH9hAyWajkvSnpmALcqPDUjrldXS54I NBmCIvZnlQBLOsUAJYSAdyxKBdpbotWo51pESzd8ILy4wHgUDoJOleYVdtGMESH3aqGu 3YfgWl6QfTQa3ILT3XjOiBpWqVadicccymaeqsuzhTRSg8ZybEp+GFICuEgmzJSbGrBK 0lakxLodzV3SwcU2qEPkiPw0C8COU2/NCsfviFNiuRKWmeiFUGdokJ+5gUXcvhP5sNAp uW/g== 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=L2g2FffHRTU5QNXBDU5sdHZK5lQUWo/IJt8NOx4Sb6w=; b=EJ8NDDW/8IezH0YxPjse8hcZZvJgn4X+4B8khxr3gNQ9fiPllWiyrh1u2TXjhckgot ZBb4aGerTGLmzOv8XTpPyla2nUUsOGOA5gTGYVNa49w70CUQAkqYv4X1ad33niWvtrei Az+62p0M4Fx8/nl6VWcFJDvNbt+jRgWMAcN/RhV/Nx0bW2s1zi9obJeDHKydzDa5CYwl cT8+3ttScVtJYx1RoW7LLckwhRQooVkqDGi5aRj5oVEcDO584GZdcUqDIdJoTbRdEhGO VpPcikwcbls+JlOgkMYmpl/Q0JvGpPBjgwCj9jsiWRrRYX7mILHWNG6pXl0imcjhmvbE vMDw== X-Gm-Message-State: AKS2vOyUeoJv0EgpKdvHwR2IqtAroY/SvzbWka5ekrDM7uRHPfz2Whfn GBUamlJgs609+sB3 X-Received: by 10.99.226.83 with SMTP id y19mr8147021pgj.257.1498615724486; Tue, 27 Jun 2017 19:08:44 -0700 (PDT) Received: from localhost.localdomain ([2601:646:8882:b8c::3df3]) by smtp.gmail.com with ESMTPSA id b8sm1003591pfd.65.2017.06.27.19.08.42 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 27 Jun 2017 19:08:43 -0700 (PDT) From: Khem Raj To: openembedded-devel@lists.openembedded.org Date: Tue, 27 Jun 2017 19:08:11 -0700 Message-Id: <20170628020819.17047-5-raj.khem@gmail.com> X-Mailer: git-send-email 2.13.2 In-Reply-To: <20170628020819.17047-1-raj.khem@gmail.com> References: <20170628020819.17047-1-raj.khem@gmail.com> MIME-Version: 1.0 Subject: [oe] [meta-oe][PATCH 05/13] gtkperf: Fix build with hardening flags 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-Include-stdlib.h-for-exit-API.patch | 34 ++++++++++++++++++ .../0002-timing.c-Fix-format-security-errors.patch | 42 ++++++++++++++++++++++ meta-oe/recipes-graphics/gtkperf/gtkperf_0.40.bb | 5 ++- 3 files changed, 80 insertions(+), 1 deletion(-) create mode 100644 meta-oe/recipes-graphics/gtkperf/gtkperf/0001-Include-stdlib.h-for-exit-API.patch create mode 100644 meta-oe/recipes-graphics/gtkperf/gtkperf/0002-timing.c-Fix-format-security-errors.patch diff --git a/meta-oe/recipes-graphics/gtkperf/gtkperf/0001-Include-stdlib.h-for-exit-API.patch b/meta-oe/recipes-graphics/gtkperf/gtkperf/0001-Include-stdlib.h-for-exit-API.patch new file mode 100644 index 000000000..d529ddd23 --- /dev/null +++ b/meta-oe/recipes-graphics/gtkperf/gtkperf/0001-Include-stdlib.h-for-exit-API.patch @@ -0,0 +1,34 @@ +From f8ac48abded02353918b02db38629988bd111c46 Mon Sep 17 00:00:00 2001 +From: Khem Raj +Date: Tue, 27 Jun 2017 08:19:44 -0700 +Subject: [PATCH 1/2] Include stdlib.h for exit() API +MIME-Version: 1.0 +Content-Type: text/plain; charset=UTF-8 +Content-Transfer-Encoding: 8bit + +Fixes +main.c:81: warning: incompatible implicit declaration of built-in function ‘exit’ + +Patch from Debian +http://sources.debian.net/src/gtkperf/0.40%2Bds-2/debian/patches/01-include_stdlib.patch/ + +Signed-off-by: Khem Raj +--- + src/main.c | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/src/main.c b/src/main.c +index 888eb36..c226799 100644 +--- a/src/main.c ++++ b/src/main.c +@@ -11,6 +11,7 @@ + #endif + + #include ++#include + + #include "interface.h" + #include "support.h" +-- +2.13.2 + diff --git a/meta-oe/recipes-graphics/gtkperf/gtkperf/0002-timing.c-Fix-format-security-errors.patch b/meta-oe/recipes-graphics/gtkperf/gtkperf/0002-timing.c-Fix-format-security-errors.patch new file mode 100644 index 000000000..0548040af --- /dev/null +++ b/meta-oe/recipes-graphics/gtkperf/gtkperf/0002-timing.c-Fix-format-security-errors.patch @@ -0,0 +1,42 @@ +From 47974b8473c5b928f6742caee466f5c2d4d2e9eb Mon Sep 17 00:00:00 2001 +From: Khem Raj +Date: Tue, 27 Jun 2017 08:22:26 -0700 +Subject: [PATCH 2/2] timing.c: Fix format-security errors + +Signed-off-by: Khem Raj +--- + src/timing.c | 6 +++--- + 1 file changed, 3 insertions(+), 3 deletions(-) + +diff --git a/src/timing.c b/src/timing.c +index 0b8f0eb..c0668c9 100644 +--- a/src/timing.c ++++ b/src/timing.c +@@ -97,7 +97,7 @@ add_test_info_time (AppData * appdata) + gtk_text_buffer_insert (appdata->textview_info_buffer, &iter, + timestring, -1); + +- g_printf (timestring); ++ g_printf ("%s", timestring); + + } + +@@ -129,7 +129,7 @@ add_test_info_end (AppData * appdata) + gtk_statusbar_push (GTK_STATUSBAR (appdata->statusbar_main), 0, + " Test Finished"); + +- g_printf (timestring); ++ g_printf ("%s", timestring); + + } + +@@ -154,5 +154,5 @@ add_test_info_start (AppData * appdata) + gtk_statusbar_push (GTK_STATUSBAR (appdata->statusbar_main), 0, + " Running tests..."); + +- g_printf (timestring); ++ g_printf ("%s", timestring); + } +-- +2.13.2 + diff --git a/meta-oe/recipes-graphics/gtkperf/gtkperf_0.40.bb b/meta-oe/recipes-graphics/gtkperf/gtkperf_0.40.bb index e404a7a51..2db91904f 100644 --- a/meta-oe/recipes-graphics/gtkperf/gtkperf_0.40.bb +++ b/meta-oe/recipes-graphics/gtkperf/gtkperf_0.40.bb @@ -4,7 +4,10 @@ LICENSE = "LGPLv2.1" LIC_FILES_CHKSUM = "file://COPYING;md5=94d55d512a9ba36caa9b7df079bae19f" SRC_URI = "http://prdownloads.sourceforge.net/${BPN}/${BPN}_${PV}.tar.gz \ - file://Makevars" + file://Makevars \ + file://0001-Include-stdlib.h-for-exit-API.patch \ + file://0002-timing.c-Fix-format-security-errors.patch \ + " SRC_URI[md5sum] = "4331dde4bb83865e15482885fcb0cc53" SRC_URI[sha256sum] = "9704344e732038eecbd007dd996a56293a6b027b5b76f3f036273a3fae1ab27b" From patchwork Wed Jun 28 02:08:12 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Khem Raj X-Patchwork-Id: 106487 Delivered-To: patch@linaro.org Received: by 10.140.101.44 with SMTP id t41csp467772qge; Tue, 27 Jun 2017 19:09:42 -0700 (PDT) X-Received: by 10.84.232.15 with SMTP id h15mr8976633plk.168.1498615782818; Tue, 27 Jun 2017 19:09:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1498615782; cv=none; d=google.com; s=arc-20160816; b=uO0AzoeTMUrXQuEgng0Vt8gofwYp9g6LCKjq1vx/Rhr0RLnqRjMUUtjvUcaMSt2JpQ TTiCSmhPttJQTNxUbstsFds+Hi+wTh3HQ67cHuXpK4LKJVOlf+dgNXoYROrNdAlqxxmA wUWOsKEvs7ks6ggk9A6wrMh43DK9fT8NUUdHEkxNfrsFV6fSh/gJ9pN7RTnwoMIrmBtn kWt48FXrK0g8JazZw/6PpDtZ9hrzVkMPhbLTAwLvvtlu5+HSRl3gTXIZFCk/5Hf1nO9x r/BfDgFscyUwUqQA85sYO/6l1FNo9oQpTlTLiFA4Gfw/XiczmZaGaxI4agnZPMqIRdsy QgwQ== 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=P+SbbXEXOxpf2oAGaladnaxBxU+59AyU+Gs9MCAGqvg=; b=0PGDbMznbzgictSKxbo09AaCp8XiLlv+kmsWwRPXoSHfaiC/6g7xMGnZNqoaUkh5cC lqkdRNeLVKYGZsvNBasIBjnaPXhCpLp76AH7nF4l/jbMD0naLtSxwWMXTNa/bn1In1cN aoknn7tY0BcXlZBZj2Nf1+O9x8I0tGVzbnT76Xm3m5SVh5pZITVHGMiB6pjTKN/34jag oC7lguNhP3OhHwDC/oXUFEVGl1Yjc25vs7MsRAYianDcMvmiKh7Y+Bavl7r7QpYzT0A/ PelCKd3AouerbxDO4ex7wKXWRoniteyI0rMHRwnGB7RuEMqvqay5JKlfmQlKLprXHoC+ VAkg== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.b=o6rDnv/9; 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 r10si584121pfg.199.2017.06.27.19.09.42; Tue, 27 Jun 2017 19:09:42 -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=o6rDnv/9; 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 9BAA278151; Wed, 28 Jun 2017 02:09:17 +0000 (UTC) X-Original-To: openembedded-devel@lists.openembedded.org Delivered-To: openembedded-devel@lists.openembedded.org Received: from mail-pf0-f181.google.com (mail-pf0-f181.google.com [209.85.192.181]) by mail.openembedded.org (Postfix) with ESMTP id E8D2678066 for ; Wed, 28 Jun 2017 02:08:45 +0000 (UTC) Received: by mail-pf0-f181.google.com with SMTP id s66so25385529pfs.1 for ; Tue, 27 Jun 2017 19:08:47 -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=Rc2XBCErXdi0LdUEPwe4TRQvXfXV9egout3Ite769As=; b=o6rDnv/99XBkAZ5F8mmm6lcmndQnbyuuAxqGeg+b8hZJ27/jjGUIjCR1WZyU4EUfEX 1NFq67clivlBFzktJFi+sZpoRSDuR9XadDmRbLCKavF5H3fATsmCDS6kHmbv413XaXVy 7LtxdM+BhaXdAqWsBNiGftsflMczE0rArIHSMvC8OUCywiHNe1FgTD5UkcgWx3K2ZjF3 zch0AAnRmb1BSWBv74hpGBekeLsU6XgS6tGhK8qBtb5M9ipF8nmaQHA/PrFFSp7aWVkz hOw+gZyUQI9Pjl+zf7os2DpU9ArLaDyfNMQYfQTtnjXnf26LYhI39h4HfvkiyhxKIuk2 Mvuw== 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=Rc2XBCErXdi0LdUEPwe4TRQvXfXV9egout3Ite769As=; b=tWdanr5fp/qjmGEImnzqvj6JMFwqhNoAUvIsVQPHJ9g1yKQhZa+uFyYHEoJtRQXOGg ZuBY4KJXHnE2S5D2SbbA5mrwa8O6NMW+paWwMBIU+epcsptrSbo9SIZLyWn6fAYABdjp sr7b6TNntB2jrIAXS+WOeKExaeQXMZze+AtaTLwT9k7ijt5jf2qAQRRRnsBdiYIzi+AR 02qp6ArFi00flLL50kh6KHEb7UuyZ0pwpKjCD/K0efXmsyXcLSZ5yqJh6FgrJihguB3U d0AUtXyaUp5at5DnCotjkjhlBr6SxeSSjlsrj/7tJIlea3mEf7Uyl/GcfPxaAHMjs513 Vswg== X-Gm-Message-State: AKS2vOxWcTVTorSnjcEW6z3cvIxGCx4z3Tre9i8xkw/LJECfx3Nx0+xJ wzm5jI4gSLOqzseV X-Received: by 10.99.129.200 with SMTP id t191mr8294809pgd.70.1498615726349; Tue, 27 Jun 2017 19:08:46 -0700 (PDT) Received: from localhost.localdomain ([2601:646:8882:b8c::3df3]) by smtp.gmail.com with ESMTPSA id b8sm1003591pfd.65.2017.06.27.19.08.44 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 27 Jun 2017 19:08:45 -0700 (PDT) From: Khem Raj To: openembedded-devel@lists.openembedded.org Date: Tue, 27 Jun 2017 19:08:12 -0700 Message-Id: <20170628020819.17047-6-raj.khem@gmail.com> X-Mailer: git-send-email 2.13.2 In-Reply-To: <20170628020819.17047-1-raj.khem@gmail.com> References: <20170628020819.17047-1-raj.khem@gmail.com> Subject: [oe] [meta-oe][PATCH 06/13] wmiconfig: Fix build with hardening flags 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 --- .../0001-makefile-Pass-CFLAGS-to-compile.patch | 26 + .../0002-fix-err-API-to-have-format-string.patch | 656 +++++++++++++++++++++ meta-oe/recipes-support/wmiconfig/wmiconfig_svn.bb | 5 +- 3 files changed, 686 insertions(+), 1 deletion(-) create mode 100644 meta-oe/recipes-support/wmiconfig/wmiconfig/0001-makefile-Pass-CFLAGS-to-compile.patch create mode 100644 meta-oe/recipes-support/wmiconfig/wmiconfig/0002-fix-err-API-to-have-format-string.patch -- 2.13.2 -- _______________________________________________ Openembedded-devel mailing list Openembedded-devel@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-devel diff --git a/meta-oe/recipes-support/wmiconfig/wmiconfig/0001-makefile-Pass-CFLAGS-to-compile.patch b/meta-oe/recipes-support/wmiconfig/wmiconfig/0001-makefile-Pass-CFLAGS-to-compile.patch new file mode 100644 index 000000000..90eff5bb0 --- /dev/null +++ b/meta-oe/recipes-support/wmiconfig/wmiconfig/0001-makefile-Pass-CFLAGS-to-compile.patch @@ -0,0 +1,26 @@ +From 0378cbb323c662a565f7f3de2dee3d8a646e7bd1 Mon Sep 17 00:00:00 2001 +From: Khem Raj +Date: Tue, 27 Jun 2017 09:32:42 -0700 +Subject: [PATCH 1/2] makefile: Pass CFLAGS to compile + +Set CC if not already set + +Signed-off-by: Khem Raj +--- + host/tools/wmiconfig/Makefile | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +diff --git a/host/tools/wmiconfig/Makefile b/host/tools/wmiconfig/Makefile +index c6738c5..3253a7e 100644 +--- a/Makefile ++++ b/Makefile +@@ -1,4 +1,4 @@ +-CC :=$(ATH_CROSS_COMPILE_TYPE)gcc ++CC ?= $(ATH_CROSS_COMPILE_TYPE)gcc + + all: +- $(CC) -Wall -DUSER_KEYS -g $(LDFLAGS) -I../../include -I../../../include -I../../wlan/include -I../../os/linux/include wmiconfig.c -o wmiconfig ++ $(CC) -Wall -DUSER_KEYS -g $(CFLAGS) $(LDFLAGS) -I../../include -I../../../include -I../../wlan/include -I../../os/linux/include wmiconfig.c -o wmiconfig +-- +2.13.2 + diff --git a/meta-oe/recipes-support/wmiconfig/wmiconfig/0002-fix-err-API-to-have-format-string.patch b/meta-oe/recipes-support/wmiconfig/wmiconfig/0002-fix-err-API-to-have-format-string.patch new file mode 100644 index 000000000..f67f784c1 --- /dev/null +++ b/meta-oe/recipes-support/wmiconfig/wmiconfig/0002-fix-err-API-to-have-format-string.patch @@ -0,0 +1,656 @@ +From 909ebdde4ee2233d65de8fa01fde8e9a3bec12b7 Mon Sep 17 00:00:00 2001 +From: Khem Raj +Date: Tue, 27 Jun 2017 09:33:26 -0700 +Subject: [PATCH 2/2] fix err() API to have format string + +Fixes errors with hardening flags + +Signed-off-by: Khem Raj +--- + host/tools/wmiconfig/wmiconfig.c | 148 +++++++++++++++++++-------------------- + 1 file changed, 74 insertions(+), 74 deletions(-) + +diff --git a/host/tools/wmiconfig/wmiconfig.c b/host/tools/wmiconfig/wmiconfig.c +index 21c9dcd..a6ec481 100644 +--- a/wmiconfig.c ++++ b/wmiconfig.c +@@ -483,7 +483,7 @@ main (int argc, char **argv) + strcpy(ifname, ethIf); + s = socket(AF_INET, SOCK_DGRAM, 0); + if (s < 0) { +- err(1, "socket"); ++ err(1, "%s", "socket"); + } + + while (1) { +@@ -1506,28 +1506,28 @@ main (int argc, char **argv) + ifr.ifr_data = (void *)filterCmd; + if (ioctl(s, AR6000_IOCTL_WMI_SETBSSFILTER, &ifr) < 0) + { +- err(1, ifr.ifr_name); ++ err(1, "%s", ifr.ifr_name); + } + break; + case WMI_SET_POWER_MODE: + ifr.ifr_data = (void *)pwrCmd; + if (ioctl(s, AR6000_IOCTL_WMI_SETPWR, &ifr) < 0) + { +- err(1, ifr.ifr_name); ++ err(1, "%s", ifr.ifr_name); + } + break; + case WMI_SET_PM_PARAMS: + ifr.ifr_data = (void *)pmParamCmd; + if (ioctl(s, AR6000_IOCTL_WMI_SET_PMPARAMS, &ifr) < 0) + { +- err(1, ifr.ifr_name); ++ err(1, "%s", ifr.ifr_name); + } + break; + case WMI_SET_IBSS_PM_CAPS: + ifr.ifr_data = (void *)adhocPmCmd; + if (ioctl(s, AR6000_IOCTL_WMI_SET_IBSS_PM_CAPS, &ifr) < 0) + { +- err(1, ifr.ifr_name); ++ err(1, "%s", ifr.ifr_name); + } + break; + case WMI_SET_ERROR_DETECTION: +@@ -1535,7 +1535,7 @@ main (int argc, char **argv) + ifr.ifr_data = buf; + if (ioctl(s, AR6000_IOCTL_EXTENDED, &ifr) < 0) + { +- err(1, ifr.ifr_name); ++ err(1, "%s", ifr.ifr_name); + } + break; + case WMI_GET_HB_CHALLENGE_RESP: +@@ -1543,7 +1543,7 @@ main (int argc, char **argv) + ifr.ifr_data = buf; + if (ioctl(s, AR6000_IOCTL_EXTENDED, &ifr) < 0) + { +- err(1, ifr.ifr_name); ++ err(1, "%s", ifr.ifr_name); + } + break; + #ifdef USER_KEYS +@@ -1554,7 +1554,7 @@ main (int argc, char **argv) + + if (ioctl(s, AR6000_IOCTL_EXTENDED, &ifr) < 0) + { +- err(1, ifr.ifr_name); ++ err(1, "%s", ifr.ifr_name); + } + + break; +@@ -1575,7 +1575,7 @@ main (int argc, char **argv) + ifr.ifr_data = (void *)sParamCmd; + if (ioctl(s, AR6000_IOCTL_WMI_SETSCAN, &ifr) < 0) + { +- err(1, ifr.ifr_name); ++ err(1, "%s", ifr.ifr_name); + } + break; + case WMI_GET_VERSION: +@@ -1586,7 +1586,7 @@ main (int argc, char **argv) + ifr.ifr_data = (void *)revinfo; + if (ioctl(s, AR6000_IOCTL_WMI_GETREV, &ifr) < 0) + { +- err(1, ifr.ifr_name); ++ err(1, "%s", ifr.ifr_name); + } + printf("Host Rev = 0x%x(%u.%u.%u.%u), Target Rev = 0x%x(%u.%u.%u.%u)\n", + revinfo->host_ver, +@@ -1606,14 +1606,14 @@ main (int argc, char **argv) + ifr.ifr_data = (void *)listenCmd; + if (ioctl(s, AR6000_IOCTL_WMI_SETLISTENINT, &ifr) < 0) + { +- err(1, ifr.ifr_name); ++ err(1, "%s", ifr.ifr_name); + } + break; + case WMI_SET_BMISS_TIME: + ifr.ifr_data = (void *)bmissCmd; + if (ioctl(s, AR6000_IOCTL_WMI_SET_BMISS_TIME, &ifr) < 0) + { +- err(1, ifr.ifr_name); ++ err(1, "%s", ifr.ifr_name); + } + break; + case WMI_SET_RSSI_THRESHOLDS: +@@ -1621,14 +1621,14 @@ main (int argc, char **argv) + ifr.ifr_data = buf; + if (ioctl(s, AR6000_IOCTL_EXTENDED, &ifr) < 0) + { +- err(1, ifr.ifr_name); ++ err(1, "%s", ifr.ifr_name); + } + break; + case WMI_SET_SNR_THRESHOLDS: + ifr.ifr_data = (void *)snrThresholdParam; + if (ioctl(s, AR6000_IOCTL_WMI_SET_SNRTHRESHOLD, &ifr) < 0) + { +- err(1, ifr.ifr_name); ++ err(1, "%s", ifr.ifr_name); + } + break; + case WMI_CLR_RSSISNR: +@@ -1636,7 +1636,7 @@ main (int argc, char **argv) + ifr.ifr_data = buf; + if (ioctl(s, AR6000_IOCTL_EXTENDED, &ifr) < 0) + { +- err(1, ifr.ifr_name); ++ err(1, "%s", ifr.ifr_name); + } + break; + case WMI_SET_LQ_THRESHOLDS: +@@ -1644,7 +1644,7 @@ main (int argc, char **argv) + ifr.ifr_data = buf; + if (ioctl(s, AR6000_IOCTL_EXTENDED, &ifr) < 0) + { +- err(1, ifr.ifr_name); ++ err(1, "%s", ifr.ifr_name); + } + break; + case WMI_SET_CHANNEL: +@@ -1693,18 +1693,18 @@ main (int argc, char **argv) + + if (ioctl(s, AR6000_IOCTL_WMI_SET_CHANNELPARAMS, &ifr) < 0) + { +- err(1, ifr.ifr_name); ++ err(1, "%s", ifr.ifr_name); + } + break; + case WMI_SET_SSID: + if (index > MAX_PROBED_SSID_INDEX) { + printf("num option for ssid command too large\n"); +- err(1, ifr.ifr_name); ++ err(1, "%s", ifr.ifr_name); + break; + } + if (strlen((char *)ssid) > sizeof (ssidCmd->ssid)) { + printf("ssid name too large\n"); +- err(1, ifr.ifr_name); ++ err(1, "%s", ifr.ifr_name); + break; + } + ssidCmd->entryIndex = index; +@@ -1722,7 +1722,7 @@ main (int argc, char **argv) + ifr.ifr_data = (void *)ssidCmd; + if (ioctl(s, AR6000_IOCTL_WMI_SET_PROBEDSSID, &ifr) < 0) + { +- err(1, ifr.ifr_name); ++ err(1, "%s", ifr.ifr_name); + } + break; + case WMI_SET_BADAP: +@@ -1735,7 +1735,7 @@ main (int argc, char **argv) + ifr.ifr_data = (void *)badApCmd; + if (ioctl(s, AR6000_IOCTL_WMI_SET_BADAP, &ifr) < 0) + { +- err(1, ifr.ifr_name); ++ err(1, "%s", ifr.ifr_name); + } + break; + case WMI_CREATE_QOS: +@@ -1794,7 +1794,7 @@ main (int argc, char **argv) + ifr.ifr_data = (void *)crePStreamCmd; + if (ioctl(s, AR6000_IOCTL_WMI_CREATE_QOS, &ifr) < 0) + { +- err(1, ifr.ifr_name); ++ err(1, "%s", ifr.ifr_name); + } + break; + case WMI_GET_TARGET_STATS: +@@ -1807,7 +1807,7 @@ main (int argc, char **argv) + ifr.ifr_data = (void *)&tgtStatsCmd; + if (ioctl(s, AR6000_IOCTL_WMI_GET_TARGET_STATS, &ifr) < 0) + { +- err(1, ifr.ifr_name); ++ err(1, "%s", ifr.ifr_name); + } + printTargetStats(&(tgtStatsCmd.targetStats)); + break; +@@ -1815,7 +1815,7 @@ main (int argc, char **argv) + ifr.ifr_data = (void *)pBitMask; + if (ioctl(s, AR6000_IOCTL_WMI_SET_ERROR_REPORT_BITMASK, &ifr) < 0) + { +- err(1, ifr.ifr_name); ++ err(1, "%s", ifr.ifr_name); + } + break; + case WMI_DELETE_QOS: +@@ -1824,7 +1824,7 @@ main (int argc, char **argv) + ifr.ifr_data = (void *)delPStreamCmd; + if (ioctl(s, AR6000_IOCTL_WMI_DELETE_QOS, &ifr) < 0) + { +- err(1, ifr.ifr_name); ++ err(1, "%s", ifr.ifr_name); + } + break; + case WMI_GET_QOS_QUEUE: +@@ -1840,7 +1840,7 @@ main (int argc, char **argv) + ifr.ifr_data = (void *)getQosQueueCmd; + if (ioctl(s, AR6000_IOCTL_WMI_GET_QOS_QUEUE, &ifr) < 0) + { +- err(1, ifr.ifr_name); ++ err(1, "%s", ifr.ifr_name); + } + + printf("Active TSIDs \n"); +@@ -1855,7 +1855,7 @@ main (int argc, char **argv) + ifr.ifr_data = (void *)ieInfo; + if (ioctl(s, AR6000_IOCTL_WMI_SET_ASSOC_INFO, &ifr) < 0) + { +- err(1, ifr.ifr_name); ++ err(1, "%s", ifr.ifr_name); + } + break; + case WMI_SET_AC_PARAMS: +@@ -1871,14 +1871,14 @@ main (int argc, char **argv) + ifr.ifr_data = (void *)acParamsCmd; + if (ioctl(s, AR6000_IOCTL_WMI_SET_ACCESS_PARAMS, &ifr) < 0) + { +- err(1, ifr.ifr_name); ++ err(1, "%s", ifr.ifr_name); + } + break; + case WMI_SET_DISC_TIMEOUT: + ifr.ifr_data = (void *)discCmd; + if (ioctl(s, AR6000_IOCTL_WMI_SET_DISC_TIMEOUT, &ifr) < 0) + { +- err(1, ifr.ifr_name); ++ err(1, "%s", ifr.ifr_name); + } + break; + case WMI_SET_ADHOC_BSSID: +@@ -1887,7 +1887,7 @@ main (int argc, char **argv) + if (ioctl(s, AR6000_IOCTL_EXTENDED, &ifr) < 0) + { + printf("fail to set adhoc bssid \n"); +- err(1, ifr.ifr_name); ++ err(1, "%s", ifr.ifr_name); + } + break; + case WMI_SET_OPT_MODE: +@@ -1895,7 +1895,7 @@ main (int argc, char **argv) + ifr.ifr_data = buf; + if (ioctl(s, AR6000_IOCTL_EXTENDED, &ifr) < 0) + { +- err(1, ifr.ifr_name); ++ err(1, "%s", ifr.ifr_name); + } + break; + case WMI_OPT_SEND_FRAME: +@@ -1903,7 +1903,7 @@ main (int argc, char **argv) + ifr.ifr_data = buf; + if (ioctl(s, AR6000_IOCTL_EXTENDED, &ifr) < 0) + { +- err(1, ifr.ifr_name); ++ err(1, "%s", ifr.ifr_name); + } + break; + case WMI_SET_BEACON_INT: +@@ -1911,7 +1911,7 @@ main (int argc, char **argv) + ifr.ifr_data = buf; + if (ioctl(s, AR6000_IOCTL_EXTENDED, &ifr) < 0) + { +- err(1, ifr.ifr_name); ++ err(1, "%s", ifr.ifr_name); + } + break; + case WMI_SET_VOICE_PKT_SIZE: +@@ -1919,7 +1919,7 @@ main (int argc, char **argv) + ifr.ifr_data = buf; + if (ioctl(s, AR6000_IOCTL_EXTENDED, &ifr) < 0) + { +- err(1, ifr.ifr_name); ++ err(1, "%s", ifr.ifr_name); + } + break; + case WMI_SET_MAX_SP: +@@ -1927,7 +1927,7 @@ main (int argc, char **argv) + ifr.ifr_data = buf; + if (ioctl(s, AR6000_IOCTL_EXTENDED, &ifr) < 0) + { +- err(1, ifr.ifr_name); ++ err(1, "%s", ifr.ifr_name); + } + break; + case WMI_GET_ROAM_TBL: +@@ -1935,7 +1935,7 @@ main (int argc, char **argv) + ifr.ifr_data = buf; + if (ioctl(s, AR6000_IOCTL_EXTENDED, &ifr) < 0) + { +- err(1, ifr.ifr_name); ++ err(1, "%s", ifr.ifr_name); + } + break; + case WMI_SET_ROAM_CTRL: +@@ -1943,7 +1943,7 @@ main (int argc, char **argv) + ifr.ifr_data = buf; + if (ioctl(s, AR6000_IOCTL_EXTENDED, &ifr) < 0) + { +- err(1, ifr.ifr_name); ++ err(1, "%s", ifr.ifr_name); + } + break; + case WMI_SET_POWERSAVE_TIMERS: +@@ -1951,7 +1951,7 @@ main (int argc, char **argv) + ifr.ifr_data = buf; + if (ioctl(s, AR6000_IOCTL_EXTENDED, &ifr) < 0) + { +- err(1, ifr.ifr_name); ++ err(1, "%s", ifr.ifr_name); + } + break; + case WMI_GET_POWER_MODE: +@@ -1959,7 +1959,7 @@ main (int argc, char **argv) + ifr.ifr_data = buf; + if (ioctl(s, AR6000_IOCTL_EXTENDED, &ifr) < 0) + { +- err(1, ifr.ifr_name); ++ err(1, "%s", ifr.ifr_name); + } + printf("Power mode is %s\n", + (getPowerMode->powerMode == MAX_PERF_POWER) ? "maxperf" : "rec"); +@@ -1969,7 +1969,7 @@ main (int argc, char **argv) + ifr.ifr_data = buf; + if (ioctl(s, AR6000_IOCTL_EXTENDED, &ifr) < 0) + { +- err(1, ifr.ifr_name); ++ err(1, "%s", ifr.ifr_name); + } + break; + case WMI_GET_ROAM_DATA: +@@ -1977,7 +1977,7 @@ main (int argc, char **argv) + ifr.ifr_data = buf; + if (ioctl(s, AR6000_IOCTL_EXTENDED, &ifr) < 0) + { +- err(1, ifr.ifr_name); ++ err(1, "%s", ifr.ifr_name); + } + break; + case WMI_SET_BT_STATUS: +@@ -1985,7 +1985,7 @@ main (int argc, char **argv) + ifr.ifr_data = buf; + if (ioctl(s, AR6000_IOCTL_EXTENDED, &ifr) < 0) + { +- err(1, ifr.ifr_name); ++ err(1, "%s", ifr.ifr_name); + } + break; + case WMI_SET_BT_PARAMS: +@@ -1993,7 +1993,7 @@ main (int argc, char **argv) + ifr.ifr_data = buf; + if (ioctl(s, AR6000_IOCTL_EXTENDED, &ifr) < 0) + { +- err(1, ifr.ifr_name); ++ err(1, "%s", ifr.ifr_name); + } + break; + case WMI_SET_RETRYLIMITS: +@@ -2001,14 +2001,14 @@ main (int argc, char **argv) + ifr.ifr_data = buf; + if (ioctl(s, AR6000_IOCTL_EXTENDED, &ifr) < 0) + { +- err(1, ifr.ifr_name); ++ err(1, "%s", ifr.ifr_name); + } + break; + case WMI_START_SCAN: + ((int *)buf)[0] = AR6000_XIOCTL_WMI_STARTSCAN; + ifr.ifr_data = buf; + if (ioctl(s, AR6000_IOCTL_EXTENDED, &ifr) < 0) { +- err(1, ifr.ifr_name); ++ err(1, "%s", ifr.ifr_name); + } + break; + case WMI_SET_FIX_RATES: +@@ -2031,14 +2031,14 @@ main (int argc, char **argv) + ifr.ifr_data = buf; + if (ioctl(s, AR6000_IOCTL_EXTENDED, &ifr) < 0) + { +- err(1, ifr.ifr_name); ++ err(1, "%s", ifr.ifr_name); + } + break; + case WMI_GET_FIX_RATES: + ((int *)buf)[0] = AR6000_XIOCTL_WMI_GETFIXRATES; + ifr.ifr_data = buf; + if (ioctl(s, AR6000_IOCTL_EXTENDED, &ifr) < 0) { +- err(1, ifr.ifr_name); ++ err(1, "%s", ifr.ifr_name); + } else { + int i; + printf("Fix rate set index:"); +@@ -2057,7 +2057,7 @@ main (int argc, char **argv) + index--; + setAuthMode->mode = atoi(argv[index]); + if (ioctl(s, AR6000_IOCTL_EXTENDED, &ifr) < 0) { +- err(1, ifr.ifr_name); ++ err(1, "%s", ifr.ifr_name); + } + break; + case WMI_SET_REASSOC_MODE: +@@ -2067,42 +2067,42 @@ main (int argc, char **argv) + index--; + setReassocMode->mode = atoi(argv[index]); + if (ioctl(s, AR6000_IOCTL_EXTENDED, &ifr) < 0) { +- err(1, ifr.ifr_name); ++ err(1, "%s", ifr.ifr_name); + } + break; + case WMI_SET_LPREAMBLE: + ((int *)buf)[0] = AR6000_XIOCTL_WMI_SET_LPREAMBLE; + ifr.ifr_data = buf; + if (ioctl(s, AR6000_IOCTL_EXTENDED, &ifr) < 0) { +- err(1, ifr.ifr_name); ++ err(1, "%s", ifr.ifr_name); + } + break; + case WMI_SET_RTS: + ((int *)buf)[0] = AR6000_XIOCTL_WMI_SET_RTS; + ifr.ifr_data = buf; + if (ioctl(s, AR6000_IOCTL_EXTENDED, &ifr) < 0) { +- err(1, ifr.ifr_name); ++ err(1, "%s", ifr.ifr_name); + } + break; + case WMI_SET_WMM: + ((int *)buf)[0] = AR6000_XIOCTL_WMI_SET_WMM; + ifr.ifr_data = buf; + if (ioctl(s, AR6000_IOCTL_EXTENDED, &ifr) < 0) { +- err(1, ifr.ifr_name); ++ err(1, "%s", ifr.ifr_name); + } + break; + case WMI_SET_TXOP: + ((int *)buf)[0] = AR6000_XIOCTL_WMI_SET_TXOP; + ifr.ifr_data = buf; + if (ioctl(s, AR6000_IOCTL_EXTENDED, &ifr) < 0) { +- err(1, ifr.ifr_name); ++ err(1, "%s", ifr.ifr_name); + } + break; + case DIAG_READ: + ((int *)buf)[0] = AR6000_XIOCTL_DIAG_READ; + ifr.ifr_data = buf; + if (ioctl(s, AR6000_IOCTL_EXTENDED, &ifr) < 0) { +- err(1, ifr.ifr_name); ++ err(1, "%s", ifr.ifr_name); + } + printf("diagdata: 0x%x\n", *diagdata); + break; +@@ -2110,7 +2110,7 @@ main (int argc, char **argv) + ((int *)buf)[0] = AR6000_XIOCTL_DIAG_WRITE; + ifr.ifr_data = buf; + if (ioctl(s, AR6000_IOCTL_EXTENDED, &ifr) < 0) { +- err(1, ifr.ifr_name); ++ err(1, "%s", ifr.ifr_name); + } + break; + case WMI_GET_RD: +@@ -2118,7 +2118,7 @@ main (int argc, char **argv) + ifr.ifr_data = buf; + if (ioctl(s, AR6000_IOCTL_EXTENDED, &ifr) < 0) + { +- err(1, ifr.ifr_name); ++ err(1, "%s", ifr.ifr_name); + } + else + { +@@ -2139,14 +2139,14 @@ main (int argc, char **argv) + index--; + setKeepAlive->keepaliveInterval = atoi(argv[index]); + if (ioctl(s, AR6000_IOCTL_EXTENDED, &ifr) < 0) { +- err(1, ifr.ifr_name); ++ err(1, "%s", ifr.ifr_name); + } + break; + case WMI_GET_KEEPALIVE: + ((int *)buf)[0] = AR6000_XIOCTL_WMI_GET_KEEPALIVE; + ifr.ifr_data = buf; + if (ioctl(s, AR6000_IOCTL_EXTENDED, &ifr) < 0) { +- err(1, ifr.ifr_name); ++ err(1, "%s", ifr.ifr_name); + } + printf("Keepalive interval is %d secs and AP is %s\n", + getKeepAlive->keepaliveInterval, (getKeepAlive->configured ? +@@ -2156,63 +2156,63 @@ main (int argc, char **argv) + ((int *)buf)[0] = AR6000_XIOCTL_WMI_SET_APPIE; + ifr.ifr_data = buf; + if (ioctl(s, AR6000_IOCTL_EXTENDED, &ifr) < 0) { +- err(1, ifr.ifr_name); ++ err(1, "%s", ifr.ifr_name); + } + break; + case WMI_SET_MGMT_FRM_RX_FILTER: + ((int *)buf)[0] = AR6000_XIOCTL_WMI_SET_MGMT_FRM_RX_FILTER; + ifr.ifr_data = buf; + if (ioctl(s, AR6000_IOCTL_EXTENDED, &ifr) < 0) { +- err(1, ifr.ifr_name); ++ err(1, "%s", ifr.ifr_name); + } + break; + case WMI_DBGLOG_CFG_MODULE: + ((int *)buf)[0] = AR6000_XIOCTL_DBGLOG_CFG_MODULE; + ifr.ifr_data = buf; + if (ioctl(s, AR6000_IOCTL_EXTENDED, &ifr) < 0) { +- err(1, ifr.ifr_name); ++ err(1, "%s", ifr.ifr_name); + } + break; + case WMI_DBGLOG_GET_DEBUG_LOGS: + ((int *)buf)[0] = AR6000_XIOCTL_DBGLOG_GET_DEBUG_LOGS; + ifr.ifr_data = buf; + if (ioctl(s, AR6000_IOCTL_EXTENDED, &ifr) < 0) { +- err(1, ifr.ifr_name); ++ err(1, "%s", ifr.ifr_name); + } + break; + case WMI_SET_HOST_SLEEP_MODE: + ((int *)buf)[0] = AR6000_XIOCTL_WMI_SET_HOST_SLEEP_MODE; + ifr.ifr_data = buf; + if (ioctl(s, AR6000_IOCTL_EXTENDED, &ifr) < 0) { +- err(1, ifr.ifr_name); ++ err(1, "%s", ifr.ifr_name); + } + break; + case WMI_SET_WOW_MODE: + ((int *)buf)[0] = AR6000_XIOCTL_WMI_SET_WOW_MODE; + ifr.ifr_data = buf; + if (ioctl(s, AR6000_IOCTL_EXTENDED, &ifr) < 0) { +- err(1, ifr.ifr_name); ++ err(1, "%s", ifr.ifr_name); + } + break; + case WMI_ADD_WOW_PATTERN: + ((int *)buf)[0] = AR6000_XIOCTL_WMI_ADD_WOW_PATTERN; + ifr.ifr_data = buf; + if (ioctl(s, AR6000_IOCTL_EXTENDED, &ifr) < 0) { +- err(1, ifr.ifr_name); ++ err(1, "%s", ifr.ifr_name); + } + break; + case WMI_DEL_WOW_PATTERN: + ((int *)buf)[0] = AR6000_XIOCTL_WMI_DEL_WOW_PATTERN; + ifr.ifr_data = buf; + if (ioctl(s, AR6000_IOCTL_EXTENDED, &ifr) < 0) { +- err(1, ifr.ifr_name); ++ err(1, "%s", ifr.ifr_name); + } + break; + case WMI_GET_WOW_LIST: + ((int *)buf)[0] = AR6000_XIOCTL_WMI_GET_WOW_LIST; + ifr.ifr_data = buf; + if (ioctl(s, AR6000_IOCTL_EXTENDED, &ifr) < 0) { +- err(1, ifr.ifr_name); ++ err(1, "%s", ifr.ifr_name); + } + break; + case DIAG_DUMP_CHIP_MEM: +@@ -2225,7 +2225,7 @@ main (int argc, char **argv) + ((int *)buf)[0] = AR6000_XIOCTL_DIAG_READ; + ifr.ifr_data = buf; + if (ioctl(s, AR6000_IOCTL_EXTENDED, &ifr) < 0) { +- err(1, ifr.ifr_name); ++ err(1, "%s", ifr.ifr_name); + } + printf("0x%04x:0x%04x\n", *diagaddr, *diagdata); + } +@@ -2237,21 +2237,21 @@ main (int argc, char **argv) + index = optind - 1; + *connectCtrlFlags = strtoul(argv[index], NULL, 0); + if (ioctl(s, AR6000_IOCTL_EXTENDED, &ifr) < 0) { +- err(1, ifr.ifr_name); ++ err(1, "%s", ifr.ifr_name); + } + break; + case DUMP_HTC_CREDITS: + ((int *)buf)[0] = AR6000_XIOCTL_DUMP_HTC_CREDIT_STATE; + ifr.ifr_data = buf; + if (ioctl(s, AR6000_IOCTL_EXTENDED, &ifr) < 0) { +- err(1, ifr.ifr_name); ++ err(1, "%s", ifr.ifr_name); + } + break; + case WMI_SET_AKMP_INFO: + ((int *)buf)[0] = AR6000_XIOCTL_WMI_SET_AKMP_PARAMS; + ifr.ifr_data = buf; + if (ioctl(s, AR6000_IOCTL_EXTENDED, &ifr) < 0) { +- err(1, ifr.ifr_name); ++ err(1, "%s", ifr.ifr_name); + } + break; + case WMI_SET_PMKID_LIST: +@@ -2259,7 +2259,7 @@ main (int argc, char **argv) + ((int *)buf)[0] = AR6000_XIOCTL_WMI_SET_PMKID_LIST; + ifr.ifr_data = buf; + if (ioctl(s, AR6000_IOCTL_EXTENDED, &ifr) < 0) { +- err(1, ifr.ifr_name); ++ err(1, "%s", ifr.ifr_name); + } + } else { + printf("No PMKIDs entered\n"); +@@ -2269,7 +2269,7 @@ main (int argc, char **argv) + ((int *)buf)[0] = AR6000_XIOCTL_WMI_GET_PMKID_LIST; + ifr.ifr_data = buf; + if (ioctl(s, AR6000_IOCTL_EXTENDED, &ifr) < 0) { +- err(1, ifr.ifr_name); ++ err(1, "%s", ifr.ifr_name); + } + break; + case WMI_SET_BSS_PMKID_INFO: +@@ -2277,7 +2277,7 @@ main (int argc, char **argv) + iwr.u.data.length = sizeof(*pi_cmd); + if (ioctl(s, IEEE80211_IOCTL_ADDPMKID, &iwr) < 0) { + printf("ADDPMKID IOCTL Error\n"); +- err(1, ifr.ifr_name); ++ err(1, "%s", ifr.ifr_name); + } + break; + default: +-- +2.13.2 + diff --git a/meta-oe/recipes-support/wmiconfig/wmiconfig_svn.bb b/meta-oe/recipes-support/wmiconfig/wmiconfig_svn.bb index 596a4e67e..c66572b1c 100644 --- a/meta-oe/recipes-support/wmiconfig/wmiconfig_svn.bb +++ b/meta-oe/recipes-support/wmiconfig/wmiconfig_svn.bb @@ -6,7 +6,10 @@ SRCREV = "5394" PV = "0.0.0+svnr${SRCPV}" PR = "r2" -SRC_URI = "svn://svn.openmoko.org/trunk/src/target;module=AR6kSDK.build_sw.18;protocol=http" +SRC_URI = "svn://svn.openmoko.org/trunk/src/target;module=AR6kSDK.build_sw.18;protocol=http \ + file://0001-makefile-Pass-CFLAGS-to-compile.patch \ + file://0002-fix-err-API-to-have-format-string.patch \ + " S = "${WORKDIR}/AR6kSDK.build_sw.18/host/tools/wmiconfig" CLEANBROKEN = "1" From patchwork Wed Jun 28 02:08:13 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Khem Raj X-Patchwork-Id: 106488 Delivered-To: patch@linaro.org Received: by 10.140.101.44 with SMTP id t41csp467888qge; Tue, 27 Jun 2017 19:09:52 -0700 (PDT) X-Received: by 10.101.69.135 with SMTP id o7mr7960829pgq.242.1498615792421; Tue, 27 Jun 2017 19:09:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1498615792; cv=none; d=google.com; s=arc-20160816; b=Qb8KVsWrvPcgIZntLidmHSX/3S5LhYpfhE8QyMxrjqohMzHuGwnnDdQbLXXPj/lFCA rZc5T2zXSHYm0RvN3q5M4z8XE1B0JxH6CoZ3riNoBrqFZ5Qm/OZYAfKOyfuxyOPZ+9b3 vs7Ujdji2+9wzCIF4L41oO3PE32UfiygxhiIxVG23I1CTrB4Q3Q2EF4BEAGnM23QjhVi gWAgfXg7UTnVhZkc+YC8oTHRXJ8UqarWFMtR1u9zva+C3QiGMc1K1EC5nONHM+Xs/H1q tIUCK/2KSASjF+p9LDGOY7+HJqW0CbNm3MaFec+bJx00x4Lb5LGIg+ClznWhapqHfPBz T6Zw== 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=YXzvaOjIcdY6CGmg9PidUZ4s684n7FoAQy2NDmzln8Q=; b=VKZ4sSZAIgN15xGjk/PBV9+3L0BY+jwirvkZoEHBzisQmjw/1Hs5s+EI/5frP7JtJD 4kF2xnNwb6Vnaw/3GpiE9rFUUQLYkcXwl4jtjQ2VYL6RRpBn0lF8Jz/CXo+1hFpFTb2v J0ftQLTejvzHpoNQpECqktB/ZxIlR3jRUTp/6efKB8lG/3MJoRTc5BRwx47RQj1odQQ9 lYmWmxXMoEyJ7/6n90eHn69jei5nf/pc5SrcCUN/JWnr4c7sYoP1nRrbLDm2y91arm0j 8g3NOdd36/qwCtEUsIRz8iU/Ii1LcYIp4WLtrvEyb4v3UIkWa4Jm/jrVHOG11/ZV406L 2s+A== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.b=EDjFRtE3; 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 d22si628205plj.415.2017.06.27.19.09.52; Tue, 27 Jun 2017 19:09:52 -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=EDjFRtE3; 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 EA0A6781C2; Wed, 28 Jun 2017 02:09:18 +0000 (UTC) X-Original-To: openembedded-devel@lists.openembedded.org Delivered-To: openembedded-devel@lists.openembedded.org Received: from mail-pg0-f51.google.com (mail-pg0-f51.google.com [74.125.83.51]) by mail.openembedded.org (Postfix) with ESMTP id 9CD1F78049 for ; Wed, 28 Jun 2017 02:08:48 +0000 (UTC) Received: by mail-pg0-f51.google.com with SMTP id j186so24139827pge.2 for ; Tue, 27 Jun 2017 19:08:50 -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=FpsR74EfE1+vQY8gUq21obtcmOAZBki6Dtkey2HDPzc=; b=EDjFRtE3Di6Pm1J8df03RrVNp5B/Fp5co02PfMyT5HLJR4sYc/ZHpIxECkVUB7HFJz ppuhpDpDS2zc0/Ght/ILrhAVEM0iMzg2qoCWGMPnPq+LVHESaTdjKRCSSg7hjWpKnluj B9/IvFABm3QvLxRd+UT5Edc+xTlYfv6B+d1SJejUiH3g7SgiUYDo2HI75OMfcnimRwIW GAl1My1DHArFkFWJWcpCf+YI08XbbqXcP9C9eM2k3w/kbqGQ51uXaQLyhlnLZqaRnI6r c/oA4skQPsHZxcuJxjFTmyQpZOPzXn1S8+dXKmMKOj9G8LfFLA+AZfd6W9F01ibfGq7w eXNg== 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=FpsR74EfE1+vQY8gUq21obtcmOAZBki6Dtkey2HDPzc=; b=YgfS++WGDxPjQihbj1Olu6+ZidZrkGgourF0n3cGUy7Nl17AiamYxYyeAF4qN3R8Lu cvaV7CC6aQ+W1FxrQo9uYcvx+DWElsEA/5wcEJz2k8Bjtyz/B4BPlDcoU4PjU9xJEazf h5t/Vy0QpV8MTM1hFRnwBEsNFw0ITXDsckQV9T9P5VXl4DUDnoi2nqGf7DcmdeE4nPpK CWgPWwzQNtZM7M7W8jHyO1/OgdXBsI6Rf4JQsV3Lw8BZKNB3yxzTVUkbGVW+7jeb4NHU Jf2Ka1paXTYLkbWwHfJbAz7FRBmywK1P3ParPsaXM8ZbNINsIlWjU9dm7T+UcEmScE1K 1loQ== X-Gm-Message-State: AKS2vOwZaTOBhfojnGs+fKAB3nSDWRuqBczbtoUsfdVgXhnuKpeQgugH ZvzqiM7qo3aCH+l1 X-Received: by 10.99.96.204 with SMTP id u195mr8017424pgb.125.1498615729313; Tue, 27 Jun 2017 19:08:49 -0700 (PDT) Received: from localhost.localdomain ([2601:646:8882:b8c::3df3]) by smtp.gmail.com with ESMTPSA id b8sm1003591pfd.65.2017.06.27.19.08.46 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 27 Jun 2017 19:08:46 -0700 (PDT) From: Khem Raj To: openembedded-devel@lists.openembedded.org Date: Tue, 27 Jun 2017 19:08:13 -0700 Message-Id: <20170628020819.17047-7-raj.khem@gmail.com> X-Mailer: git-send-email 2.13.2 In-Reply-To: <20170628020819.17047-1-raj.khem@gmail.com> References: <20170628020819.17047-1-raj.khem@gmail.com> Subject: [oe] [meta-networking][PATCH 07/13] netkit-rpc: Fix build with hardening flags 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 --- .../0001-rpcgen-Fix-printf-formats.patch | 51 ++++++++++++++++++++++ .../recipes-netkit/netkit-rpc/netkit-rpc_0.17.bb | 4 +- 2 files changed, 54 insertions(+), 1 deletion(-) create mode 100644 meta-networking/recipes-netkit/netkit-rpc/netkit-rpc/0001-rpcgen-Fix-printf-formats.patch -- 2.13.2 -- _______________________________________________ Openembedded-devel mailing list Openembedded-devel@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-devel diff --git a/meta-networking/recipes-netkit/netkit-rpc/netkit-rpc/0001-rpcgen-Fix-printf-formats.patch b/meta-networking/recipes-netkit/netkit-rpc/netkit-rpc/0001-rpcgen-Fix-printf-formats.patch new file mode 100644 index 000000000..8bd77d2e4 --- /dev/null +++ b/meta-networking/recipes-netkit/netkit-rpc/netkit-rpc/0001-rpcgen-Fix-printf-formats.patch @@ -0,0 +1,51 @@ +From 439e3e35f7fcbff1abb782de4b19b31e43ae3449 Mon Sep 17 00:00:00 2001 +From: Khem Raj +Date: Tue, 27 Jun 2017 09:59:19 -0700 +Subject: [PATCH] rpcgen: Fix printf formats + +Fixes build with hardening flags + +Signed-off-by: Khem Raj +--- + rpcgen/rpc_hout.c | 2 +- + rpcgen/rpc_tblout.c | 4 ++-- + 2 files changed, 3 insertions(+), 3 deletions(-) + +diff --git a/rpcgen/rpc_hout.c b/rpcgen/rpc_hout.c +index 0ef52df..09a7b57 100644 +--- a/rpcgen/rpc_hout.c ++++ b/rpcgen/rpc_hout.c +@@ -474,7 +474,7 @@ pdeclaration(const char *name, declaration *dec, int tab, + break; + } + } +- f_print(fout, separator ); ++ f_print(fout, "%s", separator ); + } + + static int +diff --git a/rpcgen/rpc_tblout.c b/rpcgen/rpc_tblout.c +index d64bfde..fd62a52 100644 +--- a/rpcgen/rpc_tblout.c ++++ b/rpcgen/rpc_tblout.c +@@ -99,7 +99,7 @@ write_table(const definition *def) + } + else { + expected = 1; +- f_print(fout, null_entry); ++ f_print(fout, "%s", null_entry); + } + for (proc = vp->procs; proc != NULL; proc = proc->next) { + current = atoi(proc->proc_num); +@@ -139,7 +139,7 @@ write_table(const definition *def) + } + + /* print the table trailer */ +- f_print(fout, tbl_end); ++ f_print(fout, "%s", tbl_end); + f_print(fout, tbl_nproc, progvers, progvers, progvers); + } + } +-- +2.13.2 + diff --git a/meta-networking/recipes-netkit/netkit-rpc/netkit-rpc_0.17.bb b/meta-networking/recipes-netkit/netkit-rpc/netkit-rpc_0.17.bb index abc9d88cb..75ec07cfe 100644 --- a/meta-networking/recipes-netkit/netkit-rpc/netkit-rpc_0.17.bb +++ b/meta-networking/recipes-netkit/netkit-rpc/netkit-rpc_0.17.bb @@ -5,7 +5,9 @@ LICENSE = "SPL-1.0" LIC_FILES_CHKSUM = "file://rpcinfo/rpcinfo.c;beginline=2;endline=3;md5=3e6339e3ce266e1122c5ba293e04bc89" SRC_URI = "http://sources.openembedded.org/${BPN}-${PV}.tar.gz \ - file://gcc4.patch" + file://gcc4.patch \ + file://0001-rpcgen-Fix-printf-formats.patch \ + " SRC_URI[md5sum] = "67212720482ea1aea9182a98653a9642" SRC_URI[sha256sum] = "421d63b414162237a72867061f1bd3e3752a0d962cd5d30b5e933ddad8a14d3b" From patchwork Wed Jun 28 02:08:14 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Khem Raj X-Patchwork-Id: 106489 Delivered-To: patch@linaro.org Received: by 10.140.101.44 with SMTP id t41csp467995qge; Tue, 27 Jun 2017 19:10:00 -0700 (PDT) X-Received: by 10.84.234.16 with SMTP id m16mr8876363plk.41.1498615799944; Tue, 27 Jun 2017 19:09:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1498615799; cv=none; d=google.com; s=arc-20160816; b=Q1e21qsTzdqDybx/rOR3PMORlDMpkHthpWKI76ILUCOnqADbszBjcciXxDVxLzdvG7 OmbkYknQEAeLarb+ninPYwQai6JDwCmvEOJYj7ExLa/l3Ywzm8FFThie6smem/dYOAiU t7cpa6d22lZz+EGhQpQUz/KF+EXBSDExSBmgFsQ/G2prZVKcM5x6JUcIGllo3iM667jO YL4UUx1MMztHCKqYYn7bkziHu3lw0oWk8LbZUYdYHarGhsK9b0nwt2nG/iIT8NiyKnOY 36fGVo4+IK2eX5xQO5oYEDGtEWzkVrnf+H7Uz6Azf8USTN8W5mFPLSm2lqVTME7xq1eW 8NiA== 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=sJ3UF5i2zKQDLzk4GK/RfdaZFx0StxjuulfrzPP7FOk=; b=FjgVmgJVpE4mTAJNmMNfiBm4597nVz+uOfB8XIhId2G/gqz7ZxNGfg6ZjE3GzGMmyq JwQJKAT0bz2fyyV9waeJiOpu6m38Gw6DWQ8s9jitFMMXkt58Gnc+KLKK0V4asAzj2s6O 7Yt0X7p69HMi1BlWla+AhBLXvO9fxSW4Jy9/a78u3JlvSE6ay62wvKxWaBP6IS5genup ypBKv+oEEa3Z456fNk+TxX2hWy+MgOpEUsKbK415lzrth7EIItuuyaagU6Q4MpkNdLSj OLVeJkJgqrPhyIe79LUMHnXBO9IBSalqZwrdWUgZsQ7VjDMQpjtE49iDblsyvbhWt3I7 m6pQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.b=e3aqVTX0; 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 s70si531969pgc.555.2017.06.27.19.09.59; Tue, 27 Jun 2017 19:09:59 -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=e3aqVTX0; 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 0A5EB781D3; Wed, 28 Jun 2017 02:09:20 +0000 (UTC) X-Original-To: openembedded-devel@lists.openembedded.org Delivered-To: openembedded-devel@lists.openembedded.org Received: from mail-pf0-f195.google.com (mail-pf0-f195.google.com [209.85.192.195]) by mail.openembedded.org (Postfix) with ESMTP id 6CB9D78049 for ; Wed, 28 Jun 2017 02:08:50 +0000 (UTC) Received: by mail-pf0-f195.google.com with SMTP id d5so6963470pfe.1 for ; Tue, 27 Jun 2017 19:08:51 -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=5UtqLvisJZsrSgsXxAdoaCD4GNVoFWb1WF5HKqe0pq4=; b=e3aqVTX0gpvtTwFfciaKZD1ZSJhy+pI32mDPbuQCmK7o/JPUnN66pB48mSqttU9b60 LNECS/doUH6sD3CEwTwbaJR42vm7L0yzrw/gPCuPX2MpIj++IPi+YwQcllpitsn1N2k8 AdqV5XWqvl3FpB7byRVrXrs97drYoLa9yf1Ef6ar58IdZ6mNCYtKdX7M5UIu9e7ZnRln cGKQZk5g+WRb11MbcgSgBr/P8krwCTpOMSrC5u4l+BDF08TF/7bpNgQad3paVB1NOdTm 1G7tmYXplluB8foJh9ZWF9an5oyeSi4WCDKHjg2b/xdFnbu5lYZc7/Qsla0aDbdZKLGm blYg== 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=5UtqLvisJZsrSgsXxAdoaCD4GNVoFWb1WF5HKqe0pq4=; b=SYE/4sofMK9dy1wlWsRkVOZRSvTn4GNTNWRcuh1dpVbsq3y0Wq7Gy7YET/Vaus+Uvx f5bEGYfclyvGzrAev6GgfiBTxDlsP4RdTRtVffou9wgD89XphVw4jSVlMUiiBzxasoH4 2Ybftgn2JmDNnhVqPnlDRzUBIGSaLJwE/YjvOEeBgoAXbgcoZv54QdoaZTu7Es5Oig+Y x2iB3fxVTRVtHchfAvhjuAAPrVs8wUG44DePoGAm+iLdprNIuTdmB0NCKvOUTM4XTmtW gqFHbwzObRtcaxk71/Uv9TawhjpCuF8UfHhW+cWwYlfDFv7BpcUDnYwraB8l78xo/1Bb IywQ== X-Gm-Message-State: AKS2vOwokY+XyrZzS9NYrdbbeDIuMnxWJasDnewJzp0g2AYNqGn3yuoo I0KG0Ftz7hHBc/yt X-Received: by 10.84.254.78 with SMTP id a14mr8735186pln.69.1498615731165; Tue, 27 Jun 2017 19:08:51 -0700 (PDT) Received: from localhost.localdomain ([2601:646:8882:b8c::3df3]) by smtp.gmail.com with ESMTPSA id b8sm1003591pfd.65.2017.06.27.19.08.49 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 27 Jun 2017 19:08:49 -0700 (PDT) From: Khem Raj To: openembedded-devel@lists.openembedded.org Date: Tue, 27 Jun 2017 19:08:14 -0700 Message-Id: <20170628020819.17047-8-raj.khem@gmail.com> X-Mailer: git-send-email 2.13.2 In-Reply-To: <20170628020819.17047-1-raj.khem@gmail.com> References: <20170628020819.17047-1-raj.khem@gmail.com> Subject: [oe] [meta-networking][PATCH 08/13] netkit-telnet: Fix build with hardening 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 --- ...1-telnet-telnetd-Fix-print-format-strings.patch | 66 ++++++++++++++++++++++ .../netkit-telnet/netkit-telnet_0.17.bb | 11 ++-- 2 files changed, 72 insertions(+), 5 deletions(-) create mode 100644 meta-networking/recipes-netkit/netkit-telnet/files/0001-telnet-telnetd-Fix-print-format-strings.patch -- 2.13.2 -- _______________________________________________ Openembedded-devel mailing list Openembedded-devel@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-devel diff --git a/meta-networking/recipes-netkit/netkit-telnet/files/0001-telnet-telnetd-Fix-print-format-strings.patch b/meta-networking/recipes-netkit/netkit-telnet/files/0001-telnet-telnetd-Fix-print-format-strings.patch new file mode 100644 index 000000000..f2f1b12e2 --- /dev/null +++ b/meta-networking/recipes-netkit/netkit-telnet/files/0001-telnet-telnetd-Fix-print-format-strings.patch @@ -0,0 +1,66 @@ +From 7a3095d1e9b7c73f9dca56250f433bcfc7cb660e Mon Sep 17 00:00:00 2001 +From: Khem Raj +Date: Tue, 27 Jun 2017 10:15:34 -0700 +Subject: [PATCH] telnet/telnetd: Fix print format strings + +Fixes build with hardening flags + +Signed-off-by: Khem Raj +--- + telnet/utilities.cc | 6 +++--- + telnetd/utility.c | 6 +++--- + 2 files changed, 6 insertions(+), 6 deletions(-) + +diff --git a/telnet/utilities.cc b/telnet/utilities.cc +index 66839ab..36f0731 100644 +--- a/telnet/utilities.cc ++++ b/telnet/utilities.cc +@@ -583,17 +583,17 @@ void printsub(int direction, unsigned char *pointer, int length) { + case ENV_VAR: + if (pointer[1] == TELQUAL_SEND) + goto def_case; +- fprintf(NetTrace, "\" VAR " + noquote); ++ fprintf(NetTrace, "%s", "\" VAR " + noquote); + noquote = 2; + break; + + case ENV_VALUE: +- fprintf(NetTrace, "\" VALUE " + noquote); ++ fprintf(NetTrace, "%s", "\" VALUE " + noquote); + noquote = 2; + break; + + case ENV_ESC: +- fprintf(NetTrace, "\" ESC " + noquote); ++ fprintf(NetTrace, "%s", "\" ESC " + noquote); + noquote = 2; + break; + +diff --git a/telnetd/utility.c b/telnetd/utility.c +index 29b7da1..75314cb 100644 +--- a/telnetd/utility.c ++++ b/telnetd/utility.c +@@ -909,17 +909,17 @@ printsub(char direction, unsigned char *pointer, int length) + case ENV_VAR: + if (pointer[1] == TELQUAL_SEND) + goto def_case; +- netoprintf("\" VAR " + noquote); ++ netoprintf("%s", "\" VAR " + noquote); + noquote = 2; + break; + + case ENV_VALUE: +- netoprintf("\" VALUE " + noquote); ++ netoprintf("%s", "\" VALUE " + noquote); + noquote = 2; + break; + + case ENV_ESC: +- netoprintf("\" ESC " + noquote); ++ netoprintf("%s", "\" ESC " + noquote); + noquote = 2; + break; + +-- +2.13.2 + diff --git a/meta-networking/recipes-netkit/netkit-telnet/netkit-telnet_0.17.bb b/meta-networking/recipes-netkit/netkit-telnet/netkit-telnet_0.17.bb index 9438adc0f..54a58c8a1 100644 --- a/meta-networking/recipes-netkit/netkit-telnet/netkit-telnet_0.17.bb +++ b/meta-networking/recipes-netkit/netkit-telnet/netkit-telnet_0.17.bb @@ -5,11 +5,12 @@ LICENSE = "BSD" LIC_FILES_CHKSUM = "file://telnet/telnet.cc;beginline=2;endline=3;md5=780868e7b566313e70cb701560ca95ef" SRC_URI = "ftp://ftp.uk.linux.org/pub/linux/Networking/netkit/${BP}.tar.gz \ - file://To-aviod-buffer-overflow-in-telnet.patch \ - file://Warning-fix-in-the-step-of-install.patch \ - file://telnet-xinetd \ - file://cross-compile.patch \ -" + file://To-aviod-buffer-overflow-in-telnet.patch \ + file://Warning-fix-in-the-step-of-install.patch \ + file://telnet-xinetd \ + file://cross-compile.patch \ + file://0001-telnet-telnetd-Fix-print-format-strings.patch \ + " EXTRA_OEMAKE = "INSTALLROOT=${D} SBINDIR=${sbindir} DAEMONMODE=755 \ MANMODE=644 MANDIR=${mandir}" From patchwork Wed Jun 28 02:08:15 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Khem Raj X-Patchwork-Id: 106490 Delivered-To: patch@linaro.org Received: by 10.140.101.44 with SMTP id t41csp468097qge; Tue, 27 Jun 2017 19:10:07 -0700 (PDT) X-Received: by 10.98.129.196 with SMTP id t187mr8354735pfd.0.1498615807547; Tue, 27 Jun 2017 19:10:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1498615807; cv=none; d=google.com; s=arc-20160816; b=qoAxNcFUb3Y8QFrmEEw+X/BBIpRGVyHmxpQq2LAp/KBFFKc4V3J1HHx5P4aO1Vgh1r lQCkVW1uhELZyJGrGjDpMgrGRAk/J07oShGEoZiJAu0uixGndPBZYvsUwOOU7eRYdMoG bQcrkOUbpJ8OkeunIJ3G/8qqfBZPcCNU2TZgbwyQxUA+A2sC9gJui+bQNdHQKaYGs0dL 0yV5E1NfHFwZWGBmxOirQ9ipOK/8vIAVvXmbDtelNqrLGZJ55wNvut3LOm/YobcWeyIG /xmwvABHKwgNfR3YhzwMBl//th0axjk99AKRVlpWOyep5hcJJuySu6q8BleYEt5q01q0 EorQ== 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=/bK2e9e0xmDspzN4RtKeUMzIMre6n88UMFNsNCbn+sQ=; b=Z1fO/e83wg8s1hklDKhHBijint9r4zw94OEzz8wFLlTAyfo9GHrPyluL3dWUUngNUH qpMuywb9uOjpSwazhRhUV5t9qUSpsg3hE/33YqMTaP9TjM3utiB1JhG54IvkyAk+c5nV umQKA66YoboaiC7C3Uo+7yuw5HiuuIjpTiS5VpTchGhqq0mXwOOAl4wBIzF4XEo+WB38 /f1+kz/OIB+uxHW6iuKjDk9WW7TfEnQnNHYanSzehMXyJHVuTcJne6ygzvbLESWwKkfG U57mY+mxUQYlJkR3V/SkhpEDmCxaypoY+yyBxJHkXO/Rpx4kAecPFhJNWvlNvyQUwaQQ gCxw== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.b=Lmms41ou; 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 b16si581905pfd.163.2017.06.27.19.10.07; Tue, 27 Jun 2017 19:10:07 -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=Lmms41ou; 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 28868781EB; Wed, 28 Jun 2017 02:09:21 +0000 (UTC) X-Original-To: openembedded-devel@lists.openembedded.org Delivered-To: openembedded-devel@lists.openembedded.org Received: from mail-pf0-f169.google.com (mail-pf0-f169.google.com [209.85.192.169]) by mail.openembedded.org (Postfix) with ESMTP id 42F207806E for ; Wed, 28 Jun 2017 02:08:51 +0000 (UTC) Received: by mail-pf0-f169.google.com with SMTP id c73so25406961pfk.2 for ; Tue, 27 Jun 2017 19:08:53 -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=N8ijFPMYs07b+cRqHvJkmO3Iie7qrXQq1Vro9edxArg=; b=Lmms41ou5cVV8NFK1QtgLDXWw82kh1AjQ58BFW7arYO6AAlnmp4d6OmB2c6bOBJpeX rSaPV30fE09LFzqn8GKCz8bAch1XBUovKZwepznvMiKz/b2Uidkn1eZ035gBSfXyTLjG +Lydim2uedz8MlwEPuVq1dNvkOITY4yzX8GpZgd6G5Gn4nyMmu3bJOv942OGJRuaZZLQ n/IvhQruHJEJk7WG87serbq6/ldsxfhOWSQtfRgYeV7dpv5cjplA7kK97AQI+V1QfhTj kTOqSEaKhzFOmYzCuckQbH+srJVyuNYWSQhK+hFM7K9Q3fIhm8HqxPMdLR5RHfahrGe8 f8Iw== 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=N8ijFPMYs07b+cRqHvJkmO3Iie7qrXQq1Vro9edxArg=; b=FkAxuEAjcfvRpDJMe/vaUnWfWovq7wK9hUoPoqdQ0eX6Q6GJLe3ndxhKoE14imU+Po AI9mFmhwp9OqDpjDcrd5y1gmKzafjTFdPrZPnHkGtS3BG5oJzHkutE5OhhL3cdY1aKkN upQw7HXy177cjpz3utqUAdm5etyU8dUcjTIfrTivvVvAgXAmGcar9GpjQWwkHMWzd5Ws NhHsx/KRQuwmOuVjmlKx5gTx5mElpB44kADxlLZTgb0EDQjPUh+MSzQteBwU9rrL/T92 BoDd1ntGlWnmKAIaLZqu/1PC3anwKBQ7G/ObTZGm2alGv9Kp2JDWEQ/AuKHNbWtWRjmx xINQ== X-Gm-Message-State: AKS2vOzSsQaG+bYWqKsypj/KFn9vJMW5BlM4hyDJp34tNC+d1LMLD3G9 BLSU1bJnHKECpBeb X-Received: by 10.98.26.211 with SMTP id a202mr8226654pfa.30.1498615732606; Tue, 27 Jun 2017 19:08:52 -0700 (PDT) Received: from localhost.localdomain ([2601:646:8882:b8c::3df3]) by smtp.gmail.com with ESMTPSA id b8sm1003591pfd.65.2017.06.27.19.08.51 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 27 Jun 2017 19:08:51 -0700 (PDT) From: Khem Raj To: openembedded-devel@lists.openembedded.org Date: Tue, 27 Jun 2017 19:08:15 -0700 Message-Id: <20170628020819.17047-9-raj.khem@gmail.com> X-Mailer: git-send-email 2.13.2 In-Reply-To: <20170628020819.17047-1-raj.khem@gmail.com> References: <20170628020819.17047-1-raj.khem@gmail.com> Subject: [oe] [meta-networking][PATCH 09/13] ncftp: Upgrade to 3.2.6 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 Fix build with hardening flags Signed-off-by: Khem Raj --- .../recipes-daemons/ncftp/ncftp/unistd.patch | 32 ++++++++++++++++++++++ .../ncftp/{ncftp_3.2.5.bb => ncftp_3.2.6.bb} | 16 ++++++++--- 2 files changed, 44 insertions(+), 4 deletions(-) create mode 100644 meta-networking/recipes-daemons/ncftp/ncftp/unistd.patch rename meta-networking/recipes-daemons/ncftp/{ncftp_3.2.5.bb => ncftp_3.2.6.bb} (53%) -- 2.13.2 -- _______________________________________________ Openembedded-devel mailing list Openembedded-devel@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-devel diff --git a/meta-networking/recipes-daemons/ncftp/ncftp/unistd.patch b/meta-networking/recipes-daemons/ncftp/ncftp/unistd.patch new file mode 100644 index 000000000..1c8146eda --- /dev/null +++ b/meta-networking/recipes-daemons/ncftp/ncftp/unistd.patch @@ -0,0 +1,32 @@ +This patch is needed to avoid double definitions of functions +especially when building with security flags turned on. The double +definitions causes the sed.sh script in configure to fail since it +starts to spit out double outputs e.g. + +wi_cv_gethostname_size_t size_t size_t + +which then caused almost all subsequent compile time tests to fail since +this gets into confdefs.h file + +removing this include causes only one definitions to be emitted into +the genrated protos.h file and thus avoiding the above failure. + +Other solution would to fix sed.sh to ignore double definitions + +Upstream-Status: Pending + +Signed-of-by: Khem Raj + + +Index: ncftp-3.2.6/configure +=================================================================== +--- ncftp-3.2.6.orig/configure ++++ ncftp-3.2.6/configure +@@ -7859,7 +7859,6 @@ chmod 755 "$wi_tmpdir/prpp.pl" + cat << 'EOF' > "$wi_tmpdir/unistd.c" + #include + +-#include + #include + #include + #include diff --git a/meta-networking/recipes-daemons/ncftp/ncftp_3.2.5.bb b/meta-networking/recipes-daemons/ncftp/ncftp_3.2.6.bb similarity index 53% rename from meta-networking/recipes-daemons/ncftp/ncftp_3.2.5.bb rename to meta-networking/recipes-daemons/ncftp/ncftp_3.2.6.bb index 893eacb99..5f92f27fd 100644 --- a/meta-networking/recipes-daemons/ncftp/ncftp_3.2.5.bb +++ b/meta-networking/recipes-daemons/ncftp/ncftp_3.2.6.bb @@ -2,21 +2,29 @@ DESCRIPTION = "A sophisticated console ftp client" HOMEPAGE = "http://ncftp.com/" SECTION = "net" LICENSE = "ClArtistic" -LIC_FILES_CHKSUM = "file://ncftp/cmds.c;beginline=3;endline=4;md5=9de76faeaedc4f908082e3f8142715f4" +LIC_FILES_CHKSUM = "file://ncftp/cmds.c;beginline=3;endline=4;md5=9c2390809f71465aa7ff76e03dc14d91" DEPENDS = "ncurses" -SRC_URI = "${DEBIAN_MIRROR}/main/n/${BPN}/${BPN}_${PV}.orig.tar.gz \ +SRC_URI = "ftp://ftp.ncftp.com/${BPN}/${BP}-src.tar.xz \ file://ncftp-configure-use-BUILD_CC-for-ccdv.patch \ + file://unistd.patch \ " -SRC_URI[md5sum] = "685e45f60ac11c89442c572c28af4228" -SRC_URI[sha256sum] = "ac111b71112382853b2835c42ebe7bd59acb7f85dd00d44b2c19fbd074a436c4" +SRC_URI[md5sum] = "42d0f896d69a4d603ec097546444245f" +SRC_URI[sha256sum] = "5f200687c05d0807690d9fb770327b226f02dd86155b49e750853fce4e31098d" inherit autotools-brokensep pkgconfig +CFLAGS += "-DNO_SSLv2 -D_FILE_OFFSET_BITS=64 -Wall" + PACKAGECONFIG ??= "" PACKAGECONFIG[ccdv] = "--enable-ccdv,--disable-ccdv,," +EXTRA_OECONF = "--disable-precomp" +TARGET_CC_ARCH_append = " ${SELECTED_OPTIMIZATION}" + do_configure() { + install -m 0755 ${STAGING_DATADIR_NATIVE}/gnu-config/config.guess ${S} + install -m 0755 ${STAGING_DATADIR_NATIVE}/gnu-config/config.sub ${S} oe_runconf } do_install () { From patchwork Wed Jun 28 02:08:16 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Khem Raj X-Patchwork-Id: 106491 Delivered-To: patch@linaro.org Received: by 10.140.101.44 with SMTP id t41csp468193qge; Tue, 27 Jun 2017 19:10:15 -0700 (PDT) X-Received: by 10.84.241.135 with SMTP id b7mr137795pll.107.1498615815378; Tue, 27 Jun 2017 19:10:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1498615815; cv=none; d=google.com; s=arc-20160816; b=BsYWoqnXzjsmp25oBnvfpRW6tTPOPidw2L7FfWkTd6sOI9yxOf1+keWG8fzRozJcrm fBLk66ec8TjDnRBysHTmsS7MbIGPMGice5UHMuc34TR0nqTDwZrTs6LyK/djKv6puXa+ 8v/4DbIsk3SP2rVhIJQEBht3jvuc6+zBpTZxUI8alBSPllZcNIjqagG3Y0WWHlbJxLol CFt1WRJnZqlLvzWOGZulZje8s3cEGChQuTVa4u8OWuj8m6YXEXt9D1Nm4I+BdYAFPz86 dfz9/WmLaHqhO6rpRaStmgrwPyr/mrzgiuGu5//can9qbRHild8cDxwOOsjZN99eD/Ti gaLA== 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=2khBRkKHUH7GaIE6EiOZL15cM7M1rjFSswojIq/CSTY=; b=pmmqRxX4r7+GcjR5TJuLfNm5xKEPwvAMGu8czYqIR6H372WfWHZIKomCTdqeAzI88Y TVNcxC0jB0zELmtXEjdIErMPm+WX8EUC1m5UlbNhowaenfahRx78XKJbEjITEtwHvxY/ srq3Csd8WWLvpcKVz6LpFsEVYfzdI6GK1x4HVGtdTT525XK2K80guIys2Lxv1i83O2JT 95G7tSQQdCdr9B88xVI8BV1FyrEUOGs1UeDoklhRGqAx2Px/NScN15abBnbFZGl6XP4k iqRifCvoJZLxTmR2ctVxjb1uKKT4nAfXS5TnTQzugZqnjymXiDofIiHlpFdEa3apE81t 1uxw== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.b=X64/aIQD; 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 d7si640469pln.35.2017.06.27.19.10.15; Tue, 27 Jun 2017 19:10:15 -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=X64/aIQD; 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 38FB2781F0; Wed, 28 Jun 2017 02:09:22 +0000 (UTC) X-Original-To: openembedded-devel@lists.openembedded.org Delivered-To: openembedded-devel@lists.openembedded.org Received: from mail-pf0-f179.google.com (mail-pf0-f179.google.com [209.85.192.179]) by mail.openembedded.org (Postfix) with ESMTP id 4DC7B78088 for ; Wed, 28 Jun 2017 02:08:52 +0000 (UTC) Received: by mail-pf0-f179.google.com with SMTP id s66so25386749pfs.1 for ; Tue, 27 Jun 2017 19:08:54 -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=Udc/iIuAOncRBVm+++CftmRd96Epp+rpwGlVUQDwv0w=; b=X64/aIQD9ILnB9rd42bsIQvYVG1ngScvNIDjUgTSiAM7qdk4RYsRsEWa6LcUhSeIAy A4VQqX60fQUqFBXzaEEZPUUW14dgl/iproSapMy2XaR7hYWCig47BPiSGPE8uD/vYyd0 2vGW29ecWDS6O/l1uWG3/2qaIwa7njmP5Oe7BlzpI2NycwNb290K+Yyo4BN4AnOMjEo/ iS3ztDgD8785bcfCIGNMlkxrQOo9r9yz95fxhcR9inB3V25o5GGLUfBZlUTcd5MDwEUh k3Ebmf6qpLe1DxwxOy1+kcQMnzJDplomrC4KzcmeUAS/APoqsv/QY0yKr9fFnJFg63EB hADQ== 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=Udc/iIuAOncRBVm+++CftmRd96Epp+rpwGlVUQDwv0w=; b=GgxNnlsULSppzxtZN9ExYU5NRoGoHbpvSObpg42ehroj/CGNhbNnRgbx7tX1Lsg08a gHPfuHlzzPPXFA7LOODnFBuuJ5X4W1XabKMxaJ9+dG76thDtbTBMl+W16MRHVJ+cGrC+ X15PhSAuTPDNqIT85kx2Kat7C3cMqVePMo5x0vHq9ovMhpfizgiT+XHPwHYcSeK6ZVX2 l3QeIl7BFaDivahGs61mHAmCdCh/F5wBP9aXc3t52YS0vwzgKunalOLAS67/RUUOAxY6 URNLj08fqESCT5g8m1kbDUNw1rnV1cFUKgenRGPR8RG4Coa1CmNYI4e6XN+58w4zzK8H AOGw== X-Gm-Message-State: AKS2vOzJkBr9jVR4ZCKxBHzENb5LymtZUr3eWSJyZgTVkZ2hB3kOdwjR 3K+0vOExjsir0gxV X-Received: by 10.98.78.88 with SMTP id c85mr8379897pfb.17.1498615734117; Tue, 27 Jun 2017 19:08:54 -0700 (PDT) Received: from localhost.localdomain ([2601:646:8882:b8c::3df3]) by smtp.gmail.com with ESMTPSA id b8sm1003591pfd.65.2017.06.27.19.08.52 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 27 Jun 2017 19:08:53 -0700 (PDT) From: Khem Raj To: openembedded-devel@lists.openembedded.org Date: Tue, 27 Jun 2017 19:08:16 -0700 Message-Id: <20170628020819.17047-10-raj.khem@gmail.com> X-Mailer: git-send-email 2.13.2 In-Reply-To: <20170628020819.17047-1-raj.khem@gmail.com> References: <20170628020819.17047-1-raj.khem@gmail.com> Subject: [oe] [meta-oe][PATCH 10/13] lmbench: Fix build with hardening flags 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 --- .../0001-lat_http.c-Add-printf-format.patch | 26 ++++++++++++++++++++++ .../recipes-benchmark/lmbench/lmbench_3.0-a9.bb | 3 ++- 2 files changed, 28 insertions(+), 1 deletion(-) create mode 100644 meta-oe/recipes-benchmark/lmbench/lmbench-3.0-a9/0001-lat_http.c-Add-printf-format.patch -- 2.13.2 -- _______________________________________________ Openembedded-devel mailing list Openembedded-devel@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-devel diff --git a/meta-oe/recipes-benchmark/lmbench/lmbench-3.0-a9/0001-lat_http.c-Add-printf-format.patch b/meta-oe/recipes-benchmark/lmbench/lmbench-3.0-a9/0001-lat_http.c-Add-printf-format.patch new file mode 100644 index 000000000..18ed43d06 --- /dev/null +++ b/meta-oe/recipes-benchmark/lmbench/lmbench-3.0-a9/0001-lat_http.c-Add-printf-format.patch @@ -0,0 +1,26 @@ +From 6faa6acdf20aa6f738eed1483b7dceed94286adb Mon Sep 17 00:00:00 2001 +From: Khem Raj +Date: Tue, 27 Jun 2017 14:39:10 -0700 +Subject: [PATCH] lat_http.c: Add printf format + +Signed-off-by: Khem Raj +--- + src/lat_http.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/src/lat_http.c b/src/lat_http.c +index c630d59..28d04f7 100644 +--- a/src/lat_http.c ++++ b/src/lat_http.c +@@ -27,7 +27,7 @@ http(char *server, char *file, int prog) + sock = tcp_connect(server, prog, SOCKOPT_REUSE); + sprintf(buf, "GET /%s HTTP/1.0\r\n\r\n\n", file); + if (debug) { +- printf(buf); ++ printf("%s", buf); + } + write(sock, buf, strlen(buf)); + while ((n = read(sock, buf, XFERSIZE)) > 0) { +-- +2.13.2 + diff --git a/meta-oe/recipes-benchmark/lmbench/lmbench_3.0-a9.bb b/meta-oe/recipes-benchmark/lmbench/lmbench_3.0-a9.bb index 62906fd68..43ac1d038 100644 --- a/meta-oe/recipes-benchmark/lmbench/lmbench_3.0-a9.bb +++ b/meta-oe/recipes-benchmark/lmbench/lmbench_3.0-a9.bb @@ -19,7 +19,8 @@ SRC_URI = "${SOURCEFORGE_MIRROR}/lmbench/lmbench-${PV}.tgz \ file://lmbench_result_html_report.patch \ file://fix-lmbench-memory-check-failure.patch \ file://0001-avoid-gcc-optimize-away-the-loops.patch \ -" + file://0001-lat_http.c-Add-printf-format.patch \ + " SRC_URI[md5sum] = "b3351a3294db66a72e2864a199d37cbf" SRC_URI[sha256sum] = "cbd5777d15f44eab7666dcac418054c3c09df99826961a397d9acf43d8a2a551" From patchwork Wed Jun 28 02:08:17 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Khem Raj X-Patchwork-Id: 106492 Delivered-To: patch@linaro.org Received: by 10.140.101.44 with SMTP id t41csp468281qge; Tue, 27 Jun 2017 19:10:22 -0700 (PDT) X-Received: by 10.98.57.156 with SMTP id u28mr8413617pfj.111.1498615822840; Tue, 27 Jun 2017 19:10:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1498615822; cv=none; d=google.com; s=arc-20160816; b=z7I6uubamt01fH1BdBkHMJUA1d1HkboYmbuY6Z9Ygf77sRXbsTJtKNEgbSWxIMYRlC firahlasGuABGfW8U5/O4qGbpEZX39DnbkoKYkbIBSeyu7Z0tfW4o/8wdrHNzXLJmZ4s znQZGWxakq0swGYWMmKdBYFb24nDXHTubA91v10MTaDA0l+xoVZwVgYrqoHq+sGuP5E/ Uov+vcNtZPcyoHXeguIINUwthDFI3LUWttrTsBMoLAYjICNHgClFbJNu67lEAZz4R8Tf AXb58uz/EH4Efbi52gnrNoL+cESytHJXcBQp3CULZ+Cl7gUIV/S+tQ90TjOriPKucmmR hBgQ== 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=1Gl3mlKLxeBvSC61mUm0FD4Un41bayC2ISHJgMydCi8=; b=GmObroCPcb/uleK7HSXoHuDk+julxL0+Ocq8CNL7+/QR2roT6C7Wgfi5FqOdGVKd+K tX0JITSdnVC4L0EWZEBj+TE/NFxZ1KBDb0prkqbellxxcascOLx40EU10FXQmOozLKRc gTxmbkiK5znJm3ZKRxnGaArkdovbuWyB8gHbyhWdKzDQf4OT54sS8vUEEoeywB4uFote dLOzabY/sitfadM+G1a9O4ubk1GpqOfL6U+96UzMkb6NRiopDXhQXC4c0czS/HiuQ+Ov DnGcXZMOTjCV9ZjGtKdBq8pv0Wlf8kWdWY0u7GZOxUoc52TlN8XplOoIo9wDBQY+2SJ4 vFpQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.b=OKBZ5AiF; 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 t19si648693plj.412.2017.06.27.19.10.22; Tue, 27 Jun 2017 19:10:22 -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=OKBZ5AiF; 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 4EC80781F7; Wed, 28 Jun 2017 02:09:23 +0000 (UTC) X-Original-To: openembedded-devel@lists.openembedded.org Delivered-To: openembedded-devel@lists.openembedded.org Received: from mail-pf0-f193.google.com (mail-pf0-f193.google.com [209.85.192.193]) by mail.openembedded.org (Postfix) with ESMTP id 336187807A for ; Wed, 28 Jun 2017 02:08:54 +0000 (UTC) Received: by mail-pf0-f193.google.com with SMTP id s66so6946774pfs.2 for ; Tue, 27 Jun 2017 19:08:56 -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=kyO+J1+NE0P4cJail/sosU9dTrVK9igoCQNL6Lb5No4=; b=OKBZ5AiFO9c79Qblodjo0CRvVxxr7U1PUo3nqaukd0D8+tiXd68OYqO3OloFgNcbmn Aty7RmfG/j6Cq++t40kC7kM1EjxvvzI385Mzb/nLRvLD/RXgMzWWcomJw5R93sAGIG+z ShKFgIdJ/bhE/gBeJsKjOHTAFt5FfbQWXB7+XKpcslGs+nAzEuIx4/D6jDv7EireAhH9 RA577cMNyMB0u5wBDg3tG8zKbBCKxRzuTbCn/nvhnvvYMLxLMuUTFs1cgavc1Z4lEJvw 3c132WlDL61oNuUmkjQxC+AAiHXsESBWNkVm4hJyUECm3wYRZDUVrLHMw8TOPp+1lu5k o9tg== 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=kyO+J1+NE0P4cJail/sosU9dTrVK9igoCQNL6Lb5No4=; b=uet+0D2tWZyQXBjmdvNX2J3r5JKoVy0mHmro6K92h8UEd9TPbSsdLDWLoQsA4mJiv2 OWLadUcDyYfkRBmXlG45oYYgEg3ncrZeYuzpGxHkBTHePL6MyRZpJSywwiIG9lyd3raV eoX7iqCICMckYK8cfQHmLgcpQrY8IMSaEzvrv+ZkgvoiwSme/cil1VYx7U4EN73hPO8V 2dqZzFUGxQwmo3LyXejsggDeUx9y4Lcd1JDVMkjWBjfQJoVhuhdrUoAQcp2kBf6/LTU9 4uMuZby0Q0JVjF7ksbzNdzEywKiX6bRL9spb1Auf4+Ta0O6lzOAQvr5SuEdvv3n46mCD HrzA== X-Gm-Message-State: AKS2vOxwAz1e6xsSQCQ1uSvdar8UmR2lOFDrPQXRc6bUh4AGG9lJX52J 3Z870Zx99TIBS0m4 X-Received: by 10.84.143.36 with SMTP id 33mr8982563ply.171.1498615735966; Tue, 27 Jun 2017 19:08:55 -0700 (PDT) Received: from localhost.localdomain ([2601:646:8882:b8c::3df3]) by smtp.gmail.com with ESMTPSA id b8sm1003591pfd.65.2017.06.27.19.08.54 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 27 Jun 2017 19:08:54 -0700 (PDT) From: Khem Raj To: openembedded-devel@lists.openembedded.org Date: Tue, 27 Jun 2017 19:08:17 -0700 Message-Id: <20170628020819.17047-11-raj.khem@gmail.com> X-Mailer: git-send-email 2.13.2 In-Reply-To: <20170628020819.17047-1-raj.khem@gmail.com> References: <20170628020819.17047-1-raj.khem@gmail.com> Subject: [oe] [meta-gnome][PATCH 11/13] wv: Fix build with hardening flags 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 --- ...vRTF.c-Specify-print-format-in-rtf_output.patch | 26 ++++++++++++++++++++++ meta-gnome/recipes-gnome/wv/wv_1.2.4.bb | 3 ++- 2 files changed, 28 insertions(+), 1 deletion(-) create mode 100644 meta-gnome/recipes-gnome/wv/wv-1.2.4/0001-wvRTF.c-Specify-print-format-in-rtf_output.patch -- 2.13.2 -- _______________________________________________ Openembedded-devel mailing list Openembedded-devel@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-devel diff --git a/meta-gnome/recipes-gnome/wv/wv-1.2.4/0001-wvRTF.c-Specify-print-format-in-rtf_output.patch b/meta-gnome/recipes-gnome/wv/wv-1.2.4/0001-wvRTF.c-Specify-print-format-in-rtf_output.patch new file mode 100644 index 000000000..2fc3f367f --- /dev/null +++ b/meta-gnome/recipes-gnome/wv/wv-1.2.4/0001-wvRTF.c-Specify-print-format-in-rtf_output.patch @@ -0,0 +1,26 @@ +From 079529b8d5e339e2211fa2f8c15543a738a627bc Mon Sep 17 00:00:00 2001 +From: Khem Raj +Date: Tue, 27 Jun 2017 14:50:51 -0700 +Subject: [PATCH] wvRTF.c: Specify print format in rtf_output() + +Signed-off-by: Khem Raj +--- + wvRTF.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/wvRTF.c b/wvRTF.c +index 361d258..4f24b30 100644 +--- a/wvRTF.c ++++ b/wvRTF.c +@@ -192,7 +192,7 @@ output_rtfUserData (rtfUserData * ud) + rtf_output_char ('{'); + + /* font color */ +- rtf_output (rtfColors[ud->cCol]); ++ rtf_output ("%s", rtfColors[ud->cCol]); + + /* font face */ + rtf_output ("\\f%d", ud->cFont); +-- +2.13.2 + diff --git a/meta-gnome/recipes-gnome/wv/wv_1.2.4.bb b/meta-gnome/recipes-gnome/wv/wv_1.2.4.bb index 6489c6f19..8ed1fcd15 100644 --- a/meta-gnome/recipes-gnome/wv/wv_1.2.4.bb +++ b/meta-gnome/recipes-gnome/wv/wv_1.2.4.bb @@ -8,7 +8,8 @@ DEPENDS = "libgsf glib-2.0 libpng" SRC_URI = "${SOURCEFORGE_MIRROR}/wvware/wv-${PV}.tar.gz \ file://pkgconfig.patch \ file://0001-configure-use-foreign-mode-to-avoid-errors-with-miss.patch \ - " + file://0001-wvRTF.c-Specify-print-format-in-rtf_output.patch \ + " SRC_URI[md5sum] = "c1861c560491f121e12917fa76970ac5" SRC_URI[sha256sum] = "673109910e22d4cf94cc8be4dcb9a0c41b5fbdb1736d4b7bdc7778894d57c2d6" From patchwork Wed Jun 28 02:08:18 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Khem Raj X-Patchwork-Id: 106493 Delivered-To: patch@linaro.org Received: by 10.140.101.44 with SMTP id t41csp468359qge; Tue, 27 Jun 2017 19:10:30 -0700 (PDT) X-Received: by 10.84.224.72 with SMTP id a8mr8843187plt.219.1498615830897; Tue, 27 Jun 2017 19:10:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1498615830; cv=none; d=google.com; s=arc-20160816; b=JLSl/4D09vHMvJoYI3vfBADEZtJaakVaDbG4H8bORgDuCyt3A0aKJWiBBh53saUIR3 FCthG0fL0uoQxXgpmz79Cq0q0tKbLpd6Y8tusNeQqRmQUMvn/9jzWeaCwcF/vgGbYxmp RkXthTVfiiD6PD5Aq3wiVjP9j0YVA2vmmzZL3m0C8Lrv6lrwrCzwVkskP/7cFw3zKqHf F6zEWUvSCNDvVjn37k426UhfnCFe7EeBgimq+yXB0ZmcctvoOSNKzmuLwHEwBnriOsLW AptvSOBHX4GfCHIA7AjKj85TFwiwEPY8Rx7rHmI60y+QN4PZa3S5S73kC4tS0NLbb8KC EexQ== 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=MPSH6kacMb8QGOXSYX6LPs6k8WYw0Z2ISFBfNDv5oCk=; b=PrvUuxgDc/wCQ/Kbw5LVzGkntKq0Unv8EkTAfLfxUqgMomHVHnsluGBExEQI4uTozM FWOdxkFukSc+Ay03KmZPSJkpAz8edPv0HISHszqyn0Y8yY7veZRonJ1iAUT0+VyDMnmk drlIyLwuqyywbhUp6d43dW+6SuAbJ81p/iG9UXTTjvTno2AL3JeMKE2SbAxiOjoGVCsK iOYHVOgzLvJ9K5P2MKMxZR3nsy0prHlvuYzOg8DVZZWudd9qNJh5R25KHsIdcICSLs9J deXQXwSgKC6+c23oYAAV7k9i8VaEmHbPow8X+fHOjUmr0F+dQo1//9yf1ym396ZvP19U y5vQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.b=OluyuyUv; 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 a90si585747pfl.165.2017.06.27.19.10.30; Tue, 27 Jun 2017 19:10:30 -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=OluyuyUv; 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 91C6678202; Wed, 28 Jun 2017 02:09:24 +0000 (UTC) X-Original-To: openembedded-devel@lists.openembedded.org Delivered-To: openembedded-devel@lists.openembedded.org Received: from mail-pg0-f66.google.com (mail-pg0-f66.google.com [74.125.83.66]) by mail.openembedded.org (Postfix) with ESMTP id F0B847807A for ; Wed, 28 Jun 2017 02:08:56 +0000 (UTC) Received: by mail-pg0-f66.google.com with SMTP id u62so6332936pgb.0 for ; Tue, 27 Jun 2017 19:08: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=p+k9Wz2mloZHGrm3HK4ihTe2VcdDNQ5fis/1wcxwkuk=; b=OluyuyUvobw5j5Orvk1yIPqoj1nyHma4fFYzK86C9f+s/jxf1BTiTurYl19CBuH99B 7C4POlQIdXHYjkHyTQuAzcFeTNuWDF5ZnCDZZYshgppjnhu62u4YC8S7MW7by6HLdey4 KIhAduJLnyo7ewpOWqzYW/NHsm7L6wziGTrp9yAyueV08yli4+Ez9wOpTNqAQI+NJMZ1 hN9DcbSIJOz/P0qDk87MuXjiPLxW6u0ePMK57ys1k8Qi+RyH0BcmHjIR4KVoRPXq0khB 4asui18Gg+1pp27BKkxI12XEYc4wwCfQrPxU9IaBQst4V6BiDKblaBwub+SIYy4x0gBP gVGw== 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=p+k9Wz2mloZHGrm3HK4ihTe2VcdDNQ5fis/1wcxwkuk=; b=Nr9Y+cAi7bwUuBzHnnTuZdiYunlN191PPHHJfpXcZwI6Po+KFYqiLVTmhpdycKhfY2 Lz9/vKQsoBsM0nzX2pSMhlp0awE5/Ov1vUFnzNt4Ei0nOZZfYV1PewQeBIMJ0QKDr15k L4eLEAc65E3tl2TOIjH3b5c9yzUgvDRTAnZZj0WX89yYvgFjRg4Ci4OVGEycTDnXCw3q i4VopsXOnT09/WUbO4tD08eoLXOIj5iP7SFVSlWqCswec61MF89WMYoi6KkHVNP9x+xC L1HIHKLKHD6xfKNPVLghTd+VcipWBpzeohKRyOpOArQ5EjoLoVWIBdJR96WftHHVsvCZ Bb2g== X-Gm-Message-State: AKS2vOwoNAqDZjJ9pFKqAK72dqD2dntQWmKJjVXIqKDziDYUNrWU14R5 qqYMxngIHLLiLx/r X-Received: by 10.84.232.77 with SMTP id f13mr8831239pln.172.1498615737749; Tue, 27 Jun 2017 19:08:57 -0700 (PDT) Received: from localhost.localdomain ([2601:646:8882:b8c::3df3]) by smtp.gmail.com with ESMTPSA id b8sm1003591pfd.65.2017.06.27.19.08.56 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 27 Jun 2017 19:08:56 -0700 (PDT) From: Khem Raj To: openembedded-devel@lists.openembedded.org Date: Tue, 27 Jun 2017 19:08:18 -0700 Message-Id: <20170628020819.17047-12-raj.khem@gmail.com> X-Mailer: git-send-email 2.13.2 In-Reply-To: <20170628020819.17047-1-raj.khem@gmail.com> References: <20170628020819.17047-1-raj.khem@gmail.com> Subject: [oe] [meta-networking][PATCH 12/13] ippool: Fix build errors found with hardening flags 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 --- ...timer-Check-for-return-value-of-write-API.patch | 28 ++++++++++++++++++++++ .../recipes-daemons/ippool/ippool_1.3.bb | 22 ++++++++--------- 2 files changed, 39 insertions(+), 11 deletions(-) create mode 100644 meta-networking/recipes-daemons/ippool/ippool/0001-usl_timer-Check-for-return-value-of-write-API.patch -- 2.13.2 -- _______________________________________________ Openembedded-devel mailing list Openembedded-devel@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-devel diff --git a/meta-networking/recipes-daemons/ippool/ippool/0001-usl_timer-Check-for-return-value-of-write-API.patch b/meta-networking/recipes-daemons/ippool/ippool/0001-usl_timer-Check-for-return-value-of-write-API.patch new file mode 100644 index 000000000..6fb7cc5c4 --- /dev/null +++ b/meta-networking/recipes-daemons/ippool/ippool/0001-usl_timer-Check-for-return-value-of-write-API.patch @@ -0,0 +1,28 @@ +From 5d7f20c045b3c74dad2c53d65e30bd4840250082 Mon Sep 17 00:00:00 2001 +From: Khem Raj +Date: Tue, 27 Jun 2017 15:17:19 -0700 +Subject: [PATCH] usl_timer: Check for return value of write() API + +Signed-off-by: Khem Raj +--- + usl/usl_timer.c | 4 +++- + 1 file changed, 3 insertions(+), 1 deletion(-) + +diff --git a/usl/usl_timer.c b/usl/usl_timer.c +index fda752b..d8414a6 100644 +--- a/usl/usl_timer.c ++++ b/usl/usl_timer.c +@@ -94,7 +94,9 @@ void usl_timer_tick(void) + + if (!usl_tick_pending) { + usl_tick_pending = 1; +- write(usl_tick_pipe[1], &msg, sizeof(msg)); ++ if (write(usl_tick_pipe[1], &msg, sizeof(msg)) != sizeof(msg)) { ++ fprintf(stderr, "write to fd %i failed: %s\n", usl_tick_pipe[1], strerror(errno)); ++ } + } + } + +-- +2.13.2 + diff --git a/meta-networking/recipes-daemons/ippool/ippool_1.3.bb b/meta-networking/recipes-daemons/ippool/ippool_1.3.bb index 969f434cc..e1c9215ca 100644 --- a/meta-networking/recipes-daemons/ippool/ippool_1.3.bb +++ b/meta-networking/recipes-daemons/ippool/ippool_1.3.bb @@ -11,16 +11,16 @@ HOMEPAGE = "http://www.openl2tp.org/" SECTION = "console/network" LICENSE = "GPLv2+" -SRC_URI = "\ - https://sourceforge.net/projects/openl2tp/files/${BPN}/${PV}/${BPN}-${PV}.tar.gz \ - file://ippool_usl_timer.patch \ - file://ippool_parallel_make_and_pic.patch \ - file://ippool_init.d.patch \ - file://always_syslog.patch \ - file://makefile-add-ldflags.patch \ - file://runtest.sh \ - file://ippool.service \ - " +SRC_URI = "https://sourceforge.net/projects/openl2tp/files/${BPN}/${PV}/${BPN}-${PV}.tar.gz \ + file://runtest.sh \ + file://ippool.service \ + file://ippool_usl_timer.patch \ + file://ippool_parallel_make_and_pic.patch \ + file://ippool_init.d.patch \ + file://always_syslog.patch \ + file://makefile-add-ldflags.patch \ + file://0001-usl_timer-Check-for-return-value-of-write-API.patch \ + " LIC_FILES_CHKSUM = "file://LICENSE;md5=4c59283b82fc2b166455e0fc23c71c6f" SRC_URI[md5sum] = "e2401e65db26a3764585b97212888fae" @@ -50,7 +50,7 @@ do_compile_prepend() { # ignore the OPT_CFLAGS?= in Makefile, # it should be in CFLAGS from env - export OPT_CFLAGS= + export OPT_CFLAGS="${SELECTED_OPTIMIZATION}" } From patchwork Wed Jun 28 02:08:19 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Khem Raj X-Patchwork-Id: 106494 Delivered-To: patch@linaro.org Received: by 10.140.101.44 with SMTP id t41csp468452qge; Tue, 27 Jun 2017 19:10:38 -0700 (PDT) X-Received: by 10.99.121.133 with SMTP id u127mr7952611pgc.31.1498615838299; Tue, 27 Jun 2017 19:10:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1498615838; cv=none; d=google.com; s=arc-20160816; b=Cz1q502X2chebAGsq3fSw12NP4XpyYGXhdFLyNlyRONxIPlyy1UtMwfc5tFL8qYx3c js6alfc+hOlIEWAYcOEcNr3ANhlIst4JRWnKmU2jwwKUjme+/0F0VynxmJFMA9MraeiL 1ei8qzK8HyMV6NE/lM2JUBHrzKT/2v+z/TunwB3OMisftYMTtVRp3cUUMP2QiZcOwds3 OtlfCPihvXFezn/zYCGALP0HM4aog1T2mBx8usIOPuI44dQ20n1DG7ZGABcDb/CyMGVM 5I9BXb/vCZ8kz4PBuR3Gd2gxd4RS0xwh6YIGpcf47InXCLvJHiD4QKqxPK91wXP1JW4f GNSg== 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=zb1Zv0/w8BM3coWjD8yn0E2PAnrR/IvSaiYV3Q+wZwM=; b=qQr8P7w3mnrUc6NRPeExrXwBQBg3Vdjl/dAZdR4Qmvj43+NvFmciApGNkZ9zKACNHh zyy3G0koGNNh1CHb1mx4IAfSsnTYb8NO2mqE8Zb9T7LytuVglgBPgHXbLU2e2PgY0ioR 1dIdAg/znMT9J7D0D/xWh3qFakej7d9QC28VgyZHMfH3NYmScuAeCO/30px13mYvy8VZ 8QNUY+JSkc1nAhQ6X6hLOvFoQNZWKLaeEMjHJncUKiEQJ2RjdUfF8K2CvDUzIYxJVl9h YHpsQhCYH6Fq85qVlgCDYuHBgGLWIqv9Inu2X6VQEtgr9h1DOOyuILShdSdmqytaAuwY M0Kg== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.b=BiqZoBIT; 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 63si668526plb.49.2017.06.27.19.10.37; Tue, 27 Jun 2017 19:10:38 -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=BiqZoBIT; 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 C362B78209; Wed, 28 Jun 2017 02:09:25 +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 7AA7B78082 for ; Wed, 28 Jun 2017 02:08:58 +0000 (UTC) Received: by mail-pf0-f196.google.com with SMTP id s66so6946907pfs.2 for ; Tue, 27 Jun 2017 19:08:59 -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=1Rwa+Aq3OuumzTpbsAJ4omRPUb61oZrJlzZvl/twI/g=; b=BiqZoBITquBqEpN7OjzDgHDaYeK/QPgsbnlXXsrtgrH/NrpRLGRz2M8LUrZ3qDTu/w 82BWsu41Zklw6KghwzrME3mRC8p+zCiPBUMNm82WZHwmOHCG2O3mecKDY8FsUp89FhyU mzjqgTNIF9OcvHPt8ePKI7rpsLSWQlWuO1fPGO97EkyyAuWOONuvdCDMySU+029cgHEk pZYfuWp4yqx3RgT+1XrCjBwGI/HOUF5tPBxCuhMsd77BwDoqIVXb8D+AU0yE1AZFm3Ba RPjO4LIvgqkg1iKFk1EFT03gn8g4LWVCwnG3CcMgRnZNo688ks/jzrmEZjElATyLDuF+ OBpQ== 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=1Rwa+Aq3OuumzTpbsAJ4omRPUb61oZrJlzZvl/twI/g=; b=Hxkx6OgXzdc2GI2UIRgp91muzWndmm9/sk9EL5AHLy9AyaoSWkEVhuvCAk/LM2pPM/ binlAZW0GvOFE5Tl4nMk9tD0awhZq4uUFksnqjrC4lM7S4xc383W+ZULUS9EWiXi7dse 4DFZgqaPW0dlkDpyxBF+1VLdnG7ZmtVnwyl6uGQSMfIqVoVlZkqrzR9Bjl+2WtxXcTg1 qLIIOdpxN0oB0VbBDLN2UIlIhCGHiISDX6jBuG4GxJyIvar7lY0lKfK2Et8VqvQEifzs bNfkwPEQ87Dx+AYuH4HlSnaeYL26IyKv/s3nTYcKcKSJRhuJUPuVt4STA61kdjiznGtT nLTw== X-Gm-Message-State: AKS2vOy0VIrky41gfyKLODG0xXIimJzSrDC95+e3UJSTgXdJJ2APzM3k v12sZ2wO1UHlUjGv X-Received: by 10.84.140.107 with SMTP id 98mr9077003pls.97.1498615739155; Tue, 27 Jun 2017 19:08:59 -0700 (PDT) Received: from localhost.localdomain ([2601:646:8882:b8c::3df3]) by smtp.gmail.com with ESMTPSA id b8sm1003591pfd.65.2017.06.27.19.08.57 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 27 Jun 2017 19:08:58 -0700 (PDT) From: Khem Raj To: openembedded-devel@lists.openembedded.org Date: Tue, 27 Jun 2017 19:08:19 -0700 Message-Id: <20170628020819.17047-13-raj.khem@gmail.com> X-Mailer: git-send-email 2.13.2 In-Reply-To: <20170628020819.17047-1-raj.khem@gmail.com> References: <20170628020819.17047-1-raj.khem@gmail.com> Subject: [oe] [meta-filesystems][PATCH 13/13] aufs-util: Upgrade to 3.18 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 Fix out of tree build, helps building with devtool Signed-off-by: Khem Raj --- meta-filesystems/recipes-utils/aufs-util/aufs-util_git.bb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) -- 2.13.2 -- _______________________________________________ Openembedded-devel mailing list Openembedded-devel@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-devel diff --git a/meta-filesystems/recipes-utils/aufs-util/aufs-util_git.bb b/meta-filesystems/recipes-utils/aufs-util/aufs-util_git.bb index 50d8b909a..1e8677574 100644 --- a/meta-filesystems/recipes-utils/aufs-util/aufs-util_git.bb +++ b/meta-filesystems/recipes-utils/aufs-util/aufs-util_git.bb @@ -7,8 +7,8 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=892f569a555ba9c07a568a7c0c4fa63a" DEPENDS = "aufs-util-native" DEPENDS_class-native = "" -SRCREV = "b59a2167a135ceea37581ee33997de278cf8a30a" -SRC_URI = "git://git.code.sf.net/p/aufs/aufs-util;protocol=git;branch=aufs3.14 \ +SRCREV = "bdfcc0dcfc6113146e928f85145dbd2cf9b0e080" +SRC_URI = "git://git.code.sf.net/p/aufs/aufs-util;protocol=git;branch=aufs3.18 \ file://aufs-util-don-t-strip-executables.patch \ file://aufs-util-add-tool-concept-to-Makefile-for-cross-com.patch \ file://aufs_type.h \ @@ -34,7 +34,7 @@ do_configure_append () { do_configure_append_class-target () { for i in ver c2sh c2tmac; do - cp ${STAGING_BINDIR_NATIVE}/aufs-util-${PV}/$i ./ + cp ${STAGING_BINDIR_NATIVE}/aufs-util-*/$i ${B} done }