Bug 10566

Summary: php.mk is missing option --with-pgsql
Product: buildroot Reporter: Peter <Peter.Pashkov>
Component: OtherAssignee: unassigned
Status: RESOLVED FIXED    
Severity: enhancement CC: buildroot
Priority: P5    
Version: 2017.02.5   
Target Milestone: ---   
Hardware: All   
OS: Linux   
Host: Target:
Build:

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)