[arch-commits] Commit in fakeroot/trunk (PKGBUILD silence-dlerror.patch)
Bartłomiej Piotrowski
bpiotrowski at archlinux.org
Fri Aug 5 17:06:41 UTC 2016
Date: Friday, August 5, 2016 @ 17:06:41
Author: bpiotrowski
Revision: 273132
upgpkg: fakeroot 1.21-2
silence dlsym lookup errors (FS#49278)
Added:
fakeroot/trunk/silence-dlerror.patch
Modified:
fakeroot/trunk/PKGBUILD
-----------------------+
PKGBUILD | 13 ++++++++++---
silence-dlerror.patch | 17 +++++++++++++++++
2 files changed, 27 insertions(+), 3 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2016-08-05 16:09:18 UTC (rev 273131)
+++ PKGBUILD 2016-08-05 17:06:41 UTC (rev 273132)
@@ -5,7 +5,7 @@
pkgname=fakeroot
pkgver=1.21
-pkgrel=1
+pkgrel=2
pkgdesc='Tool for simulating superuser privileges'
arch=('i686' 'x86_64')
license=('GPL')
@@ -14,9 +14,16 @@
install=fakeroot.install
depends=('glibc' 'filesystem' 'sed' 'util-linux' 'sh')
makedepends=('po4a')
-source=(http://ftp.debian.org/debian/pool/main/f/$pkgname/${pkgname}_${pkgver}.orig.tar.gz)
-md5sums=('be5c9a0e516869fca4a6758105968e5a')
+source=(http://ftp.debian.org/debian/pool/main/f/$pkgname/${pkgname}_${pkgver}.orig.tar.gz
+ silence-dlerror.patch)
+md5sums=('be5c9a0e516869fca4a6758105968e5a'
+ '5fba0b541b5af39d804265223fda525c')
+prepare() {
+ cd $pkgname-$pkgver
+ patch -p1 -i "$srcdir"/silence-dlerror.patch
+}
+
build() {
cd $pkgname-$pkgver
Added: silence-dlerror.patch
===================================================================
--- silence-dlerror.patch (rev 0)
+++ silence-dlerror.patch 2016-08-05 17:06:41 UTC (rev 273132)
@@ -0,0 +1,17 @@
+diff --git a/libfakeroot.c b/libfakeroot.c
+index f867758..7ef6e47 100644
+--- a/libfakeroot.c
++++ b/libfakeroot.c
+@@ -256,10 +256,12 @@ void load_library_symbols(void){
+ /* clear dlerror() just in case dlsym() legitimately returns NULL */
+ msg = dlerror();
+ *(next_wrap[i].doit)=dlsym(get_libc(), next_wrap[i].name);
++#ifdef LIBFAKEROOT_DEBUGGING
+ if ( (msg = dlerror()) != NULL){
+ fprintf (stderr, "dlsym(%s): %s\n", next_wrap[i].name, msg);
+ /* abort ();*/
+ }
++#endif /* LIBFAKEROOT_DEBUGGING */
+ }
+ }
+
More information about the arch-commits
mailing list