Patchwork php: fix build error for snmp extension

login
register
mail settings
Submitter Gustavo Zacarias
Date June 2, 2012, 3:09 p.m.
Message ID <1338649743-27044-1-git-send-email-gustavo@zacarias.com.ar>
Download mbox | patch
Permalink /patch/162419/
State Accepted
Commit 48189d95001c41969ffddad427aaf73a9b57bc15
Headers show

Comments

Gustavo Zacarias - June 2, 2012, 3:09 p.m.
PHP requires that net-snmp be built with the ability to load MIB code,
so force it on when the extension is enabled.

Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
---
 package/php/Config.ext |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
Peter Korsgaard - June 4, 2012, 9:27 p.m.
>>>>> "Gustavo" == Gustavo Zacarias <gustavo@zacarias.com.ar> writes:

 Gustavo> PHP requires that net-snmp be built with the ability to load MIB code,
 Gustavo> so force it on when the extension is enabled.

Committed, thanks.

Patch

diff --git a/package/php/Config.ext b/package/php/Config.ext
index fa73bb4..80bab70 100644
--- a/package/php/Config.ext
+++ b/package/php/Config.ext
@@ -219,6 +219,7 @@  config BR2_PACKAGE_PHP_EXT_FTP
 config BR2_PACKAGE_PHP_EXT_SNMP
 	bool "SNMP"
 	select BR2_PACKAGE_NETSNMP
+	select BR2_PACKAGE_NETSNMP_ENABLE_MIBS
 	help
 	  SNMP support