summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--recipes-core/fakeroot/fakeroot-native_1.12.4.bb21
-rw-r--r--recipes-core/fakeroot/fakeroot/configure-libtool.patch20
-rw-r--r--recipes-core/fakeroot/fakeroot/fix-prefix.patch15
-rw-r--r--recipes-core/fakeroot/fakeroot_1.12.4.bb26
4 files changed, 82 insertions, 0 deletions
diff --git a/recipes-core/fakeroot/fakeroot-native_1.12.4.bb b/recipes-core/fakeroot/fakeroot-native_1.12.4.bb
new file mode 100644
index 0000000000..e6add2bb26
--- /dev/null
+++ b/recipes-core/fakeroot/fakeroot-native_1.12.4.bb
@@ -0,0 +1,21 @@
1require fakeroot_${PV}.bb
2
3SRC_URI += "file://fix-prefix.patch"
4S = "${WORKDIR}/fakeroot-${PV}"
5
6inherit native
7
8EXTRA_OECONF = "--program-prefix="
9
10# Compatability for the rare systems not using or having SYSV
11python () {
12 if bb.data.getVar('HOST_NONSYSV', d, True) and bb.data.getVar('HOST_NONSYSV', d, True) != '0':
13 bb.data.setVar('EXTRA_OECONF', ' --with-ipc=tcp --program-prefix= ', d)
14}
15
16NATIVE_INSTALL_WORKS = "1"
17
18RDEPENDS_${PN} = "util-linux-native"
19
20SRC_URI[md5sum] = "aaefede2405a40c87438e7e833d69b70"
21SRC_URI[sha256sum] = "dbcab1f495b857e67feff882e018ca59958b8d189ff1f76684d28e35463ec29d"
diff --git a/recipes-core/fakeroot/fakeroot/configure-libtool.patch b/recipes-core/fakeroot/fakeroot/configure-libtool.patch
new file mode 100644
index 0000000000..46f7df7025
--- /dev/null
+++ b/recipes-core/fakeroot/fakeroot/configure-libtool.patch
@@ -0,0 +1,20 @@
1Index: fakeroot-1.12.1/configure.ac
2===================================================================
3--- fakeroot-1.12.1.orig/configure.ac
4+++ fakeroot-1.12.1/configure.ac
5@@ -2,14 +2,12 @@
6 AC_INIT([fakeroot],[FAKEROOT_VERSION],[schizo@debian.org],[fakeroot])
7 AC_PREREQ(2.61)
8 AC_CONFIG_MACRO_DIR([build-aux])
9-LT_PREREQ(2.1a)
10 AC_CANONICAL_TARGET
11 AM_INIT_AUTOMAKE
12 AM_MAINTAINER_MODE
13 AC_CONFIG_HEADERS([config.h])
14 AC_PROG_MAKE_SET
15-LT_INIT
16-LT_LANG(C)
17+AC_PROG_LIBTOOL
18
19 AH_BOTTOM([#if ! HAVE_BUILTIN_EXPECT
20 #define __builtin_expect(x, expected_value) (x)
diff --git a/recipes-core/fakeroot/fakeroot/fix-prefix.patch b/recipes-core/fakeroot/fakeroot/fix-prefix.patch
new file mode 100644
index 0000000000..3c47bd7650
--- /dev/null
+++ b/recipes-core/fakeroot/fakeroot/fix-prefix.patch
@@ -0,0 +1,15 @@
1Index: fakeroot-1.12.1/scripts/fakeroot.in
2===================================================================
3--- fakeroot-1.12.1.orig/scripts/fakeroot.in
4+++ fakeroot-1.12.1/scripts/fakeroot.in
5@@ -30,8 +30,8 @@
6 }
7
8 # strip /bin/fakeroot to find install prefix
9-PREFIX=@prefix@
10-BINDIR=@bindir@
11+BINDIR=`dirname $0`
12+PREFIX=`dirname ${BINDIR}`
13
14 USEABSLIBPATH=@LDPRELOADABS@
15 LIB=lib@fakeroot_transformed@@DLSUFFIX@
diff --git a/recipes-core/fakeroot/fakeroot_1.12.4.bb b/recipes-core/fakeroot/fakeroot_1.12.4.bb
new file mode 100644
index 0000000000..c265749f64
--- /dev/null
+++ b/recipes-core/fakeroot/fakeroot_1.12.4.bb
@@ -0,0 +1,26 @@
1DESCRIPTION = "Gives a fake root environment"
2HOMEPAGE = "http://fakeroot.alioth.debian.org"
3SECTION = "base"
4LICENSE = "GPL"
5PR = "r2"
6
7SRC_URI = "\
8 ${DEBIAN_MIRROR}/main/f/fakeroot/fakeroot_${PV}.tar.gz \
9 file://configure-libtool.patch \
10"
11
12inherit autotools
13
14do_install_append() {
15 install -d ${D}${includedir}/fakeroot
16 install -m 644 *.h ${D}${includedir}/fakeroot
17 install -d ${D}${libdir}/libfakeroot/
18 oe_libinstall -so libfakeroot ${D}${libdir}/libfakeroot/
19}
20
21# fakeroot needs getopt which is provided by the util-linux package
22RDEPENDS_${PN} = "util-linux"
23
24
25SRC_URI[md5sum] = "aaefede2405a40c87438e7e833d69b70"
26SRC_URI[sha256sum] = "dbcab1f495b857e67feff882e018ca59958b8d189ff1f76684d28e35463ec29d"