]> git.pld-linux.org Git - packages/fakeroot.git/blame - hide-dlsym-error.patch
hide debug errors with glibc 2.24
[packages/fakeroot.git] / hide-dlsym-error.patch
CommitLineData
6bc5834b
ER
1https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=830912
2
3Package: fakeroot
4Version: 1.21-1
5Followup-For: Bug #830912
6User: ubuntu-devel@lists.ubuntu.com
7Usertags: origin-ubuntu yakkety ubuntu-patch
8
9In Ubuntu, the attached patch was applied to achieve the following:
10
11Hide the warnings, at least for now. This should bring us back to glibc 2.23
12state, AFAICT.
13
14 * Add hide-dlsym-error.patch to hide the errors from dlsym() unless
15 debugging was enabled. This makes builds less noisy and fixes failures
16 in APT test suite with glibc 2.24, which started reporting errors for
17 dlsym()
18
19
20Thanks for considering the patch.
21
22Description: Hide error from dlsym()
23 dlsym(), starting in glibc 2.24 actually reports errors. In our case,
24 we try to get ACL functions which are not in the glibc. This causes
25 failures in test suites, so hide those messages for non-debugging
26 purposes for now. It also makes the build logs annoying to read.
27Author: Julian Andres Klode <juliank@ubuntu.com>
28Origin: vendor
29Bug-Debian: <a href="https://bugs.debian.org/830912">https://bugs.debian.org/830912</a>
30Forwarded: no
31Last-Update: 2016-08-12
32
33--- a/libfakeroot.c
34+++ b/libfakeroot.c
35@@ -256,10 +256,16 @@ void load_library_symbols(void){
36 /* clear dlerror() just in case dlsym() legitimately returns NULL */
37 msg = dlerror();
38 *(next_wrap[i].doit)=dlsym(get_libc(), next_wrap[i].name);
39+
40 if ( (msg = dlerror()) != NULL){
41- fprintf (stderr, "dlsym(%s): %s\n", next_wrap[i].name, msg);
42-/* abort ();*/
43+#ifdef LIBFAKEROOT_DEBUGGING
44+ if (fakeroot_debug) {
45+ fprintf (stderr, "dlsym(%s): %s\n", next_wrap[i].name, msg);
46+/* abort ();*/
47+ }
48+#endif
49 }
50+
51 }
52 }
53
This page took 0.10086 seconds and 4 git commands to generate.