summaryrefslogtreecommitdiff
path: root/x11/kdebase2/patches/patch-cb
diff options
context:
space:
mode:
authorskrll <skrll@pkgsrc.org>2001-10-15 22:45:55 +0000
committerskrll <skrll@pkgsrc.org>2001-10-15 22:45:55 +0000
commita62b3e67a68598fb0fe4dc2e4d5c5c9e4b884cb3 (patch)
tree49e414584e7255669c95e2837a22f79f3eb9d507 /x11/kdebase2/patches/patch-cb
parent0fd50d6c14cb246a43399f14bb57be000010fcc8 (diff)
downloadpkgsrc-a62b3e67a68598fb0fe4dc2e4d5c5c9e4b884cb3.tar.gz
Update to KDE 2.2.1
With apologies to Al I wouldn't know where to start with a summary of the changes between 2.1 and 2.2.1 - there are just too many. A couple of hopefully static URLS that contain useful information are http://www.kde.org/announcements/changelog2_1to2_2.html http://www.kde.org/announcements/changelog2_2to2_2_1.html Support for a.out for kde{libs,base} added by me. The libtool/a.out combination doesn't like the linking of modules into binaries. A better way of doing this will appear in future versions of KDE/pkgsrc.
Diffstat (limited to 'x11/kdebase2/patches/patch-cb')
-rw-r--r--x11/kdebase2/patches/patch-cb100
1 files changed, 100 insertions, 0 deletions
diff --git a/x11/kdebase2/patches/patch-cb b/x11/kdebase2/patches/patch-cb
new file mode 100644
index 00000000000..d965917733e
--- /dev/null
+++ b/x11/kdebase2/patches/patch-cb
@@ -0,0 +1,100 @@
+$NetBSD: patch-cb,v 1.1 2001/10/15 22:46:04 skrll Exp $
+
+--- kicker/share/pluginmgr.cpp.orig Mon Apr 9 12:04:06 2001
++++ kicker/share/pluginmgr.cpp
+@@ -51,27 +51,28 @@
+
+ if(!dlregistered){
+ dlregistered = true;
+- lt_dlinit();
++ loader = KLibLoader::self();
+ }
+
+- lt_dlhandle handle = lt_dlopen(QFile::encodeName(libStr));
++ KLibrary* handle = loader->library(QFile::encodeName(libStr));
++
+ if(!handle){
+- kdWarning() << "cannot open applet: " << libStr << " because of " << lt_dlerror() << endl;
++ kdWarning() << "cannot open applet: " << libStr << " because of " << loader->lastErrorMessage() << endl;
+ return(NULL);
+ }
+
+- lt_ptr_t init_func = lt_dlsym(handle, "init");
++ void* init_func = handle->symbol(QString("init").utf8());
+ if(!init_func){
+ kdWarning() << libStr << " is not a kicker applet!" << endl;
+- lt_dlclose(handle);
++ loader->unloadLibrary(QFile::encodeName(libStr));
+ return(NULL);
+ }
+
+ KPanelApplet* (*init_ptr)(QWidget *, const QString&);
+ init_ptr = (KPanelApplet* (*)(QWidget *, const QString&))init_func;
+ KPanelApplet *w = init_ptr(parent, configFile);
+- lt_dlhandle *tmp = new lt_dlhandle;
+- *tmp = handle;
++ QString* tmp = new QString;
++ *tmp = libStr;
+ handleDict.insert((long)w, tmp);
+ return(w);
+ }
+@@ -96,48 +97,42 @@
+
+ if(!dlregistered){
+ dlregistered = true;
+- lt_dlinit();
++ loader = KLibLoader::self();
+ }
+
+- lt_dlhandle handle = lt_dlopen(QFile::encodeName(libStr));
++ KLibrary* handle = loader->library(QFile::encodeName(libStr));
+ if(!handle){
+- kdWarning() << "cannot open extension: " << libStr << " because of " << lt_dlerror() << endl;
++ kdWarning() << "cannot open extension: " << libStr << " because of " << loader->lastErrorMessage() << endl;
+ return(NULL);
+ }
+
+- lt_ptr_t init_func = lt_dlsym(handle, "init");
++ void* init_func = handle->symbol(QString("init").utf8());
+ if(!init_func){
+ kdWarning() << libStr << " is not a kicker extension!" << endl;
+- lt_dlclose(handle);
++ loader->unloadLibrary(QFile::encodeName(libStr));
+ return(NULL);
+ }
+
+ KPanelExtension* (*init_ptr)(QWidget *, const QString&);
+ init_ptr = (KPanelExtension* (*)(QWidget *, const QString&))init_func;
+ KPanelExtension *w = init_ptr(parent, configFile);
+- lt_dlhandle *tmp = new lt_dlhandle;
+- *tmp = handle;
++ QString* tmp = new QString;
++ *tmp = libStr;
+ handleDict.insert((long)w, tmp);
+ return(w);
+ }
+
+ bool KickerPluginManager::removePlugin(QWidget *w)
+ {
+- lt_dlhandle *handle = handleDict.find((long)w);
++ QString* handle = handleDict.find((long)w);
+ if(!handle){
+ kdWarning() << "Cannot find handle to remove plugin!" << endl;
+ return(false);
+ }
+ handleDict.remove((long)w);
+ delete w;
+- if(!lt_dlclose(*handle)){
+- kdWarning() << "Unable to unload plugin!" << endl;
+- return(false);
+- }
++ loader->unloadLibrary(QFile::encodeName(*handle));
++ // kdWarning() << "Unable to unload plugin!" << endl;
++ // return(false);
+ return(true);
+ }
+-
+-
+-
+-
+-