Fork me on GitHub
#off-topic
<
2023-02-04
>
Ben Sless08:02:31

How realistic is it to license clojure libraries under the gplv3 or agpl? I'm never sure what it means regarding other dependencies it brings in and any dependency using it. Should a class path exception be used to allow linking?

lispyclouds09:02:56

clojure's own EPL v1 license is incompatible with GPLv3 and AGPL by extension. so it technically makes things built with clojure incompatible with these licenses as i understand it. A/GPL needs all the underlying things to be compatible. iirc the classpath exception in openjdk for example uses gplv2 and iirc has issues with v3. i'd use LGPL if going the GPL route

lispyclouds09:02:47

might be in parts i suppose. these things have always confused me too and always sidestepped it with other licenses 😛

lispyclouds09:02:16

lemme look up a thread here i vaguely remember

Ben Sless09:02:23

Same, but I want to understand it one day

lispyclouds09:02:57

the tweet seems to be deleted but this is the closest thing i can find: https://groups.google.com/g/clojure/c/TfPK-ljC46I

lispyclouds09:02:54

"Based upon the position <> of the Free Software Foundation, you may not combine EPL and GPL code in any scenario where linking exists between code made available under those licenses. The above applies to both GPL version 2 and GPL version 3."



"However, developers who want to release GPL-covered plug-ins for Eclipse can address this issue by providing an additional permission with their license <> that grants users permission to combine their work with Eclipse in this way." 

lispyclouds09:02:27

i suppose this is how metabase could do it maybe?

Ben Sless09:02:05

I think so, the AGPL license text lists all explicit dependencies

lread14:02:06

This reminded me of https://github.com/hraberg/deuce/issues/20 which looks like it stalled due to licensing issues?

seancorfield18:02:08

@UK0810AQ2 Did you (and others in this thread) see the recent talk by Martin Clausen at London Clojurians where he talks about the implications of various open source licenses (and EPL in particular)?

phronmophobic18:02:22

He didn't say it explicitly, but didn't he imply that projects like datomic may violate clojure's EPL license?

seancorfield18:02:22

EPL is a lot more "copyleft" than most people think, according to Martin, and he suggested that if you distribute a program built with Clojure -- that contains Clojure itself, as uberjars do -- then your own application needs to be made available in source form if users ask for it.

seancorfield18:02:33

(I don't agree, because I don't think it creates a "derivative work" -- and EPL2 seems to have gone to some lengths to clarify that intent, but EPL1 is legally ambiguous so I suspect it would have to be clarified in the courts if/when someone brings a lawsuit)

phronmophobic18:02:18

It stinks that choosing a License is both a) usually a good idea and b) incredibly confusing. There's lots of conflicting advice from both experts and many, many non-experts.

seancorfield18:02:04

EPL2 seems to make it clearer that EPL is not intended to cover your files if bundled with EPL-licensed code, only files from the EPL-licensed code that you modified (if any), and so the burden is only to make the (potentially modified) EPL-licensed files available -- which can be done by acknowledging Clojure in your docs/license and pointing to the public repo. If you build a project using a modified version of Clojure, it's pretty clear cut that all those modifications must be made available in source form (if anyone asks for them).

Ben Sless18:02:05

Haven't, but will, thanks

seancorfield18:02:00

Lawyers are very conservative about this stuff tho'... When I worked at Adobe, I had to get involved in a few OSS license review processes and GPL code was pretty much a "no-no" for them and even LGPL was very problematic -- to the point where my team asked an OSS project to change its license (to ASL2) so we could use it without upsetting the legal team.

Ben Sless18:02:03

Thinking about modified version of a dependency in the context or a REPL makes my teeth ache, I can always (in-ns ,,,) and monkey-patch a function

seancorfield18:02:16

The key part of these licenses is distribution. If you're not distributing anything, you're (mostly) not obligated.

Ben Sless18:02:02

So in services this is not an issue, unless something is licensed under the AGPL

lispyclouds18:02:20

i suppose AGPL affects more than distribution too? its for servers providing services?

seancorfield18:02:42

(this is why I try to avoid GPL, LGPL, and AGPL 🙂 )

Ben Sless18:02:27

I want to license everything I write under AGPL but I have no idea if I can so I just default to EPL2

seancorfield18:02:34

I tend to use ASL2 for stuff that I don't care about folks incorporating into their own code and EPL for stuff where I do care 🙂

lispyclouds18:02:22

for me https://www.juxt.pro/blog/prefer-mit/ had a big lasting impact on me and works out well 😄

👍 4
seancorfield18:02:21

e.g., my usermanager example is ASL2, but next.jdbc and HoneySQL are both EPL. My build-clj wrapper and the log4j2 plugin cache merger lib are both ASL2 but deps-new is EPL...

seancorfield18:02:46

(but, yeah, OSS licensing is a complex minefield, unfortunately)

hifumi12306:02:07

re: AGPL: as long as you’re not distributing uberjars I wouldn’t expect much issue. FWIW all of my code falls under either “Proprietary” (code I write for my employer) or “AGPL” (code I write on my own time and resources), even after thinking long and hard about open source licenses [insert the usual “this is not legal advice” paragraph here]

lispyclouds07:02:06

AGPL adds in the “network access“ aspects too. If that software is accessed as a service it still falls under the GPL clauses. Which is more than jar distribution.

hifumi12307:02:31

the issue with standalone jar distribution is that you’d be bundling EPL code (clojure) which is NG… but providing access to your source code and relying on clojure as a “major component” should be OK, as far as I understand it

lispyclouds07:02:00

yep, agreed there. the network clauses of the APGL is what bothers me a bit