Bug 69090

Summary: package for php4 violates license
Product: Ports & Packages Reporter: dirk.meyer <dirk.meyer>
Component: Individual Port(s)Assignee: Alex Dupre <ale>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: Latest   
Hardware: Any   
OS: Any   

Description dirk.meyer 2004-07-15 11:20:21 UTC
	mysql-client-3.* is LGPL
	mysql-client-4.* is GPL only

Statement from Zak Greant:
from http://www.phparch.com/mysql/

php|a: Does it mean that PHP users will no longer be able to develop
       using MySQL as their DBMS of choice?

ZG: Users may still use PHP with MySQL under the terms of the GPL as
 long as they do not distribute copies of PHP that are linked with MySQL.

If someone *distributes* a copy of PHP that has MySQL linked into it,
 then they must purchase a license from MySQL AB.

Once the extended licensing is in place, users should be able to freely
 use MySQL with all (or most) true open source projects.

	teh default package from
	ports/lang/php4 is linked against mysql-client-4.*
	which violates the GPL license.

Fix: 

make MYSQL not default.
How-To-Repeat: 
	some links or goggle ....

	http://lwn.net/Articles/75287/
	http://www.php.net/license/
	http://www.gnu.org/licenses/gpl-faq.html#GPLIncompatibleLibs
	http://www.phparch.com/mysql/
	http://www.internetnews.com/dev-news/article.php/3358061
Comment 1 Volker Stolz freebsd_committer freebsd_triage 2004-07-15 15:08:02 UTC
Responsible Changed
From-To: freebsd-ports-bugs->ale

Over to php4/5 maintainer
Comment 2 Jason Li 2004-07-15 15:33:40 UTC
Hi, Dirk

I think there is an exception of this and hence this does not violate the license:

http://www.mysql.com/products/licensing/foss-exception.html

From MySQL AB's FAQ:

http://www.mysql.com/products/licensing/faq.html

What is the GPL License Exception for PHP?
Because PHP and MySQL use different incompatible open source licenses, we have created a special exception to encourage and promote the use of MySQL in the PHP community. MySQL AB gives permission to distribute derivative works that are formed with GPL-licensed MySQL software and with software licensed under version 3.0 of the PHP license. You must obey the GNU General Public License in all respects for all of the code used other than code licensed under version 3.0 of the PHP license.

There is also a more general exception which enables developers releasing software under other Free and Open Source software ("FOSS") licenses to include the MySQL client libraries. This is known as the FOSS License Exception.


> >Description:
> 
> 	mysql-client-3.* is LGPL
> 	mysql-client-4.* is GPL only
> 
> Statement from Zak Greant:
> from http://www.phparch.com/mysql/
> 
> php|a: Does it mean that PHP users will no longer be able to develop
>        using MySQL as their DBMS of choice?
> 
> ZG: Users may still use PHP with MySQL under the terms of the GPL as
>  long as they do not distribute copies of PHP that are linked with MySQL.
> 
> If someone *distributes* a copy of PHP that has MySQL linked into it,
>  then they must purchase a license from MySQL AB.
> 
> Once the extended licensing is in place, users should be able to freely
>  use MySQL with all (or most) true open source projects.
> 
> 	teh default package from
> 	ports/lang/php4 is linked against mysql-client-4.*
> 	which violates the GPL license.


-- 
Xin LI <delphij frontfree net>	http://www.delphij.net/
See complete headers for GPG key and other information.
Comment 3 Alex Dupre freebsd_committer freebsd_triage 2004-07-15 16:56:44 UTC
Xin LI wrote:

> I think there is an exception of this and hence this does not violate the license:

The upcoming PHP mega-commit will remove all extensions from the PHP 
package, so this discussion will become foo :-)

-- 
Alex Dupre
Comment 4 dirk.meyer 2004-07-15 20:21:40 UTC
Alex Dupre schrieb:,

> The upcoming PHP mega-commit will remove all extensions from the PHP 
> package, so this discussion will become foo :-)

Thanks but untill then you soulöd disable MYSQL in default package.
(or force MYSQL3 bindings)

The expations FOOS was read but both sides states that it is _not_
sufficient yet to distribute PHP with MYSQL4 bindings.
unless all other involed parts fall under the mentioned license.

See the discussions on phph.net and else.
The Links and Statements I posted, are ware of the exptions clause.

Expat is under MIT License. which is covered ...

http://dev.mysql.com/doc/mysql/en/MySQL_FOSS_License_Exception.html

I qoute :

> As used in this document, the term "include or aggregate" means to embed,
> integrate, bundle, aggregate, link, distribute on the same media or in the same
> packaging, provide with instructions to download or automate any of the
> preceding processes.

Please Read The MySQL FOSS Exception full,
IMHO it don't cover a distribution via FreeBSD.

kind regards Dirk

- Dirk Meyer, Im Grund 4, 34317 Habichtswald, Germany
- [dirk.meyer@dinoex.sub.org],[dirk.meyer@guug.de],[dinoex@FreeBSD.org]
Comment 5 Alex Dupre freebsd_committer freebsd_triage 2004-07-19 11:01:47 UTC
State Changed
From-To: open->closed

MySQL is not build with PHP anymore.