openSUSE / libsolv

Library for solving packages and reading repositories
http://en.opensuse.org/openSUSE:Libzypp_satsolver
Other
517 stars 152 forks source link

package: Enable shared library for all platforms but SLE < 16 #560

Open Conan-Kudo opened 5 months ago

Conan-Kudo commented 5 months ago

This simplifies things for interfacing with the library and ensures that when libsolv is updated that package managers get the correct functionality.

This also allows us to drop the hacks to deal with static libsolv for DNF in SUSE distributions.

dirkmueller commented 5 months ago

what are the hacks? the current idea is to statically link it into libzypp or libdnf

Conan-Kudo commented 5 months ago

libsolvext does not link properly as a static link library, that's why I have to watch what libsolvext is linked to and manually link them in to libdnf to make it work.

Conan-Kudo commented 5 months ago

For reference:

I would really like to drop these, but that requires a dynamic link library build for libsolv and libsolvext.

Conan-Kudo commented 2 months ago

Additionally, statically linking libsolv has the major downside that when libsolv updates are pushed, there is no guarantee that the enhancements will affect the package managers using it, particularly in SLE/Leap, where automatic reverse dependency rebuilds do not happen.