Re: [gentoo-user] Changing libaries

2007-05-25 Thread Hans-Werner Hilse
Hi,

On Fri, 25 May 2007 15:19:30 +0200 Florian Philipp
[EMAIL PROTECTED] wrote:

 Another user had some trouble because Kaffeine couldn't
 play .ogg-files. In the end we found out that he activated the
 necessary USE-flag and re-emerged xine-lib but Kaffeine kept using
 the old lib which was still in RAM, I presume.

Nope, it might even be left on disk, at least as long as it is still
referenced from open file handles. But it doesn't really matter if that
library just is somewhere. It matters whether the (instance of the)
application using it has still opened it.

 Naturally, the problem was solved when he rebooted but I wonder how I
 could achieve the effect without rebooting.

Close Kaffeine. That might be difficult if Kaffeine somehow stays
resident or has some Quick start facility (like kdeinit and stuff).
Check ps output and use kill. At least, closing the user's session
is enough (if that plugin isn't run by the desktop manager, then I'd
suggest to kill X in order to close the DM's session as well).

-hwh
-- 
[EMAIL PROTECTED] mailing list



Re: [gentoo-user] Changing libaries

2007-05-25 Thread Boyd Stephen Smith Jr.
On Friday 25 May 2007, Florian Philipp [EMAIL PROTECTED] wrote 
about '[gentoo-user] Changing libaries':
 Another user had some trouble because Kaffeine couldn't play .ogg-files.
 In the end we found out that he activated the necessary USE-flag and
 re-emerged xine-lib but Kaffeine kept using the old lib which was still
 in RAM, I presume.

 Naturally, the problem was solved when he rebooted but I wonder how I
 could achieve the effect without rebooting.

For most applications you simply have to restart the application.  Next 
time the process starts perform dynamic linking, which accesses the 
filesystem and picks up the new library.

KDE applications started under the standard KDE environment have dynamic 
linking done for them by kdeinit though, so shared libraries stay loaded 
(but possibly swapped out) persist for as long as the kdeinit process 
lives.  So, you'll have to restart the kdeinit process, this usually 
involves logging out and logging back in, although kdm might (I don't 
think so, but might) require you to restart X.

Alternatively, you might be able to get around this by prelinking, or at 
least telling KDE that things are prelinked (even if they aren't) I 
believe kdeinit drops this behavior if KDE_IS_PRELINKED=1 or 
KDE_IS_PRELINKED=true is in the environment when kdeinit starts.

You can NOT simply kill the kdeinit process unless you want KDE 
applications started by it to start mysteriously dying.

-- 
Boyd Stephen Smith Jr. ,= ,-_-. =. 
[EMAIL PROTECTED]  ((_/)o o(\_))
ICQ: 514984 YM/AIM: DaTwinkDaddy   `-'(. .)`-' 
http://iguanasuicide.org/  \_/ 


signature.asc
Description: This is a digitally signed message part.


RE: [gentoo-user] Changing libaries

2007-05-25 Thread burlingk


 -Original Message-
 From: Florian Philipp [mailto:[EMAIL PROTECTED] 
 Sent: Friday, May 25, 2007 10:20 PM
 To: gentoo-user@lists.gentoo.org
 Subject: [gentoo-user] Changing libaries
 
 
 Hi!
 
 I've already asked this question on gentoo-user-de but I've 
 got no - let's 
 say - convenient answer. Therefore I'll try my luck here:
 
 Another user had some trouble because Kaffeine couldn't play 
 .ogg-files. In the end we found out that he activated the 
 necessary USE-flag and 
 re-emerged xine-lib but Kaffeine kept using the old lib which 
 was still in 
 RAM, I presume.
 
 Naturally, the problem was solved when he rebooted but I 
 wonder how I could 
 achieve the effect without rebooting.
 
 Thanks in advance
 
 Florian Philipp 

Try running as root,
~# ldconfig

--
[EMAIL PROTECTED] mailing list



Re: [gentoo-user] Changing libaries

2007-05-25 Thread Florian Philipp
Am Freitag 25 Mai 2007 15:39 schrieb [EMAIL PROTECTED]:
  -Original Message-
  From: Florian Philipp [mailto:[EMAIL PROTECTED]
  Sent: Friday, May 25, 2007 10:20 PM
  To: gentoo-user@lists.gentoo.org
  Subject: [gentoo-user] Changing libaries
 
 
  Hi!
 
  I've already asked this question on gentoo-user-de but I've
  got no - let's
  say - convenient answer. Therefore I'll try my luck here:
 
  Another user had some trouble because Kaffeine couldn't play
  .ogg-files. In the end we found out that he activated the
  necessary USE-flag and
  re-emerged xine-lib but Kaffeine kept using the old lib which
  was still in
  RAM, I presume.
 
  Naturally, the problem was solved when he rebooted but I
  wonder how I could
  achieve the effect without rebooting.
 
  Thanks in advance
 
  Florian Philipp

 Try running as root,
 ~# ldconfig

Thanks guys, I knew I could count on you!


pgpElUZwRzFD0.pgp
Description: PGP signature