Skip navigation.

Raphael's Blog

A look into a programmer's life

fewer dependencies

,

A couple of minutes ago I received an email notification about #479427 being closed:


#479427: epiphany-gecko: please reduce the number of dependencies by avoiding linking to some libs
...
* Pass --as-needed to LDFLAGS. Closes: #479427.
+ Introduce 99_ltmain_as-needed.patch.



Being very interested on the subject I went to incoming.d.o and downloaded the -gecko and -webkit versions of epiphany, which were both listed in my packages with most dependencies top 20.

$ countPkgsDeps.pl epiphany-*_2.24.1-1_amd64/control
epiphany-webkit:27
epiphany-gecko:32



So yes, the number of dependencies dropped from 55 and 58 to 27 and 32, accordingly :smile:

Should dropping the number of useless dependencies be a RG for squeeze? we'll see.

Note: I'll update the post as soon as the i386 packages are built, because the number of package dependencies of my previous blog post were calculated from i386's Packages, not amd64's.

Oh, and of course many thanks to Josselin Mouette for working on the issue.

yummy yummyhow to perform archive-wide stuff without wasting time and bandwidth, or without setting up your own local mirror

Comments

Anonymous 14. November 2008, 03:57

Matthew W. S. Bell writes:

fewer.

Anonymous 14. November 2008, 06:24

Anonymous writes:

It would be nice if the upstream build systems could be fixed to not link against libraries that are not used.

PS: your host sucks, they want me to accept 2 cookies just to view the site.

Raphael 14. November 2008, 18:29

Matthew W. S. Bell: thanks :smile:

It would be nice if the upstream build systems could be fixed to not link against libraries that are not used.


I'm sure upstreams would welcome patches. No, really, I know --as-needed is just a workaround.

Anonymous 15. November 2008, 10:32

Anonymous writes:

Hm, definitely a bug you should fill against upstream. Another big problem are libraries which don't resolve their own dependencies so the program which links against it has to resolve them. dpkg-shlibdeps will then warn that the program does not use any of the symbols of libxyz and you should fix the problem - but the program uses libimportant which uses libxyz (but doesn't link against it). This is a bug of the build system of libimportant and must be addressed by libimportant.

There are some bugs about that problem on Gentoo-Bugzilla: http://bugs.gentoo.org/show_bug.cgi?id=246757 but they seem to be confused about that bugs.

How to use Quote function:

  1. Select some text
  2. Click on the Quote link

Write a comment

Comment
(BBcode and HTML is turned off for anonymous user comments.)

If you can't read the words, press the small reload icon.


Smilies