Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » Community » Coffee corner » MPL
MPL [message #17458] Fri, 15 August 2008 22:46 Go to next message
mirek is currently offline  mirek
Messages: 13975
Registered: November 2005
Ultimate Member
Speaking about licensing...

As one of things that is seriously missing from U++ is a good vector graphics support and one possible way how to fix this is Cairo, I wonder how much MPL is really permissive...

From my reading, it appears as you are not obliged to release sources of rest of your application, even if you combine Cairo code with anything else. And you have to release sources of Cairo only if you make changes to it. Not advertising clauses either.

That is sufficiently permissive IMO. Am I correct?

Mirek
Re: MPL [message #17460 is a reply to message #17458] Fri, 15 August 2008 23:39 Go to previous messageGo to next message
kodos is currently offline  kodos
Messages: 111
Registered: March 2008
Experienced Member
Speaking of cairo: I am currently working on the integration in U++ . I'm not finished yet but I have a CairoCtrl that works on Windows and a compatibility layer to draw UPP::Drawings with cairo. If there is interest I can post it in bazaar. But there are a few changes needed in the png package (i had to remove some compiler flags).
Re: MPL [message #17461 is a reply to message #17458] Fri, 15 August 2008 23:52 Go to previous messageGo to next message
cbpporter is currently offline  cbpporter
Messages: 1401
Registered: September 2007
Ultimate Contributor
Great, you have to be a lawyer to make heads or tails out of this licensing issue. I hope we are not getting over our heads with mixed licenses, using BSD, MPL and what not. I think we should ask some help from somebody who has experience in deciphering license descriptions.

As for Cairo, I believe it is a good idea. AGG 2.4 would be great from the license point of view, but working with AGG is IMO extremely hard. You need a lot of code to get basic stuff done, and it is not very intuitive. On the other hand Cairo is easy to use.

I wonder how MPL clauses apply if we keep Cairo sources intact, but change the build method to produce static linking? Having self-contained executable is one of U++ advantages. If the license is acceptable and we can get static linking, and if the performance is good for basic operations we could replace the current platform dependent draw primitives with Cairo calls, with the added advantage of getting Mac drawing for free. This could make Mac port easier, but we still need Objective C for windowing. And AFAIK, BeOS too! A Haiku port is not planned, but it is good to know that it is technically possible.
Re: MPL [message #17463 is a reply to message #17458] Sat, 16 August 2008 02:18 Go to previous messageGo to next message
emr84 is currently offline  emr84
Messages: 26
Registered: April 2008
Location: Argentina
Promising Member
I believe that this book can be a good aid to understand about different licenses: http://oreilly.com/catalog/osfreesoft/book/

I hope that it is useful Smile (it seems that the MPL can cause problems)

[Updated on: Sat, 16 August 2008 02:22]

Report message to a moderator

Re: MPL [message #17465 is a reply to message #17461] Sat, 16 August 2008 09:39 Go to previous messageGo to next message
mirek is currently offline  mirek
Messages: 13975
Registered: November 2005
Ultimate Member
cbpporter wrote on Fri, 15 August 2008 17:52


I wonder how MPL clauses apply if we keep Cairo sources intact, but change the build method to produce static linking?



Actually, if it is cairo, we will not leave sources intact in any case Smile

OTOH, I have not seen anything about static linking, just combined work. And in that case you are about to reveal the modified code of cairo only. Plus only WE need to do that, U++ user will get alread modified cairo, with sources available, so there is nothing he has to worry about.

At least, that is my understanding.

Quote:


Having self-contained executable is one of U++ advantages. If the license is acceptable and we can get static linking, and if the performance is good for basic operations we could replace the current platform dependent draw primitives with Cairo calls, with the added advantage of getting Mac drawing for free.



I do not think this is really possible. There still will have to be platform dependent draw for performance reasons.

Cairo, AFAIK, is basically a software renderer. Which, BTW, is exactly what Vista or Mac OS X do. OTOH, the most basic rendering operations ("DrawRect, DrawText, DrawImage") tend to be very well accelerated by HW, at least in Linux.

Quote:


This could make Mac port easier, but we still need Objective C for windowing.


Yeah, that sucks, does not it? Smile

Mirek
Re: MPL [message #17466 is a reply to message #17460] Sat, 16 August 2008 10:53 Go to previous messageGo to next message
mirek is currently offline  mirek
Messages: 13975
Registered: November 2005
Ultimate Member
kodos wrote on Fri, 15 August 2008 17:39

Speaking of cairo: I am currently working on the integration in U++ . I'm not finished yet but I have a CairoCtrl that works on Windows and a compatibility layer to draw UPP::Drawings with cairo. If there is interest I can post it in bazaar. But there are a few changes needed in the png package (i had to remove some compiler flags).


Have you succeeded in "plugining" the Cairo? I mean, do you have it as source package?

Mirek
Re: MPL [message #17468 is a reply to message #17465] Sat, 16 August 2008 12:57 Go to previous messageGo to next message
cas_ is currently offline  cas_
Messages: 20
Registered: July 2008
Location: Poland
Promising Member
luzr wrote on Sat, 16 August 2008 09:39


OTOH, I have not seen anything about static linking, just combined work. And in that case you are about to reveal the modified code of cairo only.



MPL FAQ seems to confirm that your understanding is correct Smile

[Updated on: Sat, 16 August 2008 12:59]

Report message to a moderator

Re: MPL [message #17469 is a reply to message #17466] Sat, 16 August 2008 12:58 Go to previous messageGo to next message
kodos is currently offline  kodos
Messages: 111
Registered: March 2008
Experienced Member
luzr wrote on Sat, 16 August 2008 10:53


Have you succeeded in "plugining" the Cairo? I mean, do you have it as source package?
Mirek


Yes I have it as source package. I had to rename some
#include <> to #include ""
and I add some dummy headers that link cairo with the included png and zlib .

[Updated on: Sat, 16 August 2008 12:59]

Report message to a moderator

Re: MPL [message #17470 is a reply to message #17458] Sat, 16 August 2008 13:54 Go to previous messageGo to next message
amrein is currently offline  amrein
Messages: 278
Registered: August 2008
Location: France
Experienced Member
MPL licence is like LGPL + an exception to be able to link statically with proprietary software + no patent grant to you or your users if you use a modified version of the software. If you modify the MPL covered code, you must provide the modified MPL source in a working form with all additions. The final user can ask the distributor for the MPL licensed source code.

A module covered by the GPL and a module covered by the MPL cannot legally be linked together.

Cairo source can also be under LGPL. U++ is available with its source code so no problem but:
- With static linking, if someone else use your software + cairo under LGPL, the final user can ask the distributor for the cairo source code (modified or not) + your source. Your source must be LGPL or GPL. If the final distributor link statically to your software, he must release the wall source using GPL or LGPL. With dynamic linking, the final distributor will just have to add in its docs, apps, about menu, ... that his software use LGPL licensed code and must provide the source of the LGPLed code with its software (in the media!).
- If they link statically with U++ and U++ link dynamically with the cairo LGPL covered source, the distributor can use a proprietary licence for their own software but still need to tell about the LGPL licence of the dynamic library.


Quote:

Great, you have to be a lawyer to make heads or tails out of this licensing issue.


Sure! Confused

Most of the FOSS licences let you include other source code covered by the same licence into your own source. When you select an open source licence, you should carefully study the advantages, drawbacks and risks. With a not enough spread one, you will have to reinvent the wheel each time you want a new feature. The more licence we have, the more fragmented the community is, the more difficult producing new FOSS become. Confused

Really, before any work on including other libraries, can we have a definitive statement about the final U++ licence choice?

[Updated on: Sat, 16 August 2008 14:04]

Report message to a moderator

Re: MPL [message #17478 is a reply to message #17458] Sat, 16 August 2008 23:20 Go to previous messageGo to next message
mr_ped is currently offline  mr_ped
Messages: 825
Registered: November 2005
Location: Czech Republic - Praha
Experienced Contributor
Quote:

A module covered by the GPL and a module covered by the MPL cannot legally be linked together.


GPL is of no problem/interest for U++, this is BSD-like (or LGPL + exception for static linking) type of project, so actually MPL sounds good for U++.
(As far as I'm aware there's no GPL code in U++ installer?)
Re: MPL [message #17480 is a reply to message #17470] Sun, 17 August 2008 01:35 Go to previous messageGo to next message
mirek is currently offline  mirek
Messages: 13975
Registered: November 2005
Ultimate Member
amrein wrote on Sat, 16 August 2008 07:54


Really, before any work on including other libraries, can we have a definitive statement about the final U++ licence choice?


Is not it a bit fast, after 4 years with "BSD-like" license? Smile

Anyway, I believe MIT is the most reasonable choice. Alternatively, 2 clause BSD (which IS GPL compatible) or just public domain (SQLite seems to do pretty well Smile

Mirek
Re: MPL [message #17492 is a reply to message #17458] Sun, 17 August 2008 22:51 Go to previous messageGo to next message
amrein is currently offline  amrein
Messages: 278
Registered: August 2008
Location: France
Experienced Member
Why not create a poll with differents license:
MIT, modified BSD, MPL, LGPL, GPL (with direct links to OSI web page for each of them)?
Re: MPL [message #17493 is a reply to message #17492] Sun, 17 August 2008 23:51 Go to previous messageGo to next message
mirek is currently offline  mirek
Messages: 13975
Registered: November 2005
Ultimate Member
Well, do it.

Mirek
Re: MPL [message #17495 is a reply to message #17458] Mon, 18 August 2008 09:03 Go to previous message
amrein is currently offline  amrein
Messages: 278
Registered: August 2008
Location: France
Experienced Member
Done

http://www.ultimatepp.org/forum/index.php?t=msg&th=3730& amp;start=0&
Previous Topic: My explaination of why Ultimate++ is not mainstream
Next Topic: Ubuntu 8.04
Goto Forum:
  


Current Time: Thu Apr 25 19:16:22 CEST 2024

Total time taken to generate the page: 0.03163 seconds