aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZee Eichel <zee@dracos-linux.org>2019-05-28 17:26:18 +0700
committerZee Eichel <zee@dracos-linux.org>2019-05-28 17:26:18 +0700
commitf86744bc7f6ddda0edb85ca85296b600a3209c5f (patch)
tree7019b5e687a353db3503a308a6e9b20e4450530c
parent5da4142991bffa3e48b783e27c829c709d553664 (diff)
downloaddemit.extra-git.repo-f86744bc7f6ddda0edb85ca85296b600a3209c5f.tar.gz
demit.extra-git.repo-f86744bc7f6ddda0edb85ca85296b600a3209c5f.tar.bz2
demit.extra-git.repo-f86744bc7f6ddda0edb85ca85296b600a3209c5f.zip
adding fakeroot
-rw-r--r--fakeroot/PKGBUILD31
-rw-r--r--fakeroot/fakeroot-fixes.patch20
2 files changed, 51 insertions, 0 deletions
diff --git a/fakeroot/PKGBUILD b/fakeroot/PKGBUILD
new file mode 100644
index 0000000..b146506
--- /dev/null
+++ b/fakeroot/PKGBUILD
@@ -0,0 +1,31 @@
+#Maintainer: Zee Eichel <zee@dracos-linux.org>
+
+pkgname=fakeroot
+pkgver=1.23
+pkgrel=1
+pkgdesc="fakeroot."
+arch=(x86_64)
+url="ftp.debian.org/debian/pool/main/f/fakeroot"
+license=('GPL')
+provides=("${pkgname}")
+conflicts=("${pkgname}")
+source=("http://ftp.debian.org/debian/pool/main/f/fakeroot/fakeroot_1.23.orig.tar.xz"
+ "fakeroot-fixes.patch")
+sha256sums=("009cd6696a931562cf1c212bb57ca441a4a2d45cd32c3190a35c7ae98506f4f6"
+ "SKIP")
+
+prepare() {
+ cd "$pkgname"-"$pkgver"
+ patch -Np1 -i "${srcdir}/fakeroot-fixes.patch"
+}
+
+build() {
+ cd "$pkgname"-"$pkgver"
+ ./configure --prefix=/usr --disable-static &&
+ make
+}
+
+package() {
+ cd "$pkgname"-"$pkgver"
+ make DESTDIR="$pkgdir/" install
+}
diff --git a/fakeroot/fakeroot-fixes.patch b/fakeroot/fakeroot-fixes.patch
new file mode 100644
index 0000000..8c694a3
--- /dev/null
+++ b/fakeroot/fakeroot-fixes.patch
@@ -0,0 +1,20 @@
+--- a/libfakeroot.c 2014-10-05 17:16:00.000000000 +0200
++++ b/libfakeroot.c 2017-02-19 17:08:08.269404922 +0100
+@@ -256,10 +256,16 @@
+ /* clear dlerror() just in case dlsym() legitimately returns NULL */
+ msg = dlerror();
+ *(next_wrap[i].doit)=dlsym(get_libc(), next_wrap[i].name);
++
+ if ( (msg = dlerror()) != NULL){
+- fprintf (stderr, "dlsym(%s): %s\n", next_wrap[i].name, msg);
+-/* abort ();*/
++#ifdef LIBFAKEROOT_DEBUGGING
++ if (fakeroot_debug) {
++ fprintf (stderr, "dlsym(%s): %s\n", next_wrap[i].name, msg);
++/* abort ();*/
++ }
++#endif
+ }
++
+ }
+ }