From 7531a3f67bbf2343665648090b0176ceecc0ee61 Mon Sep 17 00:00:00 2001 From: Ronan Le Martret Date: Fri, 25 Apr 2014 10:23:49 +0200 Subject: [PATCH] peudo: Upgrade to the latest seebs/xattr experimental version Enables xattr support. Change-Id: Ie83f6e6b1d09595fb6ff20cb5d8228fb8ebcbf6b Signed-off-by: Mark Hatle Signed-off-by: Ronan Le Martret --- recipes-devtools/pseudo/files/Fix_setxattr.patch | 58 ------------------------ recipes-devtools/pseudo/pseudo_1.5.1.bbappend | 3 -- recipes-devtools/pseudo/pseudo_git.bbappend | 6 +++ 3 files changed, 6 insertions(+), 61 deletions(-) delete mode 100644 recipes-devtools/pseudo/files/Fix_setxattr.patch delete mode 100644 recipes-devtools/pseudo/pseudo_1.5.1.bbappend create mode 100644 recipes-devtools/pseudo/pseudo_git.bbappend diff --git a/recipes-devtools/pseudo/files/Fix_setxattr.patch b/recipes-devtools/pseudo/files/Fix_setxattr.patch deleted file mode 100644 index 538cdca..0000000 --- a/recipes-devtools/pseudo/files/Fix_setxattr.patch +++ /dev/null @@ -1,58 +0,0 @@ -diff --git a/ports/linux/guts/lsetxattr.c b/ports/linux/guts/lsetxattr.c -index 140ae8d..2f73350 100644 ---- a/ports/linux/guts/lsetxattr.c -+++ b/ports/linux/guts/lsetxattr.c -@@ -5,14 +5,16 @@ - * int lsetxattr(const char *pathname, const char *name, const void *value, size_t size, int flags) - * int rc = -1; - */ -- -- /* suppress warnings */ -- (void) pathname; -- (void) name; -- (void) value; -- (void) size; -- (void) flags; -- errno = ENOTSUP; -+FILE *f; -+f = fopen("/etc/smack/init_attr", "a+"); -+if (f){ -+ fprintf(f, "setfattr -n %s -v %s ${D}%s\n",name,value,pathname); -+ fclose(f); -+ rc=0; -+} -+else{ -+ errno = ENOTSUP; -+} - - /* return rc; - * } -diff --git a/ports/linux/guts/setxattr.c b/ports/linux/guts/setxattr.c -index de2de98..d7b10c9 100644 ---- a/ports/linux/guts/setxattr.c -+++ b/ports/linux/guts/setxattr.c -@@ -5,14 +5,16 @@ - * int setxattr(const char *pathname, const char *name, const void *value, size_t size, int flags) - * int rc = -1; - */ -- -- /* suppress warnings */ -- (void) pathname; -- (void) name; -- (void) value; -- (void) size; -- (void) flags; -- errno = ENOTSUP; -+FILE *f; -+f = fopen("/etc/smack/init_attr", "a+"); -+if (f){ -+ fprintf(f, "setfattr -n %s -v %s ${D}%s\n",name,value,pathname); -+ fclose(f); -+ rc=0; -+} -+else{ -+ errno = ENOTSUP; -+} - - /* return rc; - * } diff --git a/recipes-devtools/pseudo/pseudo_1.5.1.bbappend b/recipes-devtools/pseudo/pseudo_1.5.1.bbappend deleted file mode 100644 index bda2cfa..0000000 --- a/recipes-devtools/pseudo/pseudo_1.5.1.bbappend +++ /dev/null @@ -1,3 +0,0 @@ -FILESEXTRAPATHS_prepend := "${THISDIR}/files" - -SRC_URI_append = " file://Fix_setxattr.patch " \ No newline at end of file diff --git a/recipes-devtools/pseudo/pseudo_git.bbappend b/recipes-devtools/pseudo/pseudo_git.bbappend new file mode 100644 index 0000000..a67ffa6 --- /dev/null +++ b/recipes-devtools/pseudo/pseudo_git.bbappend @@ -0,0 +1,6 @@ +SRCREV = "36689a76e79bf6e6231f6f03cbfad297d4411588" +PV = "1.6.0+git${SRCPV}" + +DEFAULT_PREFERENCE = "100" + +SRC_URI = "git://git.yoctoproject.org/pseudo;branch=seebs/xattr" \ No newline at end of file -- 2.7.4