Skip to contentSkip to conversation

php-gnupg: force gnupg detection

PATCH New Gustavo Zacarias 2 participants 2 messages Mar 1, 2014

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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.

---
 package/php-gnupg/php-gnupg.mk | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
package/php-gnupg/php-gnupg.mk +4 -1
index 5fc1dc4..989c55b 100644
@@ -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
 
Signature · 1 line
1.8.3.2
#1 lore raw

PATCH 1/1 php-gnupg: force gnupg detection

Dear Gustavo Zacarias,

Quoted 10 lines · Gustavo Zacarias

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.

---
 package/php-gnupg/php-gnupg.mk | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

Applied, thanks.

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com