From e05cc6aff34d8e0d3c926a1432d2c309b15b60e1 Mon Sep 17 00:00:00 2001 From: Hajimu UMEMOTO Date: Mon, 22 Nov 2004 17:00:44 +0000 Subject: When previous dlopen() was failed, gkrellm couldn't load plugin. Submitted by: glebius --- sysutils/gkrellm/Makefile | 2 +- sysutils/gkrellm/files/patch-src::plugins.c | 16 ++++++++++++++++ 2 files changed, 17 insertions(+), 1 deletion(-) create mode 100644 sysutils/gkrellm/files/patch-src::plugins.c diff --git a/sysutils/gkrellm/Makefile b/sysutils/gkrellm/Makefile index f25dee94f4ff..2c9a148d14b2 100644 --- a/sysutils/gkrellm/Makefile +++ b/sysutils/gkrellm/Makefile @@ -7,7 +7,7 @@ PORTNAME= gkrellm PORTVERSION= 1.2.13 -PORTREVISION= 2 +PORTREVISION= 3 CATEGORIES= sysutils ipv6 MASTER_SITES= http://web.wt.net/~billw/gkrellm/ \ ${MASTER_SITE_LOCAL} diff --git a/sysutils/gkrellm/files/patch-src::plugins.c b/sysutils/gkrellm/files/patch-src::plugins.c new file mode 100644 index 000000000000..5b777aa9e27a --- /dev/null +++ b/sysutils/gkrellm/files/patch-src::plugins.c @@ -0,0 +1,16 @@ +Index: src/plugins.c +diff -u -p src/plugins.c.orig src/plugins.c +--- src/plugins.c.orig Sun Jun 23 04:08:41 2002 ++++ src/plugins.c Tue Nov 23 01:39:49 2004 +@@ -794,6 +794,11 @@ install_plugin(gchar *plugin_name) + plugin_log(buf, NULL); + return NULL; + } ++ /* ++ * Reset dlerror() since it can contain error from previous ++ * call to dlopen()/dlsym(). ++ */ ++ dlerror(); + init_plugin = dlsym(handle, "init_plugin"); + if ((error = dlerror()) != NULL) + { -- cgit v1.2.3