[Pkg-scicomp-devel] Bug#536438: gmsh: do not link against unused OCC libs

Denis Barbier bouzim at gmail.com
Fri Jul 10 08:02:13 UTC 2009


On 2009/7/10 Christophe Geuzaine wrote:
> Denis Barbier wrote:
>>
>> Package: gmsh
>> Version: 2.3.1.dfsg-2
>> Severity: minor
>> Tags: patch
>>
>> Hi Christophe,
>>
>> dpkg-shlibdeps prints many warnings because gmsh is linked against unused
>> libs, here is a patch to trim down OpenCascade libs, you will have to run
>> autotools after applying it.
>
> This looks wrong to me: we definitely use classes from the libs you removed.

You are right. Since Opencascade ships many libs, I usually rely on
inter-library
dependencies to minimize the number of -l flags, but this is poor practice.

Here is an updated patch to remove only unused libs, it is based on
  https://buildd.debian.org/fetch.cgi?pkg=gmsh;ver=2.3.1.dfsg-2%2Bb1;arch=amd64;stamp=1243847669

dpkg-shlibdeps: warning: dependency on libTKFeat-6.3.0.so could be
avoided if "debian/gmsh/usr/bin/gmsh" were not uselessly linked
against it (they use none of its symbols).
dpkg-shlibdeps: warning: dependency on libTKFillet-6.3.0.so could be
avoided if "debian/gmsh/usr/bin/gmsh" were not uselessly linked
against it (they use none of its symbols).
dpkg-shlibdeps: warning: dependency on libTKHLR-6.3.0.so could be
avoided if "debian/gmsh/usr/bin/gmsh" were not uselessly linked
against it (they use none of its symbols).
dpkg-shlibdeps: warning: dependency on libTKSTEP209-6.3.0.so could be
avoided if "debian/gmsh/usr/bin/gmsh" were not uselessly linked
against it (they use none of its symbols).
dpkg-shlibdeps: warning: dependency on libTKBool-6.3.0.so could be
avoided if "debian/gmsh/usr/bin/gmsh" were not uselessly linked
against it (they use none of its symbols).
dpkg-shlibdeps: warning: dependency on libTKOffset-6.3.0.so could be
avoided if "debian/gmsh/usr/bin/gmsh" were not uselessly linked
against it (they use none of its symbols).
dpkg-shlibdeps: warning: dependency on libTKAdvTools-6.3.0.so could be
avoided if "debian/gmsh/usr/bin/gmsh" were not uselessly linked
against it (they use none of its symbols).
dpkg-shlibdeps: warning: dependency on libTKSTEPAttr-6.3.0.so could be
avoided if "debian/gmsh/usr/bin/gmsh" were not uselessly linked
against it (they use none of its symbols).
dpkg-shlibdeps: warning: dependency on libTKSTEPBase-6.3.0.so could be
avoided if "debian/gmsh/usr/bin/gmsh" were not uselessly linked
against it (they use none of its symbols).

Denis
-------------- next part --------------
A non-text attachment was scrubbed...
Name: occ-trimlibs.patch
Type: text/x-diff
Size: 999 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-scicomp-devel/attachments/20090710/50eba426/attachment-0001.patch>


More information about the Pkg-scicomp-devel mailing list