On 19/08/2013 13:01, Bernhard Rosenkränzer wrote: > Hi, > a recent commit making --disable-static a default option to %configure has > brought up an interesting topic -- do we want to package static libraries? > > Most distributions are dumping most static libraries from their repositories, > but that doesn't necessarily mean we should be doing the same thing. > > Of course the problem with static libraries is that if people actually using > them and we push a critical bugfix to a library, people using static builds > will still have the bug. > > But OTOH there are some uses to static libraries, e.g. if you were to write a > non-free game that you didn't intend to update a lot, you can't seriously > expect someone wanting to play the game 10 years from now to have a > libpng.so.16 or a libqt-mt.so.3 around anymore (and even if people do, they > might not work with prehistoric code), so for that sort of thing, static > linking may actually be the best option and the libraries are still useful. Some software still works after 13 years, like the old q3-demo (quake3) 1.11 :-) > > I'm all for not having the *.a files in the standard -devel packages -- but > I'm not so sure killing off the -static-devel packages is a good idea. > > ttyl > bero > IMHO providing static libraries don't hurt, so you don't get much value removing them, but you get some problems in removing the static-devel.The security problem aboutpackages which aren't updated is a non-problem since most of packages just link using -l<library> as compiler parameter and that's default to shared library linking, for specific static linking you have to play with -Wl,-static -l<library> -Wl,-dynamic. But static libraries are useful for developingand programming: there are a lot of people programming and running theprograms they write, and they may find useful to have static linkage of "some" library of theprogram.In that way you might want to have code which is independent from a certain version of the library and don't have problems when some system library is updated or broken by update or changes the API or removed from the system. For completeness I would leave the static-devel packages as they are.
Bye Giuseppe
