* [Buildroot] [PATCH] libgsasl: fix auto dependencies
@ 2015-11-26 17:47 Gustavo Zacarias
2015-11-26 18:22 ` Thomas Petazzoni
2015-11-26 20:21 ` Peter Korsgaard
0 siblings, 2 replies; 4+ messages in thread
From: Gustavo Zacarias @ 2015-11-26 17:47 UTC (permalink / raw)
To: buildroot
IDN can be picked up from the distro installation so use a prefix when
it's available or otherwise just disable it, fixes:
http://autobuild.buildroot.org/results/5d9/5d9baf528c47c5167ec8d2a6941cb06b4ca761ca/
Also disable libgcrypt support which wasn't accounted for and doesn't
seem to work either to possibly avoid the same problem.
Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
---
package/libgsasl/libgsasl.mk | 10 +++++++++-
1 file changed, 9 insertions(+), 1 deletion(-)
diff --git a/package/libgsasl/libgsasl.mk b/package/libgsasl/libgsasl.mk
index f2660ca..00ce8e0 100644
--- a/package/libgsasl/libgsasl.mk
+++ b/package/libgsasl/libgsasl.mk
@@ -9,6 +9,14 @@ LIBGSASL_SITE = $(BR2_GNU_MIRROR)/gsasl
LIBGSASL_LICENSE = LGPLv2.1+ (library), GPLv3+ (programs)
LIBGSASL_LICENSE_FILES = README COPYING.LIB COPYING
LIBGSASL_INSTALL_STAGING = YES
-LIBGSASL_DEPENDENCIES = $(if $(BR2_PACKAGE_LIBIDN),libidn)
+# It doesn't seem to build with our libgcrypt so better be safe
+LIBGSASL_CONF_OPTS = --without-libgcrypt
+
+ifeq ($(BR2_PACKAGE_LIBIDN),y)
+LIBGSASL_CONF_OPTS += --with-libidn-prefix=$(STAGING_DIR)/usr
+LIBGSASL_DEPENDENCIES += libidn
+else
+LIBGSASL_CONF_OPTS += --without-stringprep
+endif
$(eval $(autotools-package))
--
2.4.10
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [Buildroot] [PATCH] libgsasl: fix auto dependencies
2015-11-26 17:47 [Buildroot] [PATCH] libgsasl: fix auto dependencies Gustavo Zacarias
@ 2015-11-26 18:22 ` Thomas Petazzoni
2015-11-26 18:23 ` Gustavo Zacarias
2015-11-26 20:21 ` Peter Korsgaard
1 sibling, 1 reply; 4+ messages in thread
From: Thomas Petazzoni @ 2015-11-26 18:22 UTC (permalink / raw)
To: buildroot
Gustavo,
On Thu, 26 Nov 2015 14:47:01 -0300, Gustavo Zacarias wrote:
> IDN can be picked up from the distro installation so use a prefix when
> it's available or otherwise just disable it, fixes:
> http://autobuild.buildroot.org/results/5d9/5d9baf528c47c5167ec8d2a6941cb06b4ca761ca/
>
> Also disable libgcrypt support which wasn't accounted for and doesn't
> seem to work either to possibly avoid the same problem.
>
> Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
> ---
> package/libgsasl/libgsasl.mk | 10 +++++++++-
> 1 file changed, 9 insertions(+), 1 deletion(-)
>
> diff --git a/package/libgsasl/libgsasl.mk b/package/libgsasl/libgsasl.mk
> index f2660ca..00ce8e0 100644
> --- a/package/libgsasl/libgsasl.mk
> +++ b/package/libgsasl/libgsasl.mk
> @@ -9,6 +9,14 @@ LIBGSASL_SITE = $(BR2_GNU_MIRROR)/gsasl
> LIBGSASL_LICENSE = LGPLv2.1+ (library), GPLv3+ (programs)
> LIBGSASL_LICENSE_FILES = README COPYING.LIB COPYING
> LIBGSASL_INSTALL_STAGING = YES
> -LIBGSASL_DEPENDENCIES = $(if $(BR2_PACKAGE_LIBIDN),libidn)
> +# It doesn't seem to build with our libgcrypt so better be safe
> +LIBGSASL_CONF_OPTS = --without-libgcrypt
> +
> +ifeq ($(BR2_PACKAGE_LIBIDN),y)
> +LIBGSASL_CONF_OPTS += --with-libidn-prefix=$(STAGING_DIR)/usr
> +LIBGSASL_DEPENDENCIES += libidn
> +else
> +LIBGSASL_CONF_OPTS += --without-stringprep
> +endif
It is not immediately clear why --without-stringprep is used here
instead of --without-libidn, so this probably warrants a comment in the
code or at least in the commit log.
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] libgsasl: fix auto dependencies
2015-11-26 18:22 ` Thomas Petazzoni
@ 2015-11-26 18:23 ` Gustavo Zacarias
0 siblings, 0 replies; 4+ messages in thread
From: Gustavo Zacarias @ 2015-11-26 18:23 UTC (permalink / raw)
To: buildroot
On 26/11/15 15:22, Thomas Petazzoni wrote:
> It is not immediately clear why --without-stringprep is used here
> instead of --without-libidn, so this probably warrants a comment in the
> code or at least in the commit log.
Hi, the usual, upstream are inconsistent morons ;)
Regards.
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Buildroot] [PATCH] libgsasl: fix auto dependencies
2015-11-26 17:47 [Buildroot] [PATCH] libgsasl: fix auto dependencies Gustavo Zacarias
2015-11-26 18:22 ` Thomas Petazzoni
@ 2015-11-26 20:21 ` Peter Korsgaard
1 sibling, 0 replies; 4+ messages in thread
From: Peter Korsgaard @ 2015-11-26 20:21 UTC (permalink / raw)
To: buildroot
>>>>> "Gustavo" == Gustavo Zacarias <gustavo@zacarias.com.ar> writes:
> IDN can be picked up from the distro installation so use a prefix when
> it's available or otherwise just disable it, fixes:
> http://autobuild.buildroot.org/results/5d9/5d9baf528c47c5167ec8d2a6941cb06b4ca761ca/
> Also disable libgcrypt support which wasn't accounted for and doesn't
> seem to work either to possibly avoid the same problem.
> Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
Committed, thanks.
--
Bye, Peter Korsgaard
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2015-11-26 20:21 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-11-26 17:47 [Buildroot] [PATCH] libgsasl: fix auto dependencies Gustavo Zacarias
2015-11-26 18:22 ` Thomas Petazzoni
2015-11-26 18:23 ` Gustavo Zacarias
2015-11-26 20:21 ` Peter Korsgaard
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox