From patchwork Sat Oct 20 21:48:41 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bernd Kuhls X-Patchwork-Id: 987248 Return-Path: X-Original-To: incoming-buildroot@patchwork.ozlabs.org Delivered-To: patchwork-incoming-buildroot@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=busybox.net (client-ip=140.211.166.138; helo=whitealder.osuosl.org; envelope-from=buildroot-bounces@busybox.net; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=t-online.de Received: from whitealder.osuosl.org (smtp1.osuosl.org [140.211.166.138]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 42cxHp5kLpz9sCm for ; Sun, 21 Oct 2018 08:48:54 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id E497A876AA; Sat, 20 Oct 2018 21:48:52 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Fqsc+vLrju-v; Sat, 20 Oct 2018 21:48:51 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by whitealder.osuosl.org (Postfix) with ESMTP id D8A31876F8; Sat, 20 Oct 2018 21:48:51 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from fraxinus.osuosl.org (smtp4.osuosl.org [140.211.166.137]) by ash.osuosl.org (Postfix) with ESMTP id C7B411BF3A2 for ; Sat, 20 Oct 2018 21:48:50 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id C46F586484 for ; Sat, 20 Oct 2018 21:48:50 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from fraxinus.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id npu8ILSjdJcT for ; Sat, 20 Oct 2018 21:48:49 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mailout06.t-online.de (mailout06.t-online.de [194.25.134.19]) by fraxinus.osuosl.org (Postfix) with ESMTPS id 58055864AB for ; Sat, 20 Oct 2018 21:48:49 +0000 (UTC) Received: from fwd30.aul.t-online.de (fwd30.aul.t-online.de [172.20.26.135]) by mailout06.t-online.de (Postfix) with SMTP id CB95941C986C for ; Sat, 20 Oct 2018 23:48:46 +0200 (CEST) Received: from fli4l.lan.fli4l (bpqm-qZVZhqhai4v1zNLBgRGvByW+2mZWkYe4wC9GriwPsgmEWWWtXQ7R+AXIMfgrt@[91.58.2.94]) by fwd30.t-online.de with (TLSv1:ECDHE-RSA-AES256-SHA encrypted) esmtp id 1gDz6w-0DDRk80; Sat, 20 Oct 2018 23:48:42 +0200 Received: from mahler.lan.fli4l ([192.168.1.1]:42284 helo=kuhls.lan.fli4l) by fli4l.lan.fli4l with esmtp (Exim 4.91) (envelope-from ) id 1gDz6v-0005OI-Uc for buildroot@buildroot.org; Sat, 20 Oct 2018 23:48:42 +0200 From: Bernd Kuhls To: buildroot@buildroot.org Date: Sat, 20 Oct 2018 23:48:41 +0200 Message-Id: <20181020214841.19072-1-bernd.kuhls@t-online.de> X-Mailer: git-send-email 2.19.1 MIME-Version: 1.0 X-ID: bpqm-qZVZhqhai4v1zNLBgRGvByW+2mZWkYe4wC9GriwPsgmEWWWtXQ7R+AXIMfgrt X-TOI-MSGID: f3439b4e-40a5-48d7-aabe-9bf6377f11b7 Subject: [Buildroot] [PATCH 1/1] package/php: added support for PostgreSQL (non-PDO). X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.29 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" Needed for example for phppgadmin. Signed-off-by: Bernd Kuhls --- package/php/Config.ext | 12 ++++++++++++ package/php/php.mk | 6 ++++++ 2 files changed, 18 insertions(+) diff --git a/package/php/Config.ext b/package/php/Config.ext index 51dcbbf4a4..bcd20cd25e 100644 --- a/package/php/Config.ext +++ b/package/php/Config.ext @@ -117,6 +117,18 @@ config BR2_PACKAGE_PHP_EXT_MYSQLI help MySQL Improved extension support +config BR2_PACKAGE_PHP_EXT_PGSQL + bool "PostgreSQL" + depends on BR2_USE_MMU # postgresql + depends on !BR2_STATIC_LIBS + select BR2_PACKAGE_POSTGRESQL + help + PostgreSQL support + +comment "PostgreSQL extension needs a toolchain w/ dynamic library" + depends on BR2_USE_MMU + depends on BR2_STATIC_LIBS + config BR2_PACKAGE_PHP_EXT_SQLITE bool "SQLite3" select BR2_PACKAGE_SQLITE diff --git a/package/php/php.mk b/package/php/php.mk index 4365847733..bd1835f65f 100644 --- a/package/php/php.mk +++ b/package/php/php.mk @@ -196,6 +196,12 @@ endif ifeq ($(BR2_PACKAGE_PHP_EXT_MYSQLI),y) PHP_CONF_OPTS += --with-mysqli endif + +ifeq ($(BR2_PACKAGE_PHP_EXT_PGSQL),y) +PHP_CONF_OPTS += --with-pgsql=$(STAGING_DIR)/usr +PHP_DEPENDENCIES += postgresql +endif + ifeq ($(BR2_PACKAGE_PHP_EXT_SQLITE),y) PHP_CONF_OPTS += --with-sqlite3=$(STAGING_DIR)/usr PHP_DEPENDENCIES += sqlite