pkgxdev / pantry

pkg manifests
https://pkgx.dev/pkgs/
171 stars 117 forks source link

build php with mysql & postgres extension enabled : `--with-pdo-mysql --with-pdo-pgsql` #5048

Open tsirysndr opened 9 months ago

dosubot[bot] commented 9 months ago

🤖

Hello @tsirysndr!

I'm Dosu, a friendly bot here to assist with your queries and issues. I can help you debug some problems, answer your questions, and guide you through becoming a contributor. Just consider me your coding companion while we wait for a human maintainer. If you have more concerns, feel free to ask. Let's have some fun with coding!

Based on the provided context, it appears that the PHP build script in the pantry repository is already configured to build PHP with the MySQL extension enabled. This is indicated by the --enable-mysqlnd argument in the ARGS environment variable. However, this enables the MySQL Native Driver, not the PDO MySQL extension.

If you specifically want to enable the PDO MySQL extension, you would need to add the --with-pdo-mysql argument to the ARGS environment variable. Here's how you can modify the build script:

env:
  ARGS:
    - --prefix={{prefix}}
    ...
    - --enable-mysqlnd
    ...
    - --with-pdo-mysql
    ...

This will ensure that PHP is built with the PDO MySQL extension enabled. Please note that the actual PHP version to be used is not specified in the provided context. The MySQL extension will be enabled regardless of the PHP version being built.

For more information, you can refer to the projects/php.net/package.yml file in the pantry repository.

Let me know if you need further assistance.

Sources


This response is meant to be useful and save you time. It is not meant to be a precise solution, but rather a starting point for your own research.

Help me be more useful! Please leave a 👍 if this is helpful and 👎 if it is irrelevant.

If you want to continue the conversation, start your reply with @dosu-bot.