-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi, On Mon, 5 May 2003, Richard Bos wrote:
short question about what to put in an rpm (or not);
Should ldconfig be put in a (suse) rpm or not (as SuSEconfig will take care of it).
If you provide it as a third-party RPM, it should not do any harm. In the past, SuSE did not use it in the RPMs, because it will significantly increase the time required to install a full distibution and every package runs ldconfig on its own. In this case it's better, to run it once at the end via SuSEconfig.
I found an rpm macro %run_ldconfig as well, what does the macro do (what does it different compared to ldconfig?
See for yourself:
/usr/lib/rpm/suse_macros:
[SNIP]
%run_ldconfig() \
if test -z "$YAST_IS_RUNNING" ; then \
/sbin/ldconfig \
fi
[SNIP]
So this is exactly what you are looking for, when you want to create a
SuSE RPM. It will run ldconfig, if you install the package manually with
rpm, but will skip this step when you use YaST to install it (since YaST
will run ldconfig itself at the end).
Bye,
LenZ
- --
- ------------------------------------------------------------------
Lenz Grimmer