libvips / build-win64-mxe

73 stars 15 forks source link

Possible approaches for handling libgsf, an LGPL-2.1-only dependency #49

Closed lovell closed 1 year ago

lovell commented 1 year ago

As outlined at https://github.com/libvips/libvips/issues/3354 we'll need to do something about the libgsf dependency as packaged by this repo and its build scripts.

libgsf is LGPL-2.1-only and therefore incompatible with the licences used by ImageMagick, libheif and freetype.

Possible approaches (there will be others) from least to most complex:

  1. Remove libgsf entirely (assume libzip or similar will be future dependendy)
  2. Make libgsf an optional "plugin" behind a new --gsf flag (but knowing this can make incompatible binaries)
  3. Introduce a --gpl2-only flag that removes all incompatible dependencies to allow libgsf (rapidly heading towards a hand-rolled dependency management tool)

Thoughts/alternatives welcome. I'm favouring either 1 for ease/speed or 3 for correctness.

lovell commented 1 year ago

Closing as libgsf removed via https://github.com/libvips/build-win64-mxe/pull/50