[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-core-devel
Subject:    libkdeinit_ libraries
From:       Adriaan de Groot <adridg () cs ! kun ! nl>
Date:       2003-07-16 21:26:43
[Download RAW message or body]

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Recently, KDE HEAD stopped starting up for me, with all kdeinit started 
processes yielding errors because of a missing kdemain function. This is 
documented in the "kdeinit & missing "main" symbol" thread on -devel.

The attached patch looks in libkdeinit_foo before looking in foo itself, and 
gets KDE HEAD started properly. I'm hesitant to just commit it, since I don't 
really know (a) what this kdeinit stuff is good for (b) what to do in the 
other branch of the if(), when the pathname starts with a / .

- -- 
pub  1024D/FEA2A3FE 2002-06-18 Adriaan de Groot <groot@kde.org>
     Key fingerprint = 934E 31AA 80A7 723F 54F9  50ED 76AC EE01 FEA2 A3FE
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (FreeBSD)

iD8DBQE/FcMYdqzuAf6io/4RAmzhAJ4lvLVdbgndwNe9+EX2U10mlQCgcACgkMKq
OmEqQG/bfCE5mPIoytHH5VU=
=LicG
-----END PGP SIGNATURE-----

["kinit.diff" (text/x-diff)]

Index: kinit.cpp
===================================================================
RCS file: /home/kde/kdelibs/kinit/kinit.cpp,v
retrieving revision 1.124
diff -u -3 -p -r1.124 kinit.cpp
--- kinit.cpp	1 Jul 2003 05:47:06 -0000	1.124
+++ kinit.cpp	15 Jul 2003 07:02:22 -0000
@@ -373,10 +373,18 @@ static pid_t launch(int argc, const char
   if (_name[0] != '/')
   {
      /* Relative name without '.la' */
-     name = _name;
+     name = "libkdeinit_";
+     name += _name;
      lib = name + ".la";
      exec = name;
      libpath = QFile::encodeName(KLibLoader::findLibrary( lib, s_instance ));
+     if (libpath.isEmpty())
+     {
+         name = _name;
+         lib = name + ".la";
+         exec = name;
+         libpath = QFile::encodeName(KLibLoader::findLibrary( lib, s_instance ));
+     }
      execpath = execpath_avoid_loops( exec, envc, envs, avoid_loops );
   }
   else


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic