Received: from mail-iy0-f175.google.com ([209.85.210.175]) by linuxtogo.org with esmtp (Exim 4.72) (envelope-from ) id 1RoL9S-0001en-3I for openembedded-core@lists.openembedded.org; Fri, 20 Jan 2012 21:33:34 +0100 Received: by iabz21 with SMTP id z21so1459116iab.6 for ; Fri, 20 Jan 2012 12:25:52 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=from:to:cc:subject:date:message-id:x-mailer; bh=EWZw2FsqNYGm58LHxg9sWVb5ZNZD49Q6VuC53u/Eul0=; b=LTyjq2h/wxeXezCDVF1OKxV0d9MNYVr6PkgEXtNNTAAwO8x7KHTZeF30E1YYmjQ2d9 sTLL3QXXtEOxu85IhYSY7RHk2qApOP5TrwDHf4Yg4nWUKNnwLMd9snuNKCyDOX7e1LID fp9y4HLaHUp1rwDTGGLL1d1n/rXS4YYxa5cWc= Received: by 10.50.202.105 with SMTP id kh9mr18255igc.3.1327091152302; Fri, 20 Jan 2012 12:25:52 -0800 (PST) Received: from localhost.localdomain (oldbuilder.nslu2-linux.org. [140.211.169.168]) by mx.google.com with ESMTPS id h9sm13331717ibh.11.2012.01.20.12.25.50 (version=TLSv1/SSLv3 cipher=OTHER); Fri, 20 Jan 2012 12:25:51 -0800 (PST) From: Khem Raj To: openembedded-core@lists.openembedded.org Date: Fri, 20 Jan 2012 12:25:17 -0800 Message-Id: <1327091117-27468-1-git-send-email-raj.khem@gmail.com> X-Mailer: git-send-email 1.7.5.4 Subject: [PATCH] ltp: Update recipe and fix building on uclibc X-BeenThere: openembedded-core@lists.openembedded.org X-Mailman-Version: 2.1.11 Precedence: list Reply-To: Patches and discussions about the oe-core layer List-Id: Patches and discussions about the oe-core layer List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 20 Jan 2012 20:33:34 -0000 Signed-off-by: Khem Raj --- .../ltp/ltp/uclibc-getcontext.patch | 78 ++++++++++++++++++++ .../ltp/{ltp_20110915.bb => ltp_20120104.bb} | 10 +- 2 files changed, 83 insertions(+), 5 deletions(-) create mode 100644 meta/recipes-extended/ltp/ltp/uclibc-getcontext.patch rename meta/recipes-extended/ltp/{ltp_20110915.bb => ltp_20120104.bb} (93%) diff --git a/meta/recipes-extended/ltp/ltp/uclibc-getcontext.patch b/meta/recipes-extended/ltp/ltp/uclibc-getcontext.patch new file mode 100644 index 0000000..310e2d4 --- /dev/null +++ b/meta/recipes-extended/ltp/ltp/uclibc-getcontext.patch @@ -0,0 +1,78 @@ +Fix building disabled getcontext and profil01 tests for uclibc + +Signed-off-by: Khem Raj + +Upstream-Status: Pending + +Index: ltp-20110915/testcases/kernel/syscalls/getcontext/getcontext01.c +=================================================================== +--- ltp-20110915.orig/testcases/kernel/syscalls/getcontext/getcontext01.c 2012-01-19 16:39:24.391012507 -0800 ++++ ltp-20110915/testcases/kernel/syscalls/getcontext/getcontext01.c 2012-01-19 16:39:24.459012510 -0800 +@@ -34,6 +34,10 @@ + **********************************************************/ + + #include ++#include "test.h" ++#include "usctest.h" ++char *TCID = "getcontext01"; /* Test program identifier. */ ++ + #if !defined(__UCLIBC__) + + #include +@@ -41,13 +45,9 @@ + #include + #include + +-#include "test.h" +-#include "usctest.h" +- + void setup(); + void cleanup(); + +-char *TCID = "getcontext01"; /* Test program identifier. */ + int TST_TOTAL = 1; /* Total number of test cases. */ + + int exp_enos[] = { 0 }; /* must be a 0 terminated list */ +@@ -102,4 +102,4 @@ + { + tst_brkm(TCONF, NULL, "system doesn't have getcontext support"); + } +-#endif +\ No newline at end of file ++#endif +Index: ltp-20110915/testcases/kernel/syscalls/profil/profil01.c +=================================================================== +--- ltp-20110915.orig/testcases/kernel/syscalls/profil/profil01.c 2012-01-19 16:39:55.975014036 -0800 ++++ ltp-20110915/testcases/kernel/syscalls/profil/profil01.c 2012-01-19 16:40:23.475015322 -0800 +@@ -41,6 +41,8 @@ + #endif + + #include ++#include "test.h" ++char *TCID = "profil01"; + #ifndef __UCLIBC__ + + #ifdef __arm__ +@@ -58,7 +60,6 @@ + #include + #include + #include +-#include "test.h" + #include "usctest.h" + #define FAILED 0 + #define PASSED 1 +@@ -73,7 +74,6 @@ + //char progname[]= "profil1()"; + + /***** LTP Port *****/ +-char *TCID = "profil01"; + int local_flag = PASSED; + int block_number; + FILE *temp; +@@ -310,4 +310,4 @@ + /* uClibc does not have profiling support */ + tst_exit(); + } +-#endif +\ No newline at end of file ++#endif diff --git a/meta/recipes-extended/ltp/ltp_20110915.bb b/meta/recipes-extended/ltp/ltp_20120104.bb similarity index 93% rename from meta/recipes-extended/ltp/ltp_20110915.bb rename to meta/recipes-extended/ltp/ltp_20120104.bb index dabc0f0..1d794a8 100644 --- a/meta/recipes-extended/ltp/ltp_20110915.bb +++ b/meta/recipes-extended/ltp/ltp_20120104.bb @@ -3,8 +3,6 @@ DESCRIPTION = "The Linux Test Project is a joint project with SGI, IBM, OSDL, an HOMEPAGE = "http://ltp.sourceforge.net" SECTION = "console/utils" -PR = "r0" - LICENSE = "GPLv2 & GPLv2+ & LGPLv2+ & LGPLv2.1+ & BSD-2-Clause" LIC_FILES_CHKSUM = "file://COPYING;md5=0636e73ff0215e8d672dc4c32c317bb3 \ file://testcases/kernel/mce-test/COPYING;md5=0636e73ff0215e8d672dc4c32c317bb3 \ @@ -21,10 +19,12 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=0636e73ff0215e8d672dc4c32c317bb3 \ file://utils/benchmark/kernbench-0.42/COPYING;md5=94d55d512a9ba36caa9b7df079bae19f \ " -SRC_URI = "${SOURCEFORGE_MIRROR}/ltp/ltp-full-${PV}.bz2" +SRC_URI = "${SOURCEFORGE_MIRROR}/ltp/ltp-full-${PV}.bz2 \ + file://uclibc-getcontext.patch \ + " -SRC_URI[md5sum] = "582fb78d7bf78a624a4387f29327d166" -SRC_URI[sha256sum] = "013f7f2f6fdf46b7d73216533c3d4c2d91f0a2cec522bf026f7c8920ede83d2c" +SRC_URI[md5sum] = "ac183bbdac67139f049b3755fda37179" +SRC_URI[sha256sum] = "11b149b821d709e3351ac66f028f1b0dd5337ee9073dc20019ccffdac42d5c2e" export prefix = "/opt/ltp" export exec_prefix = "/opt/ltp" -- 1.7.5.4