On Mon, Sep 10, 2012 at 5:08 PM, Dimstar / Dominique Leuenberger <dimstar@opensuse.org> wrote:
On Mon, 2012-09-10 at 17:05 -0400, Greg Freemyer wrote:
All,
I sent the httrack package to security a couple weeks ago. It builds, but with a few rpmlint issues.
I thought I would clean up the one about the shared library needing to be split out to its own package.
I've tried to do that in home:gregfreemyer:branches:security > httrack
I've tried multiple ways to call ldconfig.
But my build always fails with:
[ 218s] libhttrack2.x86_64: E: library-without-ldconfig-postin (Badness: 300) /usr/lib64/libhtsjava.so.2.0.46 [ 218s] libhttrack2.x86_64: E: library-without-ldconfig-postin (Badness: 300) /usr/lib64/libhttrack.so.2.0.46 [ 218s] This package contains a library and provides no %post scriptlet containing a [ 218s] call to ldconfig.
You need to move the ldconfig call to the libhttrack2 sub package:
%post -n libhttrack2 -p /sbin/ldconfig %postun -n libhttrack2 -p /sbin/ldconfig
%post without -n <name> implies having the post on the main package; which in your case does not need it, as the lib lives in a sub - package.
Hth, Dominique
Thanks I updated one of the examples at: http://en.opensuse.org/openSUSE:Packaging_scriptlet_snippets#Shared_librarie... to have a sub-package. Greg -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org