![]() |
![]() |
#1 | |
"Ben"
Feb 2007
64538 Posts |
![]() Quote:
I admit I don't know the answer to the licensing question. I was under the impression that the license applied to source code, and I don't include any of the code within yafu. As you said, I just link into a static libraries when building yafu. |
|
![]() |
![]() |
![]() |
#2 | |
Bamboozled!
"πΊππ·π·π"
May 2003
Down not across
5×13×163 Posts |
![]() Quote:
To get a definitive answer you should ask akruppa or Paul (the other one) for their opinion. If you don't like their answer you always have the option of removing the ECM code from your binary and interfacing it through a call of an external binary. FWIW, I never release any significant code under the GPL but, rather, a BSD-like license. If I want to give something away I give it away. A gift, in my view, should not impose obligations on the recipient. Paul |
|
![]() |
![]() |
![]() |
#3 |
Basketry That Evening!
"Bunslow the Bold"
Jun 2011
40<A<43 -89<O<-88
3×29×83 Posts |
![]()
I think the main reason I mentioned something is because as I recall that's exactly what the LGPL was created for, so that you could statically link a "black box" library under the LGPL without the whole program reverting to the GPL. The GPL is a dangerous thing.
|
![]() |
![]() |
![]() |
#4 |
Tribal Bullet
Oct 2004
2·3·19·31 Posts |
![]()
Correct, GMP-ECM is released under LGPL (latter-day versions are under LGPLv3). If Yafu added a patch to the 'stock' version of GMP-ECM then bsquared could not release YAFU as a closed-source application. At a minimum he'd have to release his patch, and if the patch changed the external interface to the library then he'd have to release his application code. Note: IANAL.
Last fiddled with by jasonp on 2012-06-09 at 03:30 |
![]() |
![]() |
![]() |
#5 | |
"Ben"
Feb 2007
3,371 Posts |
![]() Quote:
I will contact Paul/Alex for advice... |
|
![]() |
![]() |
![]() |
#6 |
"Ben"
Feb 2007
3,371 Posts |
![]()
Come to think of it, if yafu is bound by the GPL because it uses the ecm_factor interface to libecm, then so is msieve; I copied nearly verbatim the gmp-ecm interface from msieve. And everything I added on top of that for multi-threading uses system calls to external gmp-ecm executables.
|
![]() |
![]() |
![]() |
#7 |
Basketry That Evening!
"Bunslow the Bold"
Jun 2011
40<A<43 -89<O<-88
3×29×83 Posts |
![]()
No, I don't think so; it's not clear which license applies to which code (just looked through most of the text files, COPYING* just contain the licenses and don't say which licenses apply to what), but I'm decently sure that as long as you only use ecm_factor() to directly interface to libecm without using (say) GMP-ECM's main() or expression parsing code, then it is LGPLd. The LGPL is agnostic to the license of the code that calls the interface, so you should be fine. (The reason I wasn't sure before is because I thought all of GMP-ECM was strictly GPL, not LGPL.)
(IANAL of course, but I think we're smart enough to figure it out.) |
![]() |
![]() |
![]() |
#8 |
"Nancy"
Aug 2002
Alexandria
2,467 Posts |
![]()
We did the separation of front-end and library, and LGPL-ed the latter, precisely to allow that kinda thing - letting non-GPL applications link GMP-ECM without having to be GPL themselves. It's what Magma does, for example. So, as far as I can tell, you're fine by #include-ing ecm.h and linking ecmlib, statically or dynamically.
|
![]() |
![]() |
![]() |
#9 | |
Tribal Bullet
Oct 2004
2·3·19·31 Posts |
![]() Quote:
Edit: it's not accurate to say that 'an application is GPL because it uses GPL code'. GPL doesn't override the license that's on consuming code, if the license is 'compatible'. Public domain is one such (lack of) license; you can take YAFU or Msieve and incorporate only the public-domain parts into other applications without issue. But if your application pulls in YAFU or Msieve (in library form) with LGPL parts, then your code has to use them in a way that's compatible with the LGPL. Last fiddled with by jasonp on 2012-06-10 at 01:21 |
|
![]() |
![]() |
![]() |
Thread Tools | |
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
wiki licensing? | ixfd64 | mersennewiki | 6 | 2006-05-22 12:05 |