chroot-fakeroot: make this build with musl.

This commit is contained in:
Juan RP 2014-01-08 10:51:27 +01:00
parent 1e2376c51e
commit f5286e9b7a
2 changed files with 27 additions and 10 deletions

View File

@ -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__

View File

@ -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 <xtraeme@gmail.com>"
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