Return-Path: Received: from heian.cn.fujitsu.com (unknown [59.151.112.132]) by mail.openembedded.org (Postfix) with ESMTP id 157AC65C89 for ; Thu, 2 Jul 2015 01:58:52 +0000 (UTC) X-IronPort-AV: E=Sophos;i="5.13,665,1427731200"; d="scan'208";a="97977140" Received: from unknown (HELO edo.cn.fujitsu.com) ([10.167.33.5]) by heian.cn.fujitsu.com with ESMTP; 02 Jul 2015 10:02:48 +0800 Received: from G08CNEXCHPEKD03.g08.fujitsu.local (localhost.localdomain [127.0.0.1]) by edo.cn.fujitsu.com (8.14.3/8.13.1) with ESMTP id t621vAPW022783 for ; Thu, 2 Jul 2015 09:57:10 +0800 Received: from localhost.localdomain (10.167.226.31) by G08CNEXCHPEKD03.g08.fujitsu.local (10.167.33.89) with Microsoft SMTP Server (TLS) id 14.3.181.6; Thu, 2 Jul 2015 09:58:48 +0800 From: Bian Naimeng To: Date: Thu, 2 Jul 2015 09:49:19 +0800 Message-ID: <1435801759-10209-1-git-send-email-biannm@cn.fujitsu.com> X-Mailer: git-send-email 1.9.1 MIME-Version: 1.0 X-Originating-IP: [10.167.226.31] Subject: [meta-oe][PATCH v2] sysdig: add new recipe X-BeenThere: openembedded-devel@lists.openembedded.org X-Mailman-Version: 2.1.12 Precedence: list Reply-To: openembedded-devel@lists.openembedded.org List-Id: Using the OpenEmbedded metadata to build Distributions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 02 Jul 2015 01:58:54 -0000 Content-Type: text/plain sysdig is a tool for system-level exploration and troubleshooting Signed-off-by: Bian Naimeng --- .../01-donot-set-default-value-to-va_list.patch | 22 ++++++++++++++ meta-oe/recipes-extended/sysdig/sysdig_0.1.101.bb | 34 ++++++++++++++++++++++ 2 files changed, 56 insertions(+) create mode 100644 meta-oe/recipes-extended/sysdig/sysdig/01-donot-set-default-value-to-va_list.patch create mode 100644 meta-oe/recipes-extended/sysdig/sysdig_0.1.101.bb diff --git a/meta-oe/recipes-extended/sysdig/sysdig/01-donot-set-default-value-to-va_list.patch b/meta-oe/recipes-extended/sysdig/sysdig/01-donot-set-default-value-to-va_list.patch new file mode 100644 index 0000000..9cb6378 --- /dev/null +++ b/meta-oe/recipes-extended/sysdig/sysdig/01-donot-set-default-value-to-va_list.patch @@ -0,0 +1,22 @@ +fix build error as following. + + sysdig-0.1.101/userspace/libsinsp/ctext.h:376:50: error: could not convert '0' from 'int' to 'va_list {aka __va_list}' + | int8_t vprintf(const char*format, va_list ap = 0); + | ^ + | make[2]: *** [userspace/libsinsp/CMakeFiles/sinsp.dir/ctext.cpp.o] Error 1 + + +Signed-off-by: Bian Naimeng + +diff -Nurp sysdig-0.1.101.orig/userspace/libsinsp/ctext.h sysdig-0.1.101/userspace/libsinsp/ctext.h +--- sysdig-0.1.101.orig/userspace/libsinsp/ctext.h 2015-06-04 02:58:51.000000000 +0800 ++++ sysdig-0.1.101/userspace/libsinsp/ctext.h 2015-07-02 09:18:14.154627357 +0800 +@@ -373,7 +373,7 @@ class ctext + // application to this library seamlessly. + // + int8_t printf(const char*format, ...); +- int8_t vprintf(const char*format, va_list ap = 0); ++ int8_t vprintf(const char*format, va_list ap); + + // + // nprintf is identical to the printf above EXCEPT for diff --git a/meta-oe/recipes-extended/sysdig/sysdig_0.1.101.bb b/meta-oe/recipes-extended/sysdig/sysdig_0.1.101.bb new file mode 100644 index 0000000..789fd47 --- /dev/null +++ b/meta-oe/recipes-extended/sysdig/sysdig_0.1.101.bb @@ -0,0 +1,34 @@ +SUMMARY = "A New System Troubleshooting Tool Built for the Way You Work" +DESCRIPTION = "Sysdig is open source, system-level exploration: capture \ +system state and activity from a running Linux instance, then save, \ +filter and analyze." +HOMEPAGE = "http://www.sysdig.org/" +LICENSE = "GPLv2" +LIC_FILES_CHKSUM = "file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263" + +inherit cmake pkgconfig + +DEPENDS = "luajit zlib ncurses" +RDEPENDS_${PN} = "bash" + + +SRC_URI = "https://github.com/draios/sysdig/archive/${PV}.tar.gz \ + file://01-donot-set-default-value-to-va_list.patch \ + " + +SRC_URI[md5sum] = "5fe96a3a0fd98b2157a40cb29af41afc" +SRC_URI[sha256sum] = "6995e39be565514901b5cb587689ee2efbf8359293e4e597362382cccf0e9db6" + +DIR_ETC="/etc" +EXTRA_OECMAKE = ' -DUSE_BUNDLED_LUAJIT="OFF" \ + -DUSE_BUNDLED_ZLIB="OFF" \ + -DBUILD_DRIVER="OFF" \ + -DUSE_BUNDLED_NCURSES="OFF" \ + -DDIR_ETC="${DIR_ETC}" \ + ' + +FILES_${PN} += " \ + ${DIR_ETC}/* \ + ${datadir}/zsh/* \ + ${prefix}/src/* \ +" -- 1.9.1