From 46bcfebf305d585bd36227d934bfcd6e97ca8d1c Mon Sep 17 00:00:00 2001 From: Juan RP Date: Fri, 15 Jan 2010 20:08:17 +0100 Subject: [PATCH] fakeroot: added patch to make it work with busybox getopt, bumprev. --HG-- extra : convert_revision : 0f6a39712ef6ec060079e50de26e54b4aff6dc45 --- .../fakeroot/patches/busybox_getopt_compat.diff | 11 +++++++++++ srcpkgs/fakeroot/template | 16 +++++++--------- 2 files changed, 18 insertions(+), 9 deletions(-) create mode 100644 srcpkgs/fakeroot/patches/busybox_getopt_compat.diff diff --git a/srcpkgs/fakeroot/patches/busybox_getopt_compat.diff b/srcpkgs/fakeroot/patches/busybox_getopt_compat.diff new file mode 100644 index 00000000000..e83dacd3025 --- /dev/null +++ b/srcpkgs/fakeroot/patches/busybox_getopt_compat.diff @@ -0,0 +1,11 @@ +--- scripts/fakeroot.in.orig 2010-01-15 20:06:08.160073189 +0100 ++++ scripts/fakeroot.in 2010-01-15 20:06:19.679197650 +0100 +@@ -43,7 +43,7 @@ export FAKED_MODE + + libfound=no + +-GETOPTEST=`getopt --version` ++GETOPTEST=`getopt --version 2>/dev/null` + case $GETOPTEST in + getopt*) # GNU getopt + FAKE_TEMP=`getopt -l lib: -l faked: -l unknown-is-real -l fd-base: -l version -l help -- +l:f:i:s:ub:vh "$@"` diff --git a/srcpkgs/fakeroot/template b/srcpkgs/fakeroot/template index 7fb1275a47c..a2b7ef66d6c 100644 --- a/srcpkgs/fakeroot/template +++ b/srcpkgs/fakeroot/template @@ -1,19 +1,17 @@ # Template file for 'fakeroot' pkgname=fakeroot version=1.14.4 +revision=1 distfiles="${DEBIAN_SITE}/main/f/fakeroot/${pkgname}_${version}.orig.tar.bz2" build_style=gnu_configure short_desc="Gives a fake root environment" maintainer="Juan RP " checksum=3236394b2f280637bc977515e46e66cf999e1db74ea7402048e64113b70b9660 long_desc=" - This package is intended to enable something like: + This package is intended to remove the need to become root for a package build. + This is done by setting LD_PRELOAD to libfakeroot.so, which provides wrappers + around getuid, chown, chmod, mknod, stat, and so on, thereby creating a fake + root environment." - dpkg-buildpackage -rfakeroot - - i.e. to remove the need to become root for a package build. This is done by - setting LD_PRELOAD to libfakeroot.so, which provides wrappers around getuid, - chown, chmod, mknod, stat, and so on, thereby creating a fake root - environment." - -Add_dependency full glibc +base_chroot=yes +Add_dependency run glibc