summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGustavo Zacarias <gustavo@zacarias.com.ar>2014-03-01 15:26:21 -0300
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>2014-03-01 20:40:08 +0100
commit1188fcf1667ac316ea9df024b9346415a05b90db (patch)
treee880e5c7a2446751ce2ce3391b7ee8cba9fabcef
parent7a95111e48f5fe387f592463effa233834c6fda1 (diff)
downloadbuildroot-1188fcf1667ac316ea9df024b9346415a05b90db.tar.gz
buildroot-1188fcf1667ac316ea9df024b9346415a05b90db.zip
php-gnupg: force gnupg detection
Hardcode the gpg path and detection otherwise it will fail on a host that doesn't have gnupg installed. Fixes: http://autobuild.buildroot.net/results/757/757fb0b12af12de4f128d9c503d45b20776c2313/ Also define PHP_AUTOCONF and PHP_AUTOHEADER as other extensions do to avoid stray issues. Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
-rw-r--r--package/php-gnupg/php-gnupg.mk5
1 files changed, 4 insertions, 1 deletions
diff --git a/package/php-gnupg/php-gnupg.mk b/package/php-gnupg/php-gnupg.mk
index 5fc1dc4973..989c55bdd6 100644
--- a/package/php-gnupg/php-gnupg.mk
+++ b/package/php-gnupg/php-gnupg.mk
@@ -9,12 +9,15 @@ PHP_GNUPG_SOURCE = gnupg-$(PHP_GNUPG_VERSION).tgz
PHP_GNUPG_SITE = http://pecl.php.net/get
# phpize does the autoconf magic
PHP_GNUPG_DEPENDENCIES = php libgpgme host-autoconf host-pkgconf
-PHP_GNUPG_CONF_OPT = --with-php-config=$(STAGING_DIR)/usr/bin/php-config
+PHP_GNUPG_CONF_OPT = --with-php-config=$(STAGING_DIR)/usr/bin/php-config \
+ --with-gnupg=$(STAGING_DIR)/usr/include --with-gpg=/usr/bin/gpg
PHP_GNUPG_LICENSE = BSD-2c
PHP_GNUPG_LICENSE_FILES = LICENSE
define PHP_GNUPG_PHPIZE
(cd $(@D); \
+ PHP_AUTOCONF=$(HOST_DIR)/usr/bin/autoconf \
+ PHP_AUTOHEADER=$(HOST_DIR)/usr/bin/autoheader \
$(STAGING_DIR)/usr/bin/phpize)
endef
OpenPOWER on IntegriCloud