From f5286e9b7aa0e8e668333760493c3d6592dd3070 Mon Sep 17 00:00:00 2001 From: Juan RP Date: Wed, 8 Jan 2014 10:51:27 +0100 Subject: [PATCH] chroot-fakeroot: make this build with musl. --- srcpkgs/chroot-fakeroot/patches/musl.patch | 24 ++++++++++++++++++++++ srcpkgs/chroot-fakeroot/template | 13 +++--------- 2 files changed, 27 insertions(+), 10 deletions(-) create mode 100644 srcpkgs/chroot-fakeroot/patches/musl.patch diff --git a/srcpkgs/chroot-fakeroot/patches/musl.patch b/srcpkgs/chroot-fakeroot/patches/musl.patch new file mode 100644 index 0000000000..bd5aeefea4 --- /dev/null +++ b/srcpkgs/chroot-fakeroot/patches/musl.patch @@ -0,0 +1,24 @@ +--- communicate.h.orig 2014-01-08 10:28:04.825714200 +0100 ++++ communicate.h 2014-01-08 10:29:13.825221763 +0100 +@@ -70,7 +70,7 @@ + # define STAT64_SUPPORT + #else + # ifndef __APPLE__ +-# warning Not using stat64 support ++# define STAT64_SUPPORT + # endif + /* if glibc is 2.0 or older, undefine these again */ + # undef STAT64_SUPPORT +--- libfakeroot.c.orig 2014-01-08 10:44:53.185797653 +0100 ++++ libfakeroot.c 2014-01-08 10:45:18.249966551 +0100 +@@ -31,6 +31,10 @@ + */ + #define _GNU_SOURCE + ++#ifndef _STAT_VER ++#define _STAT_VER 0 ++#endif ++ + #define FAKEROOT_LIBFAKEROOT + + #ifdef __APPLE__ diff --git a/srcpkgs/chroot-fakeroot/template b/srcpkgs/chroot-fakeroot/template index d61a284d83..b059f3618e 100644 --- a/srcpkgs/chroot-fakeroot/template +++ b/srcpkgs/chroot-fakeroot/template @@ -1,27 +1,20 @@ # Template file for 'chroot-fakeroot' pkgname=chroot-fakeroot version=1.18.4 -revision=1 +revision=2 bootstrap=yes wrksrc="fakeroot-${version}" build_style=gnu-configure provides="fakeroot-${version}_${revision}" conflicts="fakeroot>=0" -makedepends="chroot-util-linux" -depends="${makedepends}" +# need getopt(1) +depends="chroot-util-linux" short_desc="Gives a fake root environment -- for xbps-src use" maintainer="Juan RP " homepage="http://packages.debian.org/fakeroot" license="GPL-3" distfiles="${DEBIAN_SITE}/main/f/fakeroot/fakeroot_${version}.orig.tar.bz2" checksum=0a359efa3e9496c33234b3e9c89306a09bb4da9d33de43c261f1d8447e6ebea2 -long_desc=" - 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. - - This package is only meant to be used by xbps-src, don't install it manually." post_install() { rm -rf ${DESTDIR}/usr/share