summaryrefslogtreecommitdiffstats
path: root/meta/recipes-extended/ltp/ltp/make-setregid02-work.patch
diff options
context:
space:
mode:
authorKhem Raj <raj.khem@gmail.com>2016-02-12 09:54:20 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2016-02-13 08:27:17 +0000
commitd17984eda9635f98d4472019d4af83f661b4dfe7 (patch)
tree3557c127b4d2898f252d23b8c1690ba269386fb3 /meta/recipes-extended/ltp/ltp/make-setregid02-work.patch
parent1f07dcfcecbd42f947b83c6f75d1a66186bcad68 (diff)
downloadopenembedded-core-contrib-d17984eda9635f98d4472019d4af83f661b4dfe7.tar.gz
ltp: Upgrade to 20160126 and fix build on musl
pass -D__SANE_USERSPACE_TYPES__ to CFLAGS MIPS64/PPC64 uses long long for u64 in the kernel, but powerpc's asm/types.h prevents 64-bit userland from seeing this definition, instead defaulting to u64 == long in userspace. Define __SANE_USERSPACE_TYPES__ to get int-ll64.h included. Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-extended/ltp/ltp/make-setregid02-work.patch')
-rw-r--r--meta/recipes-extended/ltp/ltp/make-setregid02-work.patch61
1 files changed, 0 insertions, 61 deletions
diff --git a/meta/recipes-extended/ltp/ltp/make-setregid02-work.patch b/meta/recipes-extended/ltp/ltp/make-setregid02-work.patch
deleted file mode 100644
index 4836010bdf..0000000000
--- a/meta/recipes-extended/ltp/ltp/make-setregid02-work.patch
+++ /dev/null
@@ -1,61 +0,0 @@
-[PATCH] make setregid02 work
-
-Upstream-Status: Inappropriate [configuration]
-
-there is no "nobody" group in oe-core, the user "nobody" belongs to
-"nogroup" group, so replace nobody with nogroup to make the test pass
-
-Signed-off-by: Roy.Li <rongqing.li@windriver.com>
----
- testcases/kernel/syscalls/setregid/setregid02.c | 16 ++++++++--------
- 1 file changed, 8 insertions(+), 8 deletions(-)
-
-diff --git a/testcases/kernel/syscalls/setregid/setregid02.c b/testcases/kernel/syscalls/setregid/setregid02.c
-index 8058627..866bee4 100644
---- a/testcases/kernel/syscalls/setregid/setregid02.c
-+++ b/testcases/kernel/syscalls/setregid/setregid02.c
-@@ -41,7 +41,7 @@ static gid_t neg_one = -1;
-
- static struct passwd *ltpuser;
-
--static struct group nobody, root, bin;
-+static struct group nogroup, root, bin;
-
- /*
- * The following structure contains all test data. Each structure in the array
-@@ -57,17 +57,17 @@ struct test_data_t {
- char *test_msg;
- } test_data[] = {
- {
-- &neg_one, &root.gr_gid, EPERM, &nobody, &nobody,
-+ &neg_one, &root.gr_gid, EPERM, &nogroup, &nogroup,
- "After setregid(-1, root),"}, {
-- &neg_one, &bin.gr_gid, EPERM, &nobody, &nobody,
-+ &neg_one, &bin.gr_gid, EPERM, &nogroup, &nogroup,
- "After setregid(-1, bin)"}, {
-- &root.gr_gid, &neg_one, EPERM, &nobody, &nobody,
-+ &root.gr_gid, &neg_one, EPERM, &nogroup, &nogroup,
- "After setregid(root,-1),"}, {
-- &bin.gr_gid, &neg_one, EPERM, &nobody, &nobody,
-+ &bin.gr_gid, &neg_one, EPERM, &nogroup, &nogroup,
- "After setregid(bin, -1),"}, {
-- &root.gr_gid, &bin.gr_gid, EPERM, &nobody, &nobody,
-+ &root.gr_gid, &bin.gr_gid, EPERM, &nogroup, &nogroup,
- "After setregid(root, bin)"}, {
-- &bin.gr_gid, &root.gr_gid, EPERM, &nobody, &nobody,
-+ &bin.gr_gid, &root.gr_gid, EPERM, &nogroup, &nogroup,
- "After setregid(bin, root),"}
- };
-
-@@ -165,7 +165,7 @@ static void setup(void)
- } while (0)
-
- GET_GID(root);
-- GET_GID(nobody);
-+ GET_GID(nogroup);
- GET_GID(bin);
-
- TEST_PAUSE;
---
-1.9.1
-