Skip to content

Commit

Permalink
RPM: move %post(un) ldconfig calls to ceph-base
Browse files Browse the repository at this point in the history
This addresses the following RPMLINT error:

ceph-base.x86_64: E: library-without-ldconfig-postun (Badness:
300) /usr/lib64/libosd_tp.so.1.0.0
ceph-base.x86_64: E: library-without-ldconfig-postun (Badness:
300) /usr/lib64/libos_tp.so.1.0.0
This package contains a library and provides no %postun scriptlet
containing a call to ldconfig.

ceph-base.x86_64: E: library-without-ldconfig-postin (Badness:
300) /usr/lib64/libosd_tp.so.1.0.0
ceph-base.x86_64: E: library-without-ldconfig-postin (Badness:
300) /usr/lib64/libos_tp.so.1.0.0
This package contains a library and provides no %post scriptlet
containing a call to ldconfig.

http://tracker.ceph.com/issues/14940 Fixes: #14940

Signed-off-by: Nathan Cutler <ncutler@suse.com>
  • Loading branch information
smithfarm committed Mar 1, 2016
1 parent cc7f9ec commit 7c7fbca
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions ceph.spec.in
Expand Up @@ -804,7 +804,6 @@ rm -rf $RPM_BUILD_ROOT


%post
/sbin/ldconfig
%if 0%{?_with_systemd}
%if 0%{?suse_version}
%fillup_only
Expand Down Expand Up @@ -839,7 +838,6 @@ rm -rf $RPM_BUILD_ROOT
%endif

%postun
/sbin/ldconfig
%if 0%{?_with_systemd}
if [ $1 = 1 ] ; then
# Restart on upgrade, but only if "CEPH_AUTO_RESTART_ON_UPGRADE" is set to
Expand Down Expand Up @@ -933,6 +931,12 @@ rm -rf $RPM_BUILD_ROOT
%attr(770,ceph,ceph) %dir %{_localstatedir}/run/ceph
%endif

%post base
/sbin/ldconfig

%postun base
/sbin/ldconfig

#################################################################################
%files -n ceph-common
%defattr(-,root,root,-)
Expand Down

0 comments on commit 7c7fbca

Please sign in to comment.