Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:51710 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 71760 invoked from network); 16 Mar 2011 06:08:40 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 16 Mar 2011 06:08:40 -0000 Authentication-Results: pb1.pair.com header.from=tokul@users.sourceforge.net; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=tokul@users.sourceforge.net; spf=permerror; sender-id=unknown Received-SPF: error (pb1.pair.com: domain users.sourceforge.net from 77.240.252.9 cause and error) X-PHP-List-Original-Sender: tokul@users.sourceforge.net X-Host-Fingerprint: 77.240.252.9 avilys.eik.lt Linux 2.6 Received: from [77.240.252.9] ([77.240.252.9:46779] helo=avilys.eik.lt) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id DE/01-61232-5E3508D4 for ; Wed, 16 Mar 2011 01:08:39 -0500 Received: from avilys.eik.lt (avilys.local [127.0.0.1]) by avilys.eik.lt (Postfix) with ESMTP id 8DF061F51A7 for ; Wed, 16 Mar 2011 08:02:29 +0200 (EET) Received: from 86.38.183.62 (NaSMail authenticated user tomas@topolis.lt) by avilys.eik.lt with HTTP; Wed, 16 Mar 2011 08:02:29 +0200 (EET) Message-ID: <44236.5626b73e.1300255349.nsm@avilys.eik.lt> In-Reply-To: References: <50863.5626b73e.1300221859.nsm@avilys.eik.lt> Date: Wed, 16 Mar 2011 08:02:29 +0200 (EET) To: internals@lists.php.net User-Agent: NaSMail/1.7.1 MIME-Version: 1.0 Content-Type: text/plain;charset=utf-8 Content-Transfer-Encoding: 8bit X-Priority: 3 (Normal) Importance: Normal Subject: Re: [PHP-DEV] Package php binaries + php script into one single executable file From: tokul@users.sourceforge.net ("Tomas Kuliavas") 2011.03.15 23:08 Olivier Hoareau rašė: > Hi Tomas ! > > Thanks for your proposals. > > >> Create .deb package and make it dependent on PHP for Debian/Ubuntu. >> Debian >> has docs and tools that allow to do that. PHP is in standard >> Debian/Ubuntu >> software repository. >> > > This solution does not provide me one of the goal I need to reach : that > my > users be able to use the tool even if they already have PHP installed on > their system but with a version not compatible with the tool. You are free to repackage PHP debs and make your package depend on Debian PHP 5.3 or your PHP 5.3. I don't think that people are gonna like that kind of approach, having two binaries with one of them coming from custom source should raise some concerns and you won't like the prospects of maintaining PHP for older Debian/Ubuntu versions. >> Distribute .phar package alone for users who already have PHP. List PHP >> extensions your package depends on. >> > > This solution is already in use, but not perfect, for the problem I > described above, at least, because a small percentage of my targetted > users (at this moment) are using PHP 5.3+ This method of distribution targets users who can read documentation and understand what "depends on PHP 5.3" means. >> Create automated installer for Windows which downloads PHP from the >> network. See microsoft web platform installer for more ideas. >> > > This is a possible solution if installing PHP in a custom directory > without > system-wide installation and if 2 version of PHP can coexist on the same > filesystem without conflicts on extensions/php.ini/system variables, do > you > have links ? (I will google it) > > IMHO your package license is not compatible with PHP license. You can't >> distribute PHP with BSD license. >> > > OK, I was not aware of this limitation. > It is not a problem to modify the license of the tool to one that is > compatible with PHP license, my purpose is to share something, not to sell > it. Do you (are others) have advice on this specific points ? I am not a lawyer. You can distribute installer which downloads PHP from the net (windows.php.net or its mirrors). If you repackage PHP and distribute PHP itself and your code in one bundle, your bundle license must be compatible with PHP license. that's what any layman would think. Don't mix incompatible licenses in one package. If small percentage of your targets use PHP 5.3, then your goal should be to make your package compatible with older PHP version. If you have deliberately coded with namespaces or other stuff from PHP 5.3, recheck your coding manual. What is more important for you? Proving to yourself that you can use complex language constructs in your code or reaching your target users. -- Tomas