Skip to contentSkip to conversation

libesmtp: not available for static builds

PATCH New Vicente Olivert Riera 2 participants 2 messages Mar 13, 2014

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 libesmtp: not available for static builds

This package requires libltdl and checks for it in the configure phase. If it's not present, then the build process is stopped.

Fixes:
http://autobuild.buildroot.net/results/5cf/5cf145d3f9c78bef1f66fe9b1831723de8b4969f/

---
 package/collectd/Config.in |    5 +++--
 package/libesmtp/Config.in |    4 ++++
 2 files changed, 7 insertions(+), 2 deletions(-)
package/collectd/Config.in +3 -2
index 70b0439..ad44842 100644
@@ -4,6 +4,7 @@ config BR2_PACKAGE_COLLECTD
 	depends on BR2_USE_MMU
 	depends on BR2_INET_IPV6
 	depends on BR2_TOOLCHAIN_HAS_THREADS
+	depends on !BR2_PREFER_STATIC_LIB # libesmtp
 	help
 	  collectd is a daemon which collects system performance
 	  statistics periodically and provides mechanisms to store
@@ -435,6 +436,6 @@ endmenu
 
 endif
 
-comment "collectd needs a toolchain w/ IPv6, threads"
-	depends on !BR2_TOOLCHAIN_HAS_THREADS || !BR2_INET_IPV6
+comment "collectd needs a toolchain w/ IPv6, threads, dynamic library"
+	depends on !BR2_TOOLCHAIN_HAS_THREADS || !BR2_INET_IPV6 || BR2_PREFER_STATIC_LIB
 	depends on BR2_USE_MMU
package/libesmtp/Config.in +4 -0
index 4e9e455..42a1c08 100644
@@ -1,6 +1,10 @@
 config BR2_PACKAGE_LIBESMTP
 	bool "libesmtp"
+	depends on !BR2_PREFER_STATIC_LIB
 	help
 	  Library for sending emails through SMTP.
 
 	  http://www.stafford.uklinux.net/libesmtp
+
+comment "libesmtp needs a toolchain w/ dynamic library"
+	depends on BR2_PREFER_STATIC_LIB
Signature · 1 line
1.7.1
#1 lore raw

PATCH 1/1 libesmtp: not available for static builds

Quoted 19 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Vicente" == Vicente Olivert Riera <[email protected]> writes:

This package requires libltdl and checks for it in the configure phase. If it's not present, then the build process is stopped.

Fixes:

   http://autobuild.buildroot.net/results/5cf/5cf145d3f9c78bef1f66fe9b1831723de8b4969f/
---
 package/collectd/Config.in |    5 +++--
 package/libesmtp/Config.in |    4 ++++
 2 files changed, 7 insertions(+), 2 deletions(-)
package/collectd/Config.in +0 -0
index 70b0439..ad44842 100644

package/collectd/Config.in config BR2_PACKAGE_COLLECTD · line 7

Quoted 4 lines
package/collectd/Config.in +1 -0
@@ -4,6 +4,7 @@ config BR2_PACKAGE_COLLECTD
 	depends on BR2_USE_MMU
 	depends on BR2_INET_IPV6
 	depends on BR2_TOOLCHAIN_HAS_THREADS
+	depends on !BR2_PREFER_STATIC_LIB # libesmtp

But libesmtp is only pulled in by BR2_PACKAGE_COLLECTD_NOTIFY_EMAIL, so the dependency should only be on that suboption.

Committed with that fixed, thanks.

Signature · 1 line
Bye, Peter Korsgaard