[Konsole-devel] About the installed library name of konsolepart

Jekyll Wu adaptee at gmail.com
Thu Apr 12 14:11:44 UTC 2012


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

于 2012年04月12日 21:17, Kurt Hindenburg 写道:
> On Wed, Apr 11, 2012 at 1:07 PM, Jekyll Wu <adaptee at gmail.com> 
> wrote:
> 
>> 
>> That makes me wonder whether "no lib prefix" is the preferred 
>> convention for KDE KParts. However I fail to find related guide 
>> or something like that.
>> 
> Hi, If you run a konsolepart from the terminal, you'll see a 
> 'warning' about libkonsolepart.  I think the lib needs removed but 
> it is not a minor thing and just to remove the warning wasn't
> worth the effort.  I'm don't recall see any docs other than the
> warning message.  Perhaps for SC 5.0 we can do it. Kurt

Yes, I know we should always be careful about the changes which might
break users of konsolepart.  But I guess we can make that change now
without breaking:

1. install konsolepart without the "lib" prefix
2. in the "make install" stage, create and install a symlink
libkonsolepart.so pointing to konsolepart.so
3. modify konsolepart.desktop, change the line
"X-KDE-Library=libkonsolepart" to "X-KDE-Library=konsolepart"

In this way, we keep the compatibility for those who load konsolepart
using the hardcoded name "libkonsolepart", and do not introduce any
new problem for those who lookup the library name for konsolepart by
using KService, like this:

    KService::Ptr service = KService::serviceByDesktopName("konsolepart");
    QString librayName = service->library();

The problem is :
1). I don't know how to ask CMake to create and install a symlink :(
2). I dont' know whether shipping a symlink by ourselfes is bad for
downstream packagers or against some policy.

Regards
Jekyll
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.19 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iQIcBAEBAgAGBQJPhuKgAAoJEOemZ9znWXlA42wP/A1Dnxqvx1k7tEuvlYo3qgNm
hbpjomB8bpRM0pOcTn/wnYBpKpK4NV5Vjeu4Y3q94tPoTIRwYia5RmMMrOc78lno
1Q8fK2OpPrLf3in7yfb6GPivgCgygfxxosvCryQHho8eYvAZe5EN8PA/f7KU4kZG
kZgzXlY9YwZeSD8LZFuG/eEBgyFn9C4brsGa3Ay1hgZ5PzuOwp0BGnPaMMuE3R+q
qcdhlCuCtLsvMePeJLatWlkH8GyhAR2Tk+b1x+Hq79EKqYJQriouhU1K3adnmv0x
3ac/5I3vYJN05AguCTN8QUJiMPiTjO5tr6utKvIZEWIO4YEIXf6sYs2KDc2k1OKD
/T0HjmMjex6yoLm1AlqQd58OLq2vYis+8wzc4fB5BCm91CphBn9e/TgeGO/b/4aO
i+M8X/IcpqmK8rXYVX6kK5jtxCVaxFp63js8b5rljNoG7aZHZvIqw8njp02LN6N7
8WCEzt19vUOz1llPWVJ9Hm6hSP1P8yCkc4+aVQk6SnMJ1GsUUzFp1Sv6HXQ+8PG3
yQASNirDrD1h/lvFJaU/B/LcyTCqNGbFj8PWn3SXM/wRS+z4+A96Cl/9OAdRjEAC
Dlt1nx7MLScwhpnqdnmeDWCKO9DXLOYimJWVb0b5yX69mFTMi0Fd8vl55M80y8T2
4dXMQPlrt/04a09u2jPx
=9Ndr
-----END PGP SIGNATURE-----



More information about the konsole-devel mailing list