summaryrefslogtreecommitdiff
path: root/meta/recipes-devtools/fakechroot
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-devtools/fakechroot')
-rw-r--r--meta/recipes-devtools/fakechroot/fakechroot/fix-readlink.patch26
-rw-r--r--meta/recipes-devtools/fakechroot/fakechroot_2.9.bb13
2 files changed, 39 insertions, 0 deletions
diff --git a/meta/recipes-devtools/fakechroot/fakechroot/fix-readlink.patch b/meta/recipes-devtools/fakechroot/fakechroot/fix-readlink.patch
new file mode 100644
index 000000000..932156492
--- /dev/null
+++ b/meta/recipes-devtools/fakechroot/fakechroot/fix-readlink.patch
@@ -0,0 +1,26 @@
+---
+ src/libfakechroot.c | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+Index: fakechroot-2.9/src/libfakechroot.c
+===================================================================
+--- fakechroot-2.9.orig/src/libfakechroot.c 2009-03-31 11:20:41.000000000 +0100
++++ fakechroot-2.9/src/libfakechroot.c 2010-03-22 17:40:17.386783375 +0000
+@@ -775,7 +775,7 @@
+ nextsym(opendir, "opendir");
+ #endif
+ nextsym(pathconf, "pathconf");
+- nextsym(readlink, "readlink");
++ nextsym(readlink, "own_readlink");
+ nextsym(realpath, "realpath");
+ nextsym(remove, "remove");
+ #ifdef HAVE_REMOVEXATTR
+@@ -2492,7 +2492,7 @@
+
+
+ /* #include <unistd.h> */
+-READLINK_TYPE_RETURN readlink (const char *path, char *buf, READLINK_TYPE_ARG3)
++READLINK_TYPE_RETURN own_readlink (const char *path, char *buf, READLINK_TYPE_ARG3)
+ {
+ int status;
+ char tmp[FAKECHROOT_MAXPATH], *tmpptr;
diff --git a/meta/recipes-devtools/fakechroot/fakechroot_2.9.bb b/meta/recipes-devtools/fakechroot/fakechroot_2.9.bb
new file mode 100644
index 000000000..aea76366f
--- /dev/null
+++ b/meta/recipes-devtools/fakechroot/fakechroot_2.9.bb
@@ -0,0 +1,13 @@
+SECTION = "base"
+DESCRIPTION = "Gives a fake root environment which can support chroot"
+LICENSE = "GPL"
+
+SRC_URI = "${DEBIAN_MIRROR}/main/f/fakechroot/fakechroot_${PV}.orig.tar.gz \
+ file://fix-readlink.patch;patch=1 \
+ ${DEBIAN_MIRROR}/main/f/fakechroot/fakechroot_2.9-1.1.diff.gz;patch=1"
+
+inherit autotools
+
+PR = "r3"
+
+BBCLASSEXTEND = "native"