summaryrefslogtreecommitdiffstats
path: root/system/fakeroot/hide-dlsym-error.patch
diff options
context:
space:
mode:
author Andrzej Telszewski <atelszewski@gmail.com>2017-11-28 22:12:04 +0000
committer Willy Sudiarto Raharjo <willysr@slackbuilds.org>2017-12-02 06:31:03 +0700
commitc125cd1689ff624a635cf974ab318d4700146de9 (patch)
tree5711070ae67eb93974ba29e0721bea0534ce6cad /system/fakeroot/hide-dlsym-error.patch
parent0fd3e3b31d11b4ba4d796b2b919d874fa973a636 (diff)
downloadslackbuilds-c125cd1689ff624a635cf974ab318d4700146de9.tar.gz
slackbuilds-c125cd1689ff624a635cf974ab318d4700146de9.tar.xz
system/fakeroot: Updated for version 1.22.
Signed-off-by: David Spencer <idlemoor@slackbuilds.org>
Diffstat (limited to 'system/fakeroot/hide-dlsym-error.patch')
-rw-r--r--system/fakeroot/hide-dlsym-error.patch34
1 files changed, 34 insertions, 0 deletions
diff --git a/system/fakeroot/hide-dlsym-error.patch b/system/fakeroot/hide-dlsym-error.patch
new file mode 100644
index 0000000000..2c61fab248
--- /dev/null
+++ b/system/fakeroot/hide-dlsym-error.patch
@@ -0,0 +1,34 @@
+Description: Hide error from dlsym()
+ dlsym(), starting in glibc 2.24 actually reports errors. In our case,
+ we try to get ACL functions which are not in the glibc. This causes
+ failures in test suites, so hide those messages for non-debugging
+ purposes for now. It also makes the build logs annoying to read.
+Author: Julian Andres Klode <juliank@ubuntu.com>
+Origin: vendor
+Bug-Debian: https://bugs.debian.org/830912
+Forwarded: no
+Last-Update: 2016-08-12
+
+Signed-off-by: Maxime Hadjinlian <maxime.hadjinlian@gmail.com>
+
+--- a/libfakeroot.c
++++ b/libfakeroot.c
+@@ -256,10 +256,16 @@ 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);
++
+ 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
+ }
++
+ }
+ }
+