From patchwork Sat Jul 15 01:55:36 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Khem Raj X-Patchwork-Id: 107844 Delivered-To: patch@linaro.org Received: by 10.140.101.44 with SMTP id t41csp1667549qge; Fri, 14 Jul 2017 18:57:54 -0700 (PDT) X-Received: by 10.98.178.150 with SMTP id z22mr8132332pfl.165.1500083874494; Fri, 14 Jul 2017 18:57:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1500083874; cv=none; d=google.com; s=arc-20160816; b=Czi38ONMZgNeCJZOAjQsrSWJspDRm8+Y3OMeCWKgYoSZuC6GzFtDTvPF96KwAQvY8V Itl4apY8/7uRIwTSJyYDhlY85IvNO6dUz+t11R3WLEiLeXqfHt7VZDmCdWY8r7VcvqVb dOzdNVoZcLwvLtC5kfMScZpStUBIgRFiMVhrC6SPxa/7Ecdgcz7whC74dTySXGSQppE2 MNcC3BvKa0+fD0o3EMkMJtkHEOKb7fvpes3J8TIEsvkNokQmReLFsSg2CF/YkuNi9IsC iIlb2HSdpPvTAdoZ2leklTYHCUhIJhUKJw6PErdTy0zMoMwn0OtQSnUXDQdrD332eTN9 LWVw== 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=VLeB+vYdaDDSo/JjEi9NG8Yms8UxFjDgQpVQ3D74IRo=; b=hR6sLptWaWnAK8NRNLwqipQb9wdusHsCADJi03DJQBf8PIEqaaJteiGBKixuwlSMcO yjAL0wLQzkIZ2xxpuUKPgSDV0hoQNoTLnq/RVnVzBos5d+0dJyD1zdBBXkaq2GWGTmex HSzBDCQEk+viXO+WM1R9Mh+FkbgJ9IxSJ+t/msUC8DVK0wd4gJ7aG1sAc31ub9mf1qnr 58uT8De6LX9CgCny9RXQ8ocm1wr3chT8tvvQIzyprsKX4NlDDStpI6bD+rIJoGmTtdGX IOGOZJBIw/fDKJdmyHYWyRZA3USdqKm+ui6xg4ZgfkUl6W/BWYHNS/Cku6yGfQoULfYJ 5abw== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.b=T9IGzs7I; 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 65si8014766pla.310.2017.07.14.18.57.54; Fri, 14 Jul 2017 18:57:54 -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=T9IGzs7I; 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 06751782CF; Sat, 15 Jul 2017 01:57:52 +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 F2FA5782B5 for ; Sat, 15 Jul 2017 01:55:49 +0000 (UTC) Received: by mail-pf0-f195.google.com with SMTP id z6so12703118pfk.3 for ; Fri, 14 Jul 2017 18:55: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=8MDSd3pmpMEaXZP0y3suAYUR8IKsZkv1dAes8pY3KqM=; b=T9IGzs7Ij0T1uY4O0AdZkhw/tePTTU8Z4CNT79H6Orl3LS+sq7dMar4cHUJl54DJpC mtJLFXEZwV0HgYjhn40+1hFNmeIou4CMT5b4JBwGQtyx4Yi3E1Tyl2RGJbOALSnSUKlp g+9KM9dYZfVwo8sYCdO+DKNdqmgMfd8C/eZM1oXsLfo8fAX77eMARbqEvO3b7znb/req 4LRkjw2+8wSl9fOdU0EWmlzQKVryoRR2OZ23ry6u98yjNTKvt+p7O+b/tph6Y3eOyjAg boriBlib31lvtDgrTBnw9RnwaKyLEelhFTupQLPK76nfuVGBh1QHUjmyO562NOB0M71n b4xA== 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=8MDSd3pmpMEaXZP0y3suAYUR8IKsZkv1dAes8pY3KqM=; b=kxyKOdVZMSWJdEgO2rq9MLjFfkj7iiBMfJqi4hAokdpkw9l+w566oRcdI5p6XE3aRg qFQ+I8Fa4SGqauUljuTuNK7yu1KmPd2EnnEE/Ob2dd+qjqKaiV2/CyUcyespgb5XoQ9K hdHfMPH3At4bi6AuDxLn8zTm96wQyDKHgdjYTxgf9LlRWyr8ror9F/JpCjaqDZ+yIHJV KklDec7IF6muUukATifYHQYaPHtS8sRNiQ4Rw9NPUfyfbTP46iAhZopK3sGT8qMjNgdI PexZpnz55PY4rASSAeFNYhNkts08SMPfQaBXFsgwDTXeaA0uRgqTeZMpjZVX4otoqbZ0 I3rw== X-Gm-Message-State: AIVw111cxsr/0ORDjOjNXSqDNMQ+eCZ0gcjXV7W/RT+kJk7PZILvvqk4 vzt9hdOlW3RsboQE X-Received: by 10.98.201.75 with SMTP id k72mr7977561pfg.99.1500083750870; Fri, 14 Jul 2017 18:55:50 -0700 (PDT) Received: from localhost.localdomain ([2601:646:8882:b8c::7028]) by smtp.gmail.com with ESMTPSA id l4sm18189589pgr.21.2017.07.14.18.55.49 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 14 Jul 2017 18:55:49 -0700 (PDT) From: Khem Raj To: openembedded-devel@lists.openembedded.org Date: Fri, 14 Jul 2017 18:55:36 -0700 Message-Id: <20170715015539.31584-3-raj.khem@gmail.com> X-Mailer: git-send-email 2.13.3 In-Reply-To: <20170715015539.31584-1-raj.khem@gmail.com> References: <20170715015539.31584-1-raj.khem@gmail.com> Subject: [oe] [meta-oe][PATCH V2 3/6] nmon: Upgrade to 16g 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 musl while here. link with libm for ceilf API Signed-off-by: Khem Raj --- .../0001-lmon16g.c-Adjust-system-headers.patch | 46 ++++++++++++++++++++++ .../nmon/{nmon_13g.bb => nmon_16g.bb} | 16 ++++---- 2 files changed, 55 insertions(+), 7 deletions(-) create mode 100644 meta-oe/recipes-support/nmon/nmon/0001-lmon16g.c-Adjust-system-headers.patch rename meta-oe/recipes-support/nmon/{nmon_13g.bb => nmon_16g.bb} (59%) -- 2.13.3 -- _______________________________________________ Openembedded-devel mailing list Openembedded-devel@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-devel diff --git a/meta-oe/recipes-support/nmon/nmon/0001-lmon16g.c-Adjust-system-headers.patch b/meta-oe/recipes-support/nmon/nmon/0001-lmon16g.c-Adjust-system-headers.patch new file mode 100644 index 000000000..e8debe56a --- /dev/null +++ b/meta-oe/recipes-support/nmon/nmon/0001-lmon16g.c-Adjust-system-headers.patch @@ -0,0 +1,46 @@ +From d977b5170027926eb97ab9742ddc51d2a5555a34 Mon Sep 17 00:00:00 2001 +From: Khem Raj +Date: Fri, 14 Jul 2017 10:06:49 -0700 +Subject: [PATCH] lmon16g.c: Adjust system headers + +fstab.h is unused +errno.h is in /usr/include +defines from sys/cdefs.h is used + +Signed-off-by: Khem Raj +--- + lmon16g.c | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +diff --git a/lmon16g.c b/lmon16g.c +index cb27e09..d2a11c5 100644 +--- a/lmon16g.c ++++ b/lmon16g.c +@@ -63,7 +63,7 @@ static char *SccsId = "nmon " VERSION; + #include + #include + #include +-#include ++#include + #include + #include + #include +@@ -71,6 +71,7 @@ static char *SccsId = "nmon " VERSION; + #include + #include + #include ++#include + + /* Windows moved here so they can be cleared when the screen mode changes */ + WINDOW *padwelcome = NULL; +@@ -576,7 +577,6 @@ struct procsinfo { + int isroot = 0; + + #include +-#include + #include + #include + #include +-- +2.13.3 + diff --git a/meta-oe/recipes-support/nmon/nmon_13g.bb b/meta-oe/recipes-support/nmon/nmon_16g.bb similarity index 59% rename from meta-oe/recipes-support/nmon/nmon_13g.bb rename to meta-oe/recipes-support/nmon/nmon_16g.bb index 1f7518972..e77faa30a 100644 --- a/meta-oe/recipes-support/nmon/nmon_13g.bb +++ b/meta-oe/recipes-support/nmon/nmon_16g.bb @@ -4,23 +4,25 @@ SECTION = "console/utils" LICENSE = "GPLv3" LIC_FILES_CHKSUM = "file://${WORKDIR}/Documentation.txt;md5=dbb13658cf55d687c4f2ff771a696d4a" DEPENDS = "ncurses" -PR = "r2" +DEPENDS_append_libc-musl = " bsd-headers" -SRC_URI = "${SOURCEFORGE_MIRROR}/nmon/lmon13g.c;name=lmon \ +SRC_URI = "${SOURCEFORGE_MIRROR}/nmon/lmon${PV}.c;name=lmon \ ${SOURCEFORGE_MIRROR}/nmon/Documentation.txt;name=doc \ + file://0001-lmon16g.c-Adjust-system-headers.patch \ " - -SRC_URI[lmon.md5sum] = "b1b8e6c0123ad232394991f2d4f40494" -SRC_URI[lmon.sha256sum] = "456ab2a342b31d1a352d0d940af5962fa65a12ae8757ff73e6e73210832ae8b5" +SRC_URI[lmon.md5sum] = "246ccfc74d5af55d992601fc4d3d4a72" +SRC_URI[lmon.sha256sum] = "da82dd693b503b062854dfe7dbb5d36b347872ab44a4aa05b97e9d577747f688" SRC_URI[doc.md5sum] = "dbb13658cf55d687c4f2ff771a696d4a" SRC_URI[doc.sha256sum] = "1f7f83afe62a7210be5e83cd24157adb854c14599efe0b377a7ecca933869278" CFLAGS += "-D JFS -D GETUSER -Wall -D LARGEMEM" -LDFLAGS += "-ltinfo -lncursesw" +LDFLAGS += "-ltinfo -lncursesw -lm" ASNEEDED_pn-nmon = "" +S = "${WORKDIR}" + do_compile() { - ${CC} ${CFLAGS} ${LDFLAGS} ${WORKDIR}/lmon13g.c -o nmon + ${CC} ${CFLAGS} ${LDFLAGS} lmon${PV}.c -o nmon } do_install() {