Some SlackBuild scripts for Slackware.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

20 lines
700 B

diff -Naur fakeroot-1.23.orig/libfakeroot.c fakeroot-1.23/libfakeroot.c
--- fakeroot-1.23.orig/libfakeroot.c 2018-07-01 20:01:34.000000000 +0100
+++ fakeroot-1.23/libfakeroot.c 2019-05-06 00:22:37.875133004 +0100
@@ -256,9 +256,14 @@
/* 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
}
}
}