Re: Post installation scripts

Matthias Saou <thias@spam.spam.spam.spam.spam.spam.spam.egg.and.spam.freshrpms.net>
Newsgroups gmane.linux.freshrpms.user,gmane.spam.detected
Message-ID <20051014103538.104d048e@python2>
Th Ot wrote :

> I'm new to this list and I hope anybody can help me with my little problem
> :-)
> I want to install 2 RPMs. Both RPMs contain the same library. The frst RPM
> creates a link to the library so that it looks as following:
> lrwxrwxrwx    1 root     root           44 Oct 11 11:27 libExample.so ->
> libExample.so.2.2.1.05082822
> -rwxr-xr-x    1 root     root       109784 Aug 28 22:38
> libExample.so.2.2.1.05082822
> 
> I try to delete the link in the %post script of the second RPM and then
> create it again linking to the new library. But unfortunatelly when I look
> into the target directory the original link still exists. Can anybody tell
> me if RPM does all this activities only in its database or how can I solve
> this problem?

Firstly, what you're doing seems like a pretty bad idea to me.
Secondly, the symlink is probably re-created by calls to /sbin/ldconfig in
the package %post and/or %postun.

Matthias

-- 
Clean custom Red Hat Linux rpm packages : http://freshrpms.net/
Fedora Core release 4 (Stentz) - Linux kernel 2.6.13-1.1526_FC4
Load : 1.42 0.85 0.44
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.