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

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


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

于 2012年04月12日 21:17, Kurt Hindenburg 写道:


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/

iQIcBAEBAgAGBQJPhuKbAAoJEOemZ9znWXlAnzIP/jhJaeUBCJSuBxOlAa5g7Swn
TiNUhAdtCBHIdgWdm294rXZlGyh9OjU0Hf3hLGC+9PDE/h0Rd5hvUfl5zWEiiUBR
UYm1taHiwjwAMigxGSE/2RTvzdc9UvCQk79GWTAazXWFBt1nJ4IAASW4oTbhp5DX
sjKC3qsZ3hN/Ndx0Vo1KQD4jDASzXa6fEEoZq1sLSKWyk+m8N/8X7mY2vKZLgK2P
agaGv0EOIeTBjAX71QE9C1+093sajZKRq3REg/ds3nVGEQRC6xjAwRRiXs+i8KWy
/WEjxkfyXEN+QOZuoKXjrz38LEzPwILXqk66+826drFogechaL4CeP0xR165OwQo
zZ4paPvVwo1HYJdxoM8VJoeAn8HQKReT0mHzGQbigGBxyVQaZKje5W/iYJ0IaIOi
Ndfe1QTnhjs87GcyeIlg3z5Q+T0LthN2eFI9przw5s5hcsPeFmI3h5LRJ5SWEzPe
NbK6kXTr/T5Wu2dYL2E2r7DOn7cje1w+rL0Gct6WxRuFsIJICe4Tue+F0hanuUYf
srzNQgKRtAdS6rlGHo0r5I1p2zD/biBtgWQVoZAwIEMtEv+WZvm45JAfaEn1l8ZX
426lBrRxnLlIdkXo5QPfLKTVWXsvraJJqBO+AA4KwLzO32PjverH4S5qv2wIuSl8
+1tvOt6bcGIgj2rXxGm1
=i2T5
-----END PGP SIGNATURE-----



More information about the konsole-devel mailing list