[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: rpms/gtkdatabox/devel gtkdatabox.spec, NONE, 1.1 .cvsignore, 1.1, 1.2 sources, 1.1, 1.2

On 8/11/06, Michael Schwendt <bugs michael gmx net> wrote:
> %post -p /sbin/ldconfig
> %postun -p /sbin/ldconfig
> %post devel -p /sbin/ldconfig
> %postun devel -p /sbin/ldconfig

The scriptlets for the -devel package are not needed. When the package is
installed, the *.so symlink points to the right *.so.N library file
already. In case the *.so.N library has been replaced with a different N,
you're in trouble anyway, and updating the link with ldconfig would lead
to unexpected/wrong results (i.e. -lgtkdatabox would not link with the
library from your main gtkdatabox file).

Wouldn't that conflict with:

"MUST: If the package contains shared library files located in the
dynamic linker's default paths, that package must call ldconfig in
%post and %postun. If the package has multiple subpackages with
libraries, each subpackage should also have a %post/%postun section
that calls /sbin/ldconfig."

In this case, there is a versioned .so[1] present in the main package,
with an unversioned library in -devel, per guidelines.  There isn't a
symlink from the unversioned to the versioned being created.

[1]  It's versioned, but 0.0.0.

> %files
> %defattr(-,root,root,-)
> %{_libdir}/libgtkdatabox-*.so.*
> %files devel
> %defattr(-,root,root,-)
> %doc examples/*.c
> %{_includedir}/gtkdatabox*.h
> %{_libdir}/libgtkdatabox.so
> %{_libdir}/pkgconfig/gtkdatabox.pc

Chris Weyl
Ex astris, scientia

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]