[GH-ISSUE #333] Dual license as LGPL for Tiki #287

Closed
opened 2026-02-25 21:34:39 +03:00 by kerem · 11 comments
Owner

Originally created by @jasonmunro on GitHub (Mar 27, 2019).
Original GitHub issue: https://github.com/cypht-org/cypht/issues/333

Originally assigned to: @jasonmunro on GitHub.

Add LGPL license support for easier Tiki integration (https://tiki.org/HomePage)

Originally created by @jasonmunro on GitHub (Mar 27, 2019). Original GitHub issue: https://github.com/cypht-org/cypht/issues/333 Originally assigned to: @jasonmunro on GitHub. Add LGPL license support for easier Tiki integration (https://tiki.org/HomePage)
kerem 2026-02-25 21:34:39 +03:00
Author
Owner

@marclaporte commented on GitHub (Mar 27, 2019):

Thanks Jason!

So I looked at https://github.com/jasonmunro/cypht/blob/master/composer.json and https://packagist.org/packages/html2text/html2text would need an adjustment. Do you see any others?

FYI to the Cypht community, here is the plan: https://dev.tiki.org/Cypht-integration

<!-- gh-comment-id:477023443 --> @marclaporte commented on GitHub (Mar 27, 2019): Thanks Jason! So I looked at https://github.com/jasonmunro/cypht/blob/master/composer.json and https://packagist.org/packages/html2text/html2text would need an adjustment. Do you see any others? FYI to the Cypht community, here is the plan: https://dev.tiki.org/Cypht-integration
Author
Owner

@jasonmunro commented on GitHub (Jul 3, 2019):

After much thought on this, I think the right thing to do here is re-license Cypht as LGPL instead of GPL. While it's possible to dual license LGPL and GPL, it does not make a lot of sense to do so. The LGPL is a bit of an odd license as it's focus is on 'libraries" as opposed to stand alone programs, but it protects what I care about (Cypht remains free as in beer and speech), and it facilitates integration with the Tiki project which is something else I really care about :)

<!-- gh-comment-id:507900261 --> @jasonmunro commented on GitHub (Jul 3, 2019): After much thought on this, I think the right thing to do here is re-license Cypht as LGPL instead of GPL. While it's possible to dual license LGPL and GPL, it does not make a lot of sense to do so. The LGPL is a bit of an odd license as it's focus is on 'libraries" as opposed to stand alone programs, but it protects what I care about (Cypht remains free as in beer and speech), and it facilitates integration with the Tiki project which is something else I really care about :)
Author
Owner

@marclaporte commented on GitHub (Jul 3, 2019):

@jasonmunro : fantastic! It's simple and will make it easy to share some code.

Tiki is LGPL version 2.1.

Thank you very much!!

<!-- gh-comment-id:507942988 --> @marclaporte commented on GitHub (Jul 3, 2019): @jasonmunro : fantastic! It's simple and will make it easy to share some code. Tiki is LGPL version 2.1. Thank you very much!!
Author
Owner

@jasonmunro commented on GitHub (Apr 20, 2020):

Finally getting around to this, and I can confirm html2text is the only dependency in Cypht that is going to be a problem. I can remove it and replace it with some home grown code that is adequate enough, but sadly it won't do as robust a job formatting the plain text to represent the HTML as this library does.

<!-- gh-comment-id:616742109 --> @jasonmunro commented on GitHub (Apr 20, 2020): Finally getting around to this, and I can confirm html2text is the only dependency in Cypht that is going to be a problem. I can remove it and replace it with some home grown code that is adequate enough, but sadly it won't do as robust a job formatting the plain text to represent the HTML as this library does.
Author
Owner

@dumblob commented on GitHub (Apr 20, 2020):

@mtibben would you be ok to relicense html2text as LGPL or something compatible?

<!-- gh-comment-id:616745946 --> @dumblob commented on GitHub (Apr 20, 2020): @mtibben would you be ok to relicense `html2text` as LGPL or something compatible?
Author
Owner

@marclaporte commented on GitHub (Apr 20, 2020):

@jasonmunro Let's try to solve license issue to get best code and to participate upstream.

I was part of a team that this did this for Bootstrap: https://github.com/twbs/bootstrap/issues/2054

My experience: most people are just as happy with any Open Source license, and most agree to switch to a license which permits the broadest adoption.

Libraries nowadays are mostly MIT-licensed.

Thanks!

<!-- gh-comment-id:616786706 --> @marclaporte commented on GitHub (Apr 20, 2020): @jasonmunro Let's try to solve license issue to get best code and to participate upstream. I was part of a team that this did this for Bootstrap: https://github.com/twbs/bootstrap/issues/2054 My experience: most people are just as happy with any Open Source license, and most agree to switch to a license which permits the broadest adoption. Libraries nowadays are mostly MIT-licensed. Thanks!
Author
Owner

@jasonmunro commented on GitHub (Apr 20, 2020):

@marclaporte Just planning a contingency in the case that the author has no interest in dual/changing licenses. We don't use this code a ton, but it does a nice job. I can probably do something decent in 10 or so lines of code, but most importantly I cannot move forward with this license change until this bit is resolved as you are aware because it is a license violation to do so.

<!-- gh-comment-id:616797441 --> @jasonmunro commented on GitHub (Apr 20, 2020): @marclaporte Just planning a contingency in the case that the author has no interest in dual/changing licenses. We don't use this code a ton, but it does a nice job. I can probably do something decent in 10 or so lines of code, but most importantly I cannot move forward with this license change until this bit is resolved as you are aware because it is a license violation to do so.
Author
Owner

@mtibben commented on GitHub (Apr 21, 2020):

@mtibben would you be ok to relicense html2text as LGPL or something compatible?

See https://github.com/mtibben/html2text/issues/71 - you'll need to ask the original author to relicense the code at http://www.chuggnutt.com/html2text

<!-- gh-comment-id:616956498 --> @mtibben commented on GitHub (Apr 21, 2020): > @mtibben would you be ok to relicense `html2text` as LGPL or something compatible? See https://github.com/mtibben/html2text/issues/71 - you'll need to ask the original author to relicense the code at http://www.chuggnutt.com/html2text
Author
Owner

@marclaporte commented on GitHub (Apr 21, 2020):

@jasonmunro : understood.

I already reached out to Jon Abernathy (@chuggnutt). We'll start the process to reach out to all contributors. If we are not ready in time, we can do a release with 10-lines-of-code-interim-solution. And hopefully, it the next release, we'll restore html2text, and even make contributions :-)

If it doesn't work out, we could set it up so 10-lines-of-code becomes built-in solution but end users can easily install additional dependencies themselves. If present, it would override. We have tools in Tiki to help with this: http://doc.tiki.org/Packages
It would be overkill for just this use case, but there will be other use cases where this could be nice. Ex.: https://github.com/jasonmunro/cypht/issues/382

Thanks!

<!-- gh-comment-id:617233584 --> @marclaporte commented on GitHub (Apr 21, 2020): @jasonmunro : understood. I already reached out to Jon Abernathy (@chuggnutt). We'll start the process to reach out to all contributors. If we are not ready in time, we can do a release with 10-lines-of-code-interim-solution. And hopefully, it the next release, we'll restore html2text, and even make contributions :-) If it doesn't work out, we could set it up so 10-lines-of-code becomes built-in solution but end users can easily install additional dependencies themselves. If present, it would override. We have tools in Tiki to help with this: http://doc.tiki.org/Packages It would be overkill for just this use case, but there will be other use cases where this could be nice. Ex.: https://github.com/jasonmunro/cypht/issues/382 Thanks!
Author
Owner

@jasonmunro commented on GitHub (Apr 21, 2020):

work around is in place. It's closer to 30 lines of code but it also seems to be working a bit better than I planned :) (still not nearly as good as html2text)

<!-- gh-comment-id:617340153 --> @jasonmunro commented on GitHub (Apr 21, 2020): work around is in place. It's closer to 30 lines of code but it also seems to be working a bit better than I planned :) (still not nearly as good as html2text)
Author
Owner

@marclaporte commented on GitHub (Jun 23, 2020):

There is also https://packagist.org/packages/soundasleep/html2text

<!-- gh-comment-id:648318572 --> @marclaporte commented on GitHub (Jun 23, 2020): There is also https://packagist.org/packages/soundasleep/html2text
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/cypht#287
No description provided.