From 76f2dded044398e5d313214e8bf432ab47f8738a Mon Sep 17 00:00:00 2001 From: David P Date: Sun, 12 Jul 2020 23:12:38 -0400 Subject: addpkg: libre/fakeroot 1.24-2.parabola1 Signed-off-by: David P --- libre/fakeroot/silence-dlerror.patch | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 libre/fakeroot/silence-dlerror.patch (limited to 'libre/fakeroot/silence-dlerror.patch') diff --git a/libre/fakeroot/silence-dlerror.patch b/libre/fakeroot/silence-dlerror.patch new file mode 100644 index 000000000..a4472d8f7 --- /dev/null +++ b/libre/fakeroot/silence-dlerror.patch @@ -0,0 +1,17 @@ +diff --git a/libfakeroot.c b/libfakeroot.c +index f867758..7ef6e47 100644 +--- a/libfakeroot.c ++++ b/libfakeroot.c +@@ -256,10 +256,12 @@ 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); ++#ifdef LIBFAKEROOT_DEBUGGING + if ( (msg = dlerror()) != NULL){ + fprintf (stderr, "dlsym(%s): %s\n", next_wrap[i].name, msg); + /* abort ();*/ + } ++#endif /* LIBFAKEROOT_DEBUGGING */ + } + } + -- cgit v1.2.3