summaryrefslogtreecommitdiff
path: root/debian/patches/hide-dlsym-error.patch
diff options
context:
space:
mode:
authorIgor Pashev <pashev.igor@gmail.com>2019-11-25 16:44:37 +0300
committerIgor Pashev <pashev.igor@gmail.com>2019-11-25 16:44:37 +0300
commit4927b084a932e2445e9626e2e4e5a558aee59518 (patch)
treee8bb9406e1964639328ffab1be254eee4a88e468 /debian/patches/hide-dlsym-error.patch
downloadfakeroot-debian.tar.gz
Import fakeroot (1.24-1)debian/1.24-1debian
Diffstat (limited to 'debian/patches/hide-dlsym-error.patch')
-rw-r--r--debian/patches/hide-dlsym-error.patch32
1 files changed, 32 insertions, 0 deletions
diff --git a/debian/patches/hide-dlsym-error.patch b/debian/patches/hide-dlsym-error.patch
new file mode 100644
index 0000000..3fd34c8
--- /dev/null
+++ b/debian/patches/hide-dlsym-error.patch
@@ -0,0 +1,32 @@
+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
+
+--- 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
+ }
++
+ }
+ }
+