summaryrefslogtreecommitdiffstats
path: root/abs/core/fakeroot/silence-dlerror.patch
diff options
context:
space:
mode:
authorBritney Fransen <brfransen@gmail.com>2018-02-15 19:52:18 (GMT)
committerBritney Fransen <brfransen@gmail.com>2018-02-15 19:52:18 (GMT)
commitb5fc9dd716b393f6b5efaa51ba93799ddc8ddbee (patch)
tree44c6b0aba10d0e549fcfb8dadd918be9956d5670 /abs/core/fakeroot/silence-dlerror.patch
parentd75fda8498ef6bc70fa45824d413da544d59c9a3 (diff)
downloadlinhes_pkgbuild-b5fc9dd716b393f6b5efaa51ba93799ddc8ddbee.zip
linhes_pkgbuild-b5fc9dd716b393f6b5efaa51ba93799ddc8ddbee.tar.gz
linhes_pkgbuild-b5fc9dd716b393f6b5efaa51ba93799ddc8ddbee.tar.bz2
fakeroot: update to 1.22
Diffstat (limited to 'abs/core/fakeroot/silence-dlerror.patch')
-rw-r--r--abs/core/fakeroot/silence-dlerror.patch17
1 files changed, 17 insertions, 0 deletions
diff --git a/abs/core/fakeroot/silence-dlerror.patch b/abs/core/fakeroot/silence-dlerror.patch
new file mode 100644
index 0000000..a4472d8
--- /dev/null
+++ b/abs/core/fakeroot/silence-dlerror.patch
@@ -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 */
+ }
+ }
+