Bug 10566 - php.mk is missing option --with-pgsql
Summary: php.mk is missing option --with-pgsql
Status: RESOLVED FIXED
Alias: None
Product: buildroot
Classification: Unclassified
Component: Other (show other bugs)
Version: 2017.02.5
Hardware: All Linux
: P5 enhancement
Target Milestone: ---
Assignee: unassigned
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-12-08 19:13 UTC by Peter
Modified: 2019-08-11 23:27 UTC (History)
1 user (show)

See Also:
Host:
Target:
Build:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Peter 2017-12-08 19:13:37 UTC
When tried to install zabbix server using PostgreSQL database the setup page gave an error message "At least one of MySQL, PostgreSQL, Oracle or IBM DB2 should be supported."
This pointed out to that php was configured without "--with-pgsql". The php.mk file that is in charge of setting different configuration options to "configure" script doesn't have the option at all.

The version of buildroot in use is: buildroot-2017.02.6
Comment 1 Thomas Petazzoni 2018-01-10 20:04:48 UTC
We already have PostgreSQL support in PHP:

ifeq ($(BR2_PACKAGE_PHP_EXT_PDO_POSTGRESQL),y)
PHP_CONF_OPTS += --with-pdo-pgsql=$(STAGING_DIR)/usr
PHP_DEPENDENCIES += postgresql
endif

Are you sure you had BR2_PACKAGE_PHP_EXT_PDO_POSTGRESQL enabled ?
Comment 2 Peter 2018-01-10 20:10:57 UTC
Currently only "--with-pdo-pgsql" is supported, but "--with-pgsql" is missing.
Comment 3 Thomas Petazzoni 2018-01-16 22:29:22 UTC
Could you submit a patch adding the support for --with-pgsql ? Since you're the one who needs this, you're in the best position to actually test it.
Comment 4 Carlos Santos 2019-08-11 23:27:00 UTC
Fixed by commit

  03d52226e2 package/php: add support for PostgreSQL (non-PDO)