* [Buildroot] [PATCH 1/2] package/exim: Add optional OpenSSL support @ 2015-04-11 18:01 Bernd Kuhls 2015-04-11 18:01 ` [Buildroot] [PATCH 2/2] package/exim: Add optional libiconv support Bernd Kuhls 2015-04-12 9:48 ` [Buildroot] [PATCH 1/2] package/exim: Add optional OpenSSL support Yann E. MORIN 0 siblings, 2 replies; 4+ messages in thread From: Bernd Kuhls @ 2015-04-11 18:01 UTC (permalink / raw) To: buildroot Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de> --- package/exim/exim.mk | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/package/exim/exim.mk b/package/exim/exim.mk index f39445d..967b782 100644 --- a/package/exim/exim.mk +++ b/package/exim/exim.mk @@ -62,6 +62,14 @@ define EXIM_USE_DEFAULT_CONFIG_FILE_CLAMAV endef endif +ifeq ($(BR2_PACKAGE_OPENSSL),y) +EXIM_DEPENDENCIES += openssl +define EXIM_USE_DEFAULT_CONFIG_FILE_OPENSSL + $(call exim-config-change,SUPPORT_TLS,yes) + $(call exim-config-change,TLS_LIBS,-lssl -lcrypto) +endef +endif + # this specific toolchain lacks libnsl ifeq ($(BR2_TOOLCHAIN_EXTERNAL_SYNOPSYS_ARC_2014_12),y) define EXIM_REMOVE_LIBNSL_FROM_MAKEFILE @@ -89,6 +97,7 @@ define EXIM_CONFIGURE_CMDS $(EXIM_USE_DEFAULT_CONFIG_FILE) $(EXIM_USE_DEFAULT_CONFIG_FILE_DOVECOT) $(EXIM_USE_DEFAULT_CONFIG_FILE_CLAMAV) + $(EXIM_USE_DEFAULT_CONFIG_FILE_OPENSSL) $(EXIM_CONFIGURE_TOOLCHAIN) endef endif # CUSTOM_CONFIG -- 1.7.10.4 ^ permalink raw reply related [flat|nested] 4+ messages in thread
* [Buildroot] [PATCH 2/2] package/exim: Add optional libiconv support 2015-04-11 18:01 [Buildroot] [PATCH 1/2] package/exim: Add optional OpenSSL support Bernd Kuhls @ 2015-04-11 18:01 ` Bernd Kuhls 2015-07-15 10:00 ` Thomas Petazzoni 2015-04-12 9:48 ` [Buildroot] [PATCH 1/2] package/exim: Add optional OpenSSL support Yann E. MORIN 1 sibling, 1 reply; 4+ messages in thread From: Bernd Kuhls @ 2015-04-11 18:01 UTC (permalink / raw) To: buildroot Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de> --- package/exim/exim.mk | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/package/exim/exim.mk b/package/exim/exim.mk index 967b782..bb3a9fa 100644 --- a/package/exim/exim.mk +++ b/package/exim/exim.mk @@ -44,7 +44,6 @@ define EXIM_USE_DEFAULT_CONFIG_FILE $(call exim-config-change,TRANSPORT_LMTP,yes) $(call exim-config-change,PCRE_LIBS,-lpcre) $(call exim-config-change,PCRE_CONFIG,no) - $(call exim-config-change,HAVE_ICONV,no) $(call exim-config-unset,EXIM_MONITOR) endef @@ -62,6 +61,18 @@ define EXIM_USE_DEFAULT_CONFIG_FILE_CLAMAV endef endif +ifeq ($(BR2_PACKAGE_LIBICONV),y) +EXIM_DEPENDENCIES += libiconv +define EXIM_USE_DEFAULT_CONFIG_FILE_LIBICONV + $(call exim-config-change,HAVE_ICONV,yes) + $(call exim-config-add,EXTRALIBS_EXIM,-liconv) +endef +else +define EXIM_USE_DEFAULT_CONFIG_FILE_LIBICONV + $(call exim-config-change,HAVE_ICONV,no) +endef +endif + ifeq ($(BR2_PACKAGE_OPENSSL),y) EXIM_DEPENDENCIES += openssl define EXIM_USE_DEFAULT_CONFIG_FILE_OPENSSL @@ -97,6 +108,7 @@ define EXIM_CONFIGURE_CMDS $(EXIM_USE_DEFAULT_CONFIG_FILE) $(EXIM_USE_DEFAULT_CONFIG_FILE_DOVECOT) $(EXIM_USE_DEFAULT_CONFIG_FILE_CLAMAV) + $(EXIM_USE_DEFAULT_CONFIG_FILE_LIBICONV) $(EXIM_USE_DEFAULT_CONFIG_FILE_OPENSSL) $(EXIM_CONFIGURE_TOOLCHAIN) endef -- 1.7.10.4 ^ permalink raw reply related [flat|nested] 4+ messages in thread
* [Buildroot] [PATCH 2/2] package/exim: Add optional libiconv support 2015-04-11 18:01 ` [Buildroot] [PATCH 2/2] package/exim: Add optional libiconv support Bernd Kuhls @ 2015-07-15 10:00 ` Thomas Petazzoni 0 siblings, 0 replies; 4+ messages in thread From: Thomas Petazzoni @ 2015-07-15 10:00 UTC (permalink / raw) To: buildroot Dear Bernd Kuhls, On Sat, 11 Apr 2015 20:01:19 +0200, Bernd Kuhls wrote: > +ifeq ($(BR2_PACKAGE_LIBICONV),y) > +EXIM_DEPENDENCIES += libiconv > +define EXIM_USE_DEFAULT_CONFIG_FILE_LIBICONV > + $(call exim-config-change,HAVE_ICONV,yes) > + $(call exim-config-add,EXTRALIBS_EXIM,-liconv) > +endef > +else > +define EXIM_USE_DEFAULT_CONFIG_FILE_LIBICONV > + $(call exim-config-change,HAVE_ICONV,no) > +endef > +endif This is actually not correct: you can very well have iconv() available with libiconv. libiconv is only a replacement library providing iconv() when the C library doesn't provide, which only happens when using uClibc with locales disabled. So I think your patch should probably look like: # We have iconv() support either if the toolchain has locale support or # if libiconv is enabled. Both cannot be true at the same time since # libiconv is only available when the toolchain doesn't provide locale # support. In the case where iconv is provided by libiconv, we need to # link explicitly with libiconv. ifeq ($(BR2_PACKAGE_LIBICONV)$(BR2_ENABLE_LOCALE),y) EXIM_USE_DEFAULT_CONFIG_FILE_LIBICONV += $(call exim-config-change,HAVE_ICONV,yes) EXIM_USE_DEFAULT_CONFIG_FILE_LIBICONV += $(if $(BR2_PACKAGE_LIBICONV),$(call exim-config-add,EXTRALIBS_EXIM,-liconv)) else EXIM_USE_DEFAULT_CONFIG_FILE_LIBICONV += $(call exim-config-change,HAVE_ICONV,no) endif Could you test something like that with a non-locale enabled toolchain config, a non-locale enabled toolchain config that has libiconv enabled, and a locale-enabled toolchain? In the mean time, I'll mark your patch as Changes Requested. Thanks! Thomas -- Thomas Petazzoni, CTO, Free Electrons Embedded Linux, Kernel and Android engineering http://free-electrons.com ^ permalink raw reply [flat|nested] 4+ messages in thread
* [Buildroot] [PATCH 1/2] package/exim: Add optional OpenSSL support 2015-04-11 18:01 [Buildroot] [PATCH 1/2] package/exim: Add optional OpenSSL support Bernd Kuhls 2015-04-11 18:01 ` [Buildroot] [PATCH 2/2] package/exim: Add optional libiconv support Bernd Kuhls @ 2015-04-12 9:48 ` Yann E. MORIN 1 sibling, 0 replies; 4+ messages in thread From: Yann E. MORIN @ 2015-04-12 9:48 UTC (permalink / raw) To: buildroot Bernd, All, On 2015-04-11 20:01 +0200, Bernd Kuhls spake thusly: > > Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de> > --- > package/exim/exim.mk | 9 +++++++++ > 1 file changed, 9 insertions(+) > > diff --git a/package/exim/exim.mk b/package/exim/exim.mk > index f39445d..967b782 100644 > --- a/package/exim/exim.mk > +++ b/package/exim/exim.mk > @@ -62,6 +62,14 @@ define EXIM_USE_DEFAULT_CONFIG_FILE_CLAMAV > endef > endif > > +ifeq ($(BR2_PACKAGE_OPENSSL),y) > +EXIM_DEPENDENCIES += openssl > +define EXIM_USE_DEFAULT_CONFIG_FILE_OPENSSL > + $(call exim-config-change,SUPPORT_TLS,yes) > + $(call exim-config-change,TLS_LIBS,-lssl -lcrypto) I would prefer we use pkg-config. From doc/spec.txt: If you have pkg-config available, then instead you can just use: SUPPORT_TLS=yes USE_OPENSSL_PC=openssl Of course, you'll have to add host-pkgconf to exim's dependencies. Regards, Yann E. MORIN. > +endef > +endif > + > # this specific toolchain lacks libnsl > ifeq ($(BR2_TOOLCHAIN_EXTERNAL_SYNOPSYS_ARC_2014_12),y) > define EXIM_REMOVE_LIBNSL_FROM_MAKEFILE > @@ -89,6 +97,7 @@ define EXIM_CONFIGURE_CMDS > $(EXIM_USE_DEFAULT_CONFIG_FILE) > $(EXIM_USE_DEFAULT_CONFIG_FILE_DOVECOT) > $(EXIM_USE_DEFAULT_CONFIG_FILE_CLAMAV) > + $(EXIM_USE_DEFAULT_CONFIG_FILE_OPENSSL) > $(EXIM_CONFIGURE_TOOLCHAIN) > endef > endif # CUSTOM_CONFIG > -- > 1.7.10.4 > > _______________________________________________ > buildroot mailing list > buildroot at busybox.net > http://lists.busybox.net/mailman/listinfo/buildroot -- .-----------------.--------------------.------------------.--------------------. | Yann E. MORIN | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: | | +33 662 376 056 | Software Designer | \ / CAMPAIGN | ___ | | +33 223 225 172 `------------.-------: X AGAINST | \e/ There is no | | http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL | v conspiracy. | '------------------------------^-------^------------------^--------------------' ^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2015-07-15 10:00 UTC | newest] Thread overview: 4+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2015-04-11 18:01 [Buildroot] [PATCH 1/2] package/exim: Add optional OpenSSL support Bernd Kuhls 2015-04-11 18:01 ` [Buildroot] [PATCH 2/2] package/exim: Add optional libiconv support Bernd Kuhls 2015-07-15 10:00 ` Thomas Petazzoni 2015-04-12 9:48 ` [Buildroot] [PATCH 1/2] package/exim: Add optional OpenSSL support Yann E. MORIN
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox