diff options
Diffstat (limited to 'meta/recipes-devtools/fakechroot')
-rw-r--r-- | meta/recipes-devtools/fakechroot/fakechroot/fix-readlink.patch | 26 | ||||
-rw-r--r-- | meta/recipes-devtools/fakechroot/fakechroot_2.9.bb | 13 |
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 0000000000..9321564922 --- /dev/null +++ b/meta/recipes-devtools/fakechroot/fakechroot/fix-readlink.patch | |||
@@ -0,0 +1,26 @@ | |||
1 | --- | ||
2 | src/libfakechroot.c | 4 ++-- | ||
3 | 1 file changed, 2 insertions(+), 2 deletions(-) | ||
4 | |||
5 | Index: fakechroot-2.9/src/libfakechroot.c | ||
6 | =================================================================== | ||
7 | --- fakechroot-2.9.orig/src/libfakechroot.c 2009-03-31 11:20:41.000000000 +0100 | ||
8 | +++ fakechroot-2.9/src/libfakechroot.c 2010-03-22 17:40:17.386783375 +0000 | ||
9 | @@ -775,7 +775,7 @@ | ||
10 | nextsym(opendir, "opendir"); | ||
11 | #endif | ||
12 | nextsym(pathconf, "pathconf"); | ||
13 | - nextsym(readlink, "readlink"); | ||
14 | + nextsym(readlink, "own_readlink"); | ||
15 | nextsym(realpath, "realpath"); | ||
16 | nextsym(remove, "remove"); | ||
17 | #ifdef HAVE_REMOVEXATTR | ||
18 | @@ -2492,7 +2492,7 @@ | ||
19 | |||
20 | |||
21 | /* #include <unistd.h> */ | ||
22 | -READLINK_TYPE_RETURN readlink (const char *path, char *buf, READLINK_TYPE_ARG3) | ||
23 | +READLINK_TYPE_RETURN own_readlink (const char *path, char *buf, READLINK_TYPE_ARG3) | ||
24 | { | ||
25 | int status; | ||
26 | 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 0000000000..aea76366f7 --- /dev/null +++ b/meta/recipes-devtools/fakechroot/fakechroot_2.9.bb | |||
@@ -0,0 +1,13 @@ | |||
1 | SECTION = "base" | ||
2 | DESCRIPTION = "Gives a fake root environment which can support chroot" | ||
3 | LICENSE = "GPL" | ||
4 | |||
5 | SRC_URI = "${DEBIAN_MIRROR}/main/f/fakechroot/fakechroot_${PV}.orig.tar.gz \ | ||
6 | file://fix-readlink.patch;patch=1 \ | ||
7 | ${DEBIAN_MIRROR}/main/f/fakechroot/fakechroot_2.9-1.1.diff.gz;patch=1" | ||
8 | |||
9 | inherit autotools | ||
10 | |||
11 | PR = "r3" | ||
12 | |||
13 | BBCLASSEXTEND = "native" | ||