mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2026-07-26 07:37:14 +00:00
fakeroot: import fakeroot 1.12.4 from OE
Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
This commit is contained in:
@@ -0,0 +1,21 @@
|
|||||||
|
require fakeroot_${PV}.bb
|
||||||
|
|
||||||
|
SRC_URI += "file://fix-prefix.patch"
|
||||||
|
S = "${WORKDIR}/fakeroot-${PV}"
|
||||||
|
|
||||||
|
inherit native
|
||||||
|
|
||||||
|
EXTRA_OECONF = "--program-prefix="
|
||||||
|
|
||||||
|
# Compatability for the rare systems not using or having SYSV
|
||||||
|
python () {
|
||||||
|
if bb.data.getVar('HOST_NONSYSV', d, True) and bb.data.getVar('HOST_NONSYSV', d, True) != '0':
|
||||||
|
bb.data.setVar('EXTRA_OECONF', ' --with-ipc=tcp --program-prefix= ', d)
|
||||||
|
}
|
||||||
|
|
||||||
|
NATIVE_INSTALL_WORKS = "1"
|
||||||
|
|
||||||
|
RDEPENDS_${PN} = "util-linux-native"
|
||||||
|
|
||||||
|
SRC_URI[md5sum] = "aaefede2405a40c87438e7e833d69b70"
|
||||||
|
SRC_URI[sha256sum] = "dbcab1f495b857e67feff882e018ca59958b8d189ff1f76684d28e35463ec29d"
|
||||||
@@ -0,0 +1,20 @@
|
|||||||
|
Index: fakeroot-1.12.1/configure.ac
|
||||||
|
===================================================================
|
||||||
|
--- fakeroot-1.12.1.orig/configure.ac
|
||||||
|
+++ fakeroot-1.12.1/configure.ac
|
||||||
|
@@ -2,14 +2,12 @@
|
||||||
|
AC_INIT([fakeroot],[FAKEROOT_VERSION],[schizo@debian.org],[fakeroot])
|
||||||
|
AC_PREREQ(2.61)
|
||||||
|
AC_CONFIG_MACRO_DIR([build-aux])
|
||||||
|
-LT_PREREQ(2.1a)
|
||||||
|
AC_CANONICAL_TARGET
|
||||||
|
AM_INIT_AUTOMAKE
|
||||||
|
AM_MAINTAINER_MODE
|
||||||
|
AC_CONFIG_HEADERS([config.h])
|
||||||
|
AC_PROG_MAKE_SET
|
||||||
|
-LT_INIT
|
||||||
|
-LT_LANG(C)
|
||||||
|
+AC_PROG_LIBTOOL
|
||||||
|
|
||||||
|
AH_BOTTOM([#if ! HAVE_BUILTIN_EXPECT
|
||||||
|
#define __builtin_expect(x, expected_value) (x)
|
||||||
@@ -0,0 +1,15 @@
|
|||||||
|
Index: fakeroot-1.12.1/scripts/fakeroot.in
|
||||||
|
===================================================================
|
||||||
|
--- fakeroot-1.12.1.orig/scripts/fakeroot.in
|
||||||
|
+++ fakeroot-1.12.1/scripts/fakeroot.in
|
||||||
|
@@ -30,8 +30,8 @@
|
||||||
|
}
|
||||||
|
|
||||||
|
# strip /bin/fakeroot to find install prefix
|
||||||
|
-PREFIX=@prefix@
|
||||||
|
-BINDIR=@bindir@
|
||||||
|
+BINDIR=`dirname $0`
|
||||||
|
+PREFIX=`dirname ${BINDIR}`
|
||||||
|
|
||||||
|
USEABSLIBPATH=@LDPRELOADABS@
|
||||||
|
LIB=lib@fakeroot_transformed@@DLSUFFIX@
|
||||||
@@ -0,0 +1,26 @@
|
|||||||
|
DESCRIPTION = "Gives a fake root environment"
|
||||||
|
HOMEPAGE = "http://fakeroot.alioth.debian.org"
|
||||||
|
SECTION = "base"
|
||||||
|
LICENSE = "GPL"
|
||||||
|
PR = "r2"
|
||||||
|
|
||||||
|
SRC_URI = "\
|
||||||
|
${DEBIAN_MIRROR}/main/f/fakeroot/fakeroot_${PV}.tar.gz \
|
||||||
|
file://configure-libtool.patch \
|
||||||
|
"
|
||||||
|
|
||||||
|
inherit autotools
|
||||||
|
|
||||||
|
do_install_append() {
|
||||||
|
install -d ${D}${includedir}/fakeroot
|
||||||
|
install -m 644 *.h ${D}${includedir}/fakeroot
|
||||||
|
install -d ${D}${libdir}/libfakeroot/
|
||||||
|
oe_libinstall -so libfakeroot ${D}${libdir}/libfakeroot/
|
||||||
|
}
|
||||||
|
|
||||||
|
# fakeroot needs getopt which is provided by the util-linux package
|
||||||
|
RDEPENDS_${PN} = "util-linux"
|
||||||
|
|
||||||
|
|
||||||
|
SRC_URI[md5sum] = "aaefede2405a40c87438e7e833d69b70"
|
||||||
|
SRC_URI[sha256sum] = "dbcab1f495b857e67feff882e018ca59958b8d189ff1f76684d28e35463ec29d"
|
||||||
Reference in New Issue
Block a user