1
0
mirror of https://git.yoctoproject.org/poky synced 2026-05-08 17:19:20 +00:00

fakeroot: Clean up and convert to BBCLASSEXTEND

This commit is contained in:
Richard Purdie
2009-01-03 18:33:03 +00:00
parent 8bc4105ddf
commit 66b6014139
4 changed files with 11 additions and 43 deletions
@@ -1,21 +0,0 @@
require fakeroot_${PV}.bb
RDEPENDS="util-linux-native"
SRC_URI += "file://fix-prefix.patch;patch=1 "
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)
}
do_stage_append () {
oe_libinstall -so libfakeroot ${STAGING_LIBDIR}/libfakeroot/
}
+11 -4
View File
@@ -4,15 +4,22 @@ SECTION = "base"
LICENSE = "GPL"
# fakeroot needs getopt which is provided by the util-linux package
RDEPENDS = "util-linux"
PR = "r1"
PR = "r2"
SRC_URI = "${DEBIAN_MIRROR}/main/f/fakeroot/fakeroot_${PV}.tar.gz \
file://configure-libtool.patch;patch=1"
inherit autotools
inherit autotools_stage
do_stage() {
do_stage_append() {
install -d ${STAGING_INCDIR}/fakeroot
install -m 644 *.h ${STAGING_INCDIR}/fakeroot
autotools_stage_all
}
# Compatability for the rare systems not using or having SYSV
python () {
if bb.data.inherits_class("native", d) and bb.data.getVar('HOST_NONSYSV', d, True) and bb.data.getVar('HOST_NONSYSV', d, True) != '0':
bb.data.setVar('EXTRA_OECONF', ' --with-ipc=tcp ', d)
}
BBCLASSEXTEND = "native"
@@ -1,18 +0,0 @@
#
# Patch managed by http://www.holgerschurig.de/patcher.html
#
--- fakeroot-1.2.13/scripts/fakeroot.in~fix-prefix
+++ fakeroot-1.2.13/scripts/fakeroot.in
@@ -15,8 +15,8 @@
}
# strip /bin/fakeroot to find install prefix
-PREFIX=@prefix@
-BINDIR=@bindir@
+BINDIR=`dirname $0`
+PREFIX=`dirname ${BINDIR}`
LIB=lib@fakeroot_transformed@.so.0
PATHS=@libdir@:${PREFIX}/lib64/libfakeroot:${PREFIX}/lib32/libfakeroot