[Buildroot] [PATCH 1/1] package/php: switch from libmysqlclient to mysqlnd

Arnout Vandecappelle arnout at mind.be
Wed Aug 24 23:16:43 UTC 2016



On 24-08-16 23:45, Floris Bos wrote:
> On 08/24/2016 10:41 PM, Arnout Vandecappelle wrote:
>>
>> On 24-08-16 19:09, Thomas Petazzoni wrote:
>>> Hello,
>>>
>>> On Wed, 24 Aug 2016 02:26:51 +0200, Arnout Vandecappelle wrote:
>>>> On 23-08-16 18:54, Floris Bos wrote:
>>>>> The Mysql Native Driver has been the default mysql driver since
>>>>> PHP 5.4, but buildroot was still using libmysqlclient.
>>>>>
>>>>> Mysqlnd has several advantages such as improved memory management
>>>>> and the more favorable PHP licensing terms.
>>>>> (can combine it with proprietary PHP extensions like Ioncube
>>>>> loader, while libmysqlclient requires commercial licensing if you
>>>>> link to it and do not fall under their GPL/FOSS license exception)
>>>>   I may be too tired and could be missing something, but this commit message
>>>> looks like it doesn't match the actual change...
>>>>
>>>>   I _guess_ that the php config script will use mysqlnd when the plain
>>>> --with-mysqli option is passed, and will use libmysqlclient when --with-mysqli
>>>> has a parameter. If this is the case, please specify it explicitly in the
>>>> commit
>>>> message. If this is not the case, it should _definitely_ be explained in the
>>>> commit message :-)
>>> Where do you see anything in the commit message that contradicts this?
>>   Not exactly contradicts. I read the commit message and expected a change like
>> changing --with-mysqli into --with-mysqlnd. But instead it just removed all the
>> dependencies on mysql, which looked weird.
> 
> Well, could have also changed it to --with-mysqli=mysqlnd --with-pdo-mysql=mysqlnd
> That's another way to say that you want the mysqli and pdo_mysql PHP extensions
> build, and that those in turn should use the mysqlnd driver to talk to a Mysql
> server.
> 
> Maybe that would have made the change better to understand.
> However then it would like we are deviating from the PHP default by explicity
> setting a parameter.
> Since mysqlnd is the default nowadays --with-mysqli --with-pdo-mysql is sufficient.
> 
> 
> Should the meaning of individual configure options really be spelled out in
> commit messages?
> What the change achieves is already in the first line "switch from
> libmysqlclient to mysqlnd"
> And if anyone wants to know the finer details, he could look it up in the
> upstream docs: http://php.net/manual/en/mysqlinfo.library.choosing.php

 Reading the commit message and patch again with a slightly less tired head, it
is indeed quite obvious.

Reviewed-by: Arnout Vandecappelle (Essensium/Mind) <arnout at mind.be>


 Regards,
 Arnout

> 
> 
> Yours sincerely,
> 
> Floris Bos
> 
> 

-- 
Arnout Vandecappelle                          arnout at mind be
Senior Embedded Software Architect            +32-16-286500
Essensium/Mind                                http://www.mind.be
G.Geenslaan 9, 3001 Leuven, Belgium           BE 872 984 063 RPR Leuven
LinkedIn profile: http://www.linkedin.com/in/arnoutvandecappelle
GPG fingerprint:  7493 020B C7E3 8618 8DEC 222C 82EB F404 F9AC 0DDF



More information about the buildroot mailing list