Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH] package/erlang: build host erlang with ssl support to match target
@ 2014-08-13 22:27 Yann E. MORIN
  2014-08-14 14:43 ` Frank Hunleth
  2014-08-15  8:36 ` Thomas Petazzoni
  0 siblings, 2 replies; 7+ messages in thread
From: Yann E. MORIN @ 2014-08-13 22:27 UTC (permalink / raw)
  To: buildroot

If the target erlang has SSL support, so shoud the host-erlang.

Suggested-by: Frank Hunleth <fhunleth@troodon-software.com>
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Cc: Frank Hunleth <fhunleth@troodon-software.com>
Cc: Johan Oudinet <johan.oudinet@gmail.com>

---
Note: I am not sure whether this is the correct solution, to match the
host SSL support to the target SSL support. I'll let the erlang experts
enhance that patch if need be. ;-)
---
 package/erlang/erlang.mk | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/package/erlang/erlang.mk b/package/erlang/erlang.mk
index 1278682..b7ff9c1 100644
--- a/package/erlang/erlang.mk
+++ b/package/erlang/erlang.mk
@@ -34,8 +34,11 @@ endif
 ifeq ($(BR2_PACKAGE_OPENSSL),y)
 ERLANG_CONF_OPT += --with-ssl
 ERLANG_DEPENDENCIES += openssl
+HOST_ERLANG_DEPENDENCIES += host-openssl
+HOST_ERLANG_CONF_OPT += --with-ssl=$(HOST_DIR)/usr
 else
 ERLANG_CONF_OPT += --without-ssl
+HOST_ERLANG_CONF_OPT += --without-ssl
 endif
 
 ifeq ($(BR2_PACKAGE_ZLIB),y)
-- 
1.9.1

^ permalink raw reply related	[flat|nested] 7+ messages in thread

* [Buildroot] [PATCH] package/erlang: build host erlang with ssl support to match target
  2014-08-13 22:27 [Buildroot] [PATCH] package/erlang: build host erlang with ssl support to match target Yann E. MORIN
@ 2014-08-14 14:43 ` Frank Hunleth
  2014-08-15  8:36 ` Thomas Petazzoni
  1 sibling, 0 replies; 7+ messages in thread
From: Frank Hunleth @ 2014-08-14 14:43 UTC (permalink / raw)
  To: buildroot

Yann,

On Wed, Aug 13, 2014 at 6:27 PM, Yann E. MORIN <yann.morin.1998@free.fr> wrote:
> If the target erlang has SSL support, so shoud the host-erlang.

This patch makes sense to me. I tried it in my setup to make sure that
everything still works fine and that host-erlang is really using
host-openssl. It looks good, so.

Tested-by: Frank Hunleth <fhunleth@troodon-software.com>

Thanks,
Frank

>
> Suggested-by: Frank Hunleth <fhunleth@troodon-software.com>
> Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
> Cc: Frank Hunleth <fhunleth@troodon-software.com>
> Cc: Johan Oudinet <johan.oudinet@gmail.com>
>
> ---
> Note: I am not sure whether this is the correct solution, to match the
> host SSL support to the target SSL support. I'll let the erlang experts
> enhance that patch if need be. ;-)
> ---
>  package/erlang/erlang.mk | 3 +++
>  1 file changed, 3 insertions(+)
>
> diff --git a/package/erlang/erlang.mk b/package/erlang/erlang.mk
> index 1278682..b7ff9c1 100644
> --- a/package/erlang/erlang.mk
> +++ b/package/erlang/erlang.mk
> @@ -34,8 +34,11 @@ endif
>  ifeq ($(BR2_PACKAGE_OPENSSL),y)
>  ERLANG_CONF_OPT += --with-ssl
>  ERLANG_DEPENDENCIES += openssl
> +HOST_ERLANG_DEPENDENCIES += host-openssl
> +HOST_ERLANG_CONF_OPT += --with-ssl=$(HOST_DIR)/usr
>  else
>  ERLANG_CONF_OPT += --without-ssl
> +HOST_ERLANG_CONF_OPT += --without-ssl
>  endif
>
>  ifeq ($(BR2_PACKAGE_ZLIB),y)
> --
> 1.9.1
>



-- 
Frank Hunleth
Troodon Software LLC
Embedded Software Development
http://troodon-software.com/

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Buildroot] [PATCH] package/erlang: build host erlang with ssl support to match target
  2014-08-13 22:27 [Buildroot] [PATCH] package/erlang: build host erlang with ssl support to match target Yann E. MORIN
  2014-08-14 14:43 ` Frank Hunleth
@ 2014-08-15  8:36 ` Thomas Petazzoni
  2014-08-15 12:33   ` Frank Hunleth
  1 sibling, 1 reply; 7+ messages in thread
From: Thomas Petazzoni @ 2014-08-15  8:36 UTC (permalink / raw)
  To: buildroot

Dear Yann E. MORIN,

On Thu, 14 Aug 2014 00:27:07 +0200, Yann E. MORIN wrote:

> If the target erlang has SSL support, so shoud the host-erlang.

Why?

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

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Buildroot] [PATCH] package/erlang: build host erlang with ssl support to match target
  2014-08-15  8:36 ` Thomas Petazzoni
@ 2014-08-15 12:33   ` Frank Hunleth
  2014-08-15 15:43     ` Yann E. MORIN
  0 siblings, 1 reply; 7+ messages in thread
From: Frank Hunleth @ 2014-08-15 12:33 UTC (permalink / raw)
  To: buildroot

Hi Thomas,

On Fri, Aug 15, 2014 at 4:36 AM, Thomas Petazzoni
<thomas.petazzoni@free-electrons.com> wrote:
> Dear Yann E. MORIN,
>
> On Thu, 14 Aug 2014 00:27:07 +0200, Yann E. MORIN wrote:
>
>> If the target erlang has SSL support, so shoud the host-erlang.
>
> Why?

After more thought, I think that the reasoning should be that the
common Erlang build tools reference openssl. (openssl is used for
Erlang's crypto support, so the moment you run code that computes a
SHA1, you need it.) I'd be fine with host-erlang always having ssl
enabled since the error message you get when you don't have it enabled
is not obvious to anyone who doesn't use Erlang.

Frank

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Buildroot] [PATCH] package/erlang: build host erlang with ssl support to match target
  2014-08-15 12:33   ` Frank Hunleth
@ 2014-08-15 15:43     ` Yann E. MORIN
  2014-08-15 16:29       ` Thomas Petazzoni
  0 siblings, 1 reply; 7+ messages in thread
From: Yann E. MORIN @ 2014-08-15 15:43 UTC (permalink / raw)
  To: buildroot

Frank, All,

On 2014-08-15 08:33 -0400, Frank Hunleth spake thusly:
> On Fri, Aug 15, 2014 at 4:36 AM, Thomas Petazzoni
> <thomas.petazzoni@free-electrons.com> wrote:
> > Dear Yann E. MORIN,
> >
> > On Thu, 14 Aug 2014 00:27:07 +0200, Yann E. MORIN wrote:
> >
> >> If the target erlang has SSL support, so shoud the host-erlang.
> >
> > Why?
> 
> After more thought, I think that the reasoning should be that the
> common Erlang build tools reference openssl. (openssl is used for
> Erlang's crypto support, so the moment you run code that computes a
> SHA1, you need it.) I'd be fine with host-erlang always having ssl
> enabled since the error message you get when you don't have it enabled
> is not obvious to anyone who doesn't use Erlang.

Yes, after giving it more thought, and your input above, I believe we
should always build host-erlang with SSL support.

I'll update my patch accordingly.

Thanks! :-)

Regards,
Yann E. MORIN.

-- 
.-----------------.--------------------.------------------.--------------------.
|  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] 7+ messages in thread

* [Buildroot] [PATCH] package/erlang: build host erlang with ssl support to match target
  2014-08-15 15:43     ` Yann E. MORIN
@ 2014-08-15 16:29       ` Thomas Petazzoni
  2014-08-15 16:44         ` Yann E. MORIN
  0 siblings, 1 reply; 7+ messages in thread
From: Thomas Petazzoni @ 2014-08-15 16:29 UTC (permalink / raw)
  To: buildroot

Dear Yann E. MORIN,

On Fri, 15 Aug 2014 17:43:44 +0200, Yann E. MORIN wrote:

> > After more thought, I think that the reasoning should be that the
> > common Erlang build tools reference openssl. (openssl is used for
> > Erlang's crypto support, so the moment you run code that computes a
> > SHA1, you need it.) I'd be fine with host-erlang always having ssl
> > enabled since the error message you get when you don't have it enabled
> > is not obvious to anyone who doesn't use Erlang.
> 
> Yes, after giving it more thought, and your input above, I believe we
> should always build host-erlang with SSL support.
> 
> I'll update my patch accordingly.

Can you include in the commit log the rationale for this change?

Thanks,

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

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Buildroot] [PATCH] package/erlang: build host erlang with ssl support to match target
  2014-08-15 16:29       ` Thomas Petazzoni
@ 2014-08-15 16:44         ` Yann E. MORIN
  0 siblings, 0 replies; 7+ messages in thread
From: Yann E. MORIN @ 2014-08-15 16:44 UTC (permalink / raw)
  To: buildroot

Thomas, All,

On 2014-08-15 18:29 +0200, Thomas Petazzoni spake thusly:
> On Fri, 15 Aug 2014 17:43:44 +0200, Yann E. MORIN wrote:
> 
> > > After more thought, I think that the reasoning should be that the
> > > common Erlang build tools reference openssl. (openssl is used for
> > > Erlang's crypto support, so the moment you run code that computes a
> > > SHA1, you need it.) I'd be fine with host-erlang always having ssl
> > > enabled since the error message you get when you don't have it enabled
> > > is not obvious to anyone who doesn't use Erlang.
> > 
> > Yes, after giving it more thought, and your input above, I believe we
> > should always build host-erlang with SSL support.
> > 
> > I'll update my patch accordingly.
> 
> Can you include in the commit log the rationale for this change?

Err.. I think I did, didn't I?
    http://patchwork.ozlabs.org/patch/380305/

;-)

Regards,
Yann E. MORIN.

-- 
.-----------------.--------------------.------------------.--------------------.
|  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] 7+ messages in thread

end of thread, other threads:[~2014-08-15 16:44 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-08-13 22:27 [Buildroot] [PATCH] package/erlang: build host erlang with ssl support to match target Yann E. MORIN
2014-08-14 14:43 ` Frank Hunleth
2014-08-15  8:36 ` Thomas Petazzoni
2014-08-15 12:33   ` Frank Hunleth
2014-08-15 15:43     ` Yann E. MORIN
2014-08-15 16:29       ` Thomas Petazzoni
2014-08-15 16:44         ` 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