Recent

Author Topic: BGRA Controls license infrigement, gpl dependency  (Read 552 times)

Zoran

  • Hero Member
  • *****
  • Posts: 1988
    • http://wiki.lazarus.freepascal.org/User:Zoran
BGRA Controls license infrigement, gpl dependency
« on: March 06, 2026, 02:10:42 pm »
I installed BGRAControls package and was unpleasantly surprised that it has dependency on LazMouseAndKeyInput package, which is GPL licensed.

In BGRAControls repository there are files COPYING.modifiedLGPL.txt and COPYING.LGPL.txt which claim that these controls are released under modified LGPL.

If I'm not mistaken, the nature of GPL is that all code that depends on it, must be also licensed as GPL. So, these controls cannot be released under (modified or not) LGPL as long as they depend on a GPL code.

I don't know which of the bgra controls actually use LazMouseAndKeyInput, but as it is now, I don't think I can use any.

Is it possible to move the controls which actually use this GPL package to another package, which must be licensed GPL, and leave other BGRA controls in the current package with LazMouseAndKeyInput dependency removed?
Swan, ZX Spectrum emulator https://github.com/zoran-vucenovic/swan

marcov

  • Administrator
  • Hero Member
  • *
  • Posts: 12765
  • FPC developer.
Re: BGRA Controls license infrigement, gpl dependency
« Reply #1 on: March 06, 2026, 02:34:19 pm »
If I'm not mistaken, the nature of GPL is that all code that depends on it, must be also licensed as GPL.

No, but if you distribute the mix as binary, you do obligate yourself to give the source when asked.  The license of other components doesn't change.

But I agree with you that this looks cumbersome from a licensing POV.

Fred vS

  • Hero Member
  • *****
  • Posts: 3871
    • StrumPract is the musicians best friend
Re: BGRA Controls license infrigement, gpl dependency
« Reply #2 on: March 06, 2026, 02:55:36 pm »
I installed BGRAControls package and was unpleasantly surprised that it has dependency on LazMouseAndKeyInput package, which is GPL licensed.

Hello Zoran.

Please create a issue: https://github.com/bgrabitmap/bgracontrols/issues
I use Lazarus 2.2.0 32/64 and FPC 3.2.2 32/64 on Debian 11 64 bit, Windows 10, Windows 7 32/64, Windows XP 32,  FreeBSD 64.
Widgetset: fpGUI, MSEgui, Win32, GTK2, Qt.

https://github.com/fredvs
https://gitlab.com/fredvs
https://codeberg.org/fredvs


marcov

  • Administrator
  • Hero Member
  • *
  • Posts: 12765
  • FPC developer.
Re: BGRA Controls license infrigement, gpl dependency
« Reply #4 on: March 06, 2026, 03:18:43 pm »
Note that I assume the units in the package are actually linked into the final result.

If it is used in a designtime package to be linked only with Lazarus it doesn't matter.

Zoran

  • Hero Member
  • *****
  • Posts: 1988
    • http://wiki.lazarus.freepascal.org/User:Zoran
Re: BGRA Controls license infrigement, gpl dependency
« Reply #5 on: March 06, 2026, 05:48:27 pm »
Note that I assume the units in the package are actually linked into the final result.

If it is used in a designtime package to be linked only with Lazarus it doesn't matter.

I've found that it is actually used in runtime in BCNumericKeyboard control, for emulating key presses, but only in this control and nowhere else.
More details in the bugreport I linked in my post above.
Swan, ZX Spectrum emulator https://github.com/zoran-vucenovic/swan

 

TinyPortal © 2005-2018