aboutsummaryrefslogtreecommitdiffstats
path: root/main/fakeroot/fakeroot-hide-dlsym-errors.patch
diff options
context:
space:
mode:
authorTimo Teräs <timo.teras@iki.fi>2014-03-07 11:23:39 +0200
committerTimo Teräs <timo.teras@iki.fi>2014-03-07 11:23:39 +0200
commite56db141ce09c403f59621b4e56a8025a387ef6c (patch)
tree6307e4140771da3700e649bae89e24c2c62475f1 /main/fakeroot/fakeroot-hide-dlsym-errors.patch
parent4b3e3f7ab3af18ea69b20f4f3b99e09d32b2989d (diff)
downloadaports-e56db141ce09c403f59621b4e56a8025a387ef6c.tar.bz2
aports-e56db141ce09c403f59621b4e56a8025a387ef6c.tar.xz
main/fakeroot: hide unharmful dlsym errors
this got uncovered when we enabled libacl support. the acl_* symbols are tried to be resolved but they will not exist in the app, if it's not linked against -lacl. it's perfectly ok for these to not be found.
Diffstat (limited to 'main/fakeroot/fakeroot-hide-dlsym-errors.patch')
-rw-r--r--main/fakeroot/fakeroot-hide-dlsym-errors.patch20
1 files changed, 20 insertions, 0 deletions
diff --git a/main/fakeroot/fakeroot-hide-dlsym-errors.patch b/main/fakeroot/fakeroot-hide-dlsym-errors.patch
new file mode 100644
index 0000000000..aeeb347da6
--- /dev/null
+++ b/main/fakeroot/fakeroot-hide-dlsym-errors.patch
@@ -0,0 +1,20 @@
+it's normal that the acl_* symbols are not found if the application
+is not linked against -lacl. these errors harmless, but mighty
+annoying.
+
+--- fakeroot-1.20/libfakeroot.c.orig 2014-03-07 11:20:26.120532847 +0200
++++ fakeroot-1.20/libfakeroot.c 2014-03-07 11:21:26.486872482 +0200
+@@ -258,10 +258,12 @@
+ /* 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){
++#ifdef LIBFAKEROOT_DEBUGGING
++ if ( fakeroot_debug && (msg = dlerror()) != NULL) {
+ fprintf (stderr, "dlsym(%s): %s\n", next_wrap[i].name, msg);
+ /* abort ();*/
+ }
++#endif
+ }
+ }
+