From 87f8d0699e6d2a975be721199ecab929481f12c2 Mon Sep 17 00:00:00 2001 From: Gabor Kovesdan Date: Sun, 10 Dec 2006 21:18:10 +0000 Subject: - Add rc(8) script - Fix plugin support - Fix dependencies - Modify doc-set - Add database support for non-English hubs - Installation fixes - portlint(1) PR: ports/102406 Submitted by: Pankov Pavel Approved by: erwin (mentor), maintainer timeout --- net-p2p/verlihub/files/patch-plugins | 45 ++++++++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 net-p2p/verlihub/files/patch-plugins (limited to 'net-p2p/verlihub/files/patch-plugins') diff --git a/net-p2p/verlihub/files/patch-plugins b/net-p2p/verlihub/files/patch-plugins new file mode 100644 index 000000000000..d8a1436dd5c5 --- /dev/null +++ b/net-p2p/verlihub/files/patch-plugins @@ -0,0 +1,45 @@ +diff -ruN src-orig/cpluginloader.cpp src/cpluginloader.cpp +--- src-orig/cpluginloader.cpp Fri Oct 1 15:19:44 2004 ++++ src/cpluginloader.cpp Thu Oct 12 17:16:22 2006 +@@ -40,6 +40,12 @@ + */ + bool nPlugin::cPluginLoader::Open() + { ++ /* ++ * Reset dlerror() since it can contain error from previous ++ * call to dlopen()/dlsym(). ++ */ ++ dlerror(); ++ + mHandle = dlopen(mFileName.c_str(), RTLD_NOW); + if(!mHandle || IsError()) // NOTE hte OR (||) operator evaluates only the first statement if that one is true + { +@@ -99,6 +105,12 @@ + */ + void * nPlugin::cPluginLoader::LoadSym(const char *name) + { ++ /* ++ * Reset dlerror() since it can contain error from previous ++ * call to dlopen()/dlsym(). ++ */ ++ dlerror(); ++ + void *func = dlsym( mHandle, name); + if(IsError()) + { +diff -ruN src-orig/tpluginbase.cpp src/tpluginbase.cpp +--- src-orig/tpluginbase.cpp Fri Oct 1 15:19:44 2004 ++++ src/tpluginbase.cpp Thu Oct 12 17:16:39 2006 +@@ -34,6 +34,12 @@ + */ + bool nPlugin::tPluginBase::Open() + { ++ /* ++ * Reset dlerror() since it can contain error from previous ++ * call to dlopen()/dlsym(). ++ */ ++ dlerror(); ++ + mHandle = dlopen(mFileName.c_str(), RTLD_NOW); + if(!mHandle) + { -- cgit v1.2.3