1 Description: Hide error from dlsym()
2 dlsym(), starting in glibc 2.24 actually reports errors. In our case,
3 we try to get ACL functions which are not in the glibc. This causes
4 failures in test suites, so hide those messages for non-debugging
5 purposes for now. It also makes the build logs annoying to read.
6 Author: Julian Andres Klode <juliank@ubuntu.com>
8 Bug-Debian: https://bugs.debian.org/830912
10 Last-Update: 2016-08-12
14 @@ -256,10 +256,16 @@ void load_library_symbols(void){
15 /* clear dlerror() just in case dlsym() legitimately returns NULL */
17 *(next_wrap[i].doit)=dlsym(get_libc(), next_wrap[i].name);
19 if ( (msg = dlerror()) != NULL){
20 - fprintf (stderr, "dlsym(%s): %s\n", next_wrap[i].name, msg);
22 +#ifdef LIBFAKEROOT_DEBUGGING
23 + if (fakeroot_debug) {
24 + fprintf (stderr, "dlsym(%s): %s\n", next_wrap[i].name, msg);