[lug] rpm spec: ldconfig-symlink

Hugh Brown hugh at math.byu.edu
Sat Jul 16 20:23:50 MDT 2005


I've seen a number of packages set the post install "shell" to be
ldconfig for coping with libraries.

%post -p /sbin/ldconfig  

%postun -p /sbin/ldconfig  is probably useful too.

Hugh

On Sat, 2005-07-16 at 15:48 -0600, D. Stimits wrote:
> I'm trying to figure out the proper way to provide sym links in an rpm. 
> My lib produces a libMyLib.so.0.0.0, and I need sym links from 0.0.0 to 
> 0.0, and this to 0, so on. If I use the sym links installed from the 
> Makefile, it complains one way. If I use only the base file and
> %define _unpackaged_files_terminate_build 0
> ...to keep it from stopping when ignoring the Makefile installed 
> symlinks, it complains another way during rpmlint of the i386 binary 
> rpm. I get an error similar to:
> E: libCLIwrap no-ldconfig-symlink /usr/lib/libMyLib.so.0.0.0
> 
> This makes it look like maybe rpm has a specific spec file "%directive" 
> (I don't know what to call them in general, other than directive) to 
> perform library sym linking. Is there some accepted practice for making 
> library sym links when I want the hard link to be 0.0.0 format, then sym 
> linked in order till it reaches libMyLib.so as a final sym link?
> 
> D. Stimits, stimits AT comcast DOT net
> _______________________________________________
> Web Page:  http://lug.boulder.co.us
> Mailing List: http://lists.lug.boulder.co.us/mailman/listinfo/lug
> Join us on IRC: lug.boulder.co.us port=6667 channel=#colug
> 
-- 
Hugh Brown <hugh at math.byu.edu>




More information about the LUG mailing list