Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH 1/1] package/nodejs: fix build error without OpenSSL support
@ 2014-11-15 21:32 Jörg Krause
  2014-11-16 11:55 ` Thomas Petazzoni
  0 siblings, 1 reply; 2+ messages in thread
From: Jörg Krause @ 2014-11-15 21:32 UTC (permalink / raw)
  To: buildroot

Version 0.10.33 of nodejs introduced a bug which prevents us from building
nodejs without OpenSSL support. The bug is reported upstream:
https://github.com/joyent/node/issues/8676

This bug caused some build errors:
  * http://autobuild.buildroot.net/results/0bf/0bf17bf710db051d491123482c90f2f72810804b/
  * http://autobuild.buildroot.net/results/e1f/e1fb34818ff1167aa008b4011befb9fd14c81293/

and more...

nodejs can be build with shared linking to an external OpenSSL library (by
setting `--shared-openssl`) or with static linking to the bundled OpenSSL
library.

With this patch nodejs is build with static linking to the bundled OpenSSL
library in case no OpenSSL package is selected.

Signed-off-by: J?rg Krause <jkrause@posteo.de>
---
 package/nodejs/nodejs.mk | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/package/nodejs/nodejs.mk b/package/nodejs/nodejs.mk
index 32e19b7..080bc68 100644
--- a/package/nodejs/nodejs.mk
+++ b/package/nodejs/nodejs.mk
@@ -76,7 +76,7 @@ define NODEJS_CONFIGURE_CMDS
 		--without-snapshot \
 		--shared-zlib \
 		$(if $(BR2_PACKAGE_OPENSSL),--shared-openssl,\
-			--without-ssl --without-ssl2 --without-ssl3) \
+			--without-ssl2 --without-ssl3) \
 		$(if $(BR2_PACKAGE_NODEJS_NPM),,--without-npm) \
 		--without-dtrace \
 		--without-etw \
-- 
2.1.3

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

* [Buildroot] [PATCH 1/1] package/nodejs: fix build error without OpenSSL support
  2014-11-15 21:32 [Buildroot] [PATCH 1/1] package/nodejs: fix build error without OpenSSL support Jörg Krause
@ 2014-11-16 11:55 ` Thomas Petazzoni
  0 siblings, 0 replies; 2+ messages in thread
From: Thomas Petazzoni @ 2014-11-16 11:55 UTC (permalink / raw)
  To: buildroot

Dear J?rg Krause,

On Sat, 15 Nov 2014 22:32:53 +0100, J?rg Krause wrote:
> Version 0.10.33 of nodejs introduced a bug which prevents us from building
> nodejs without OpenSSL support. The bug is reported upstream:
> https://github.com/joyent/node/issues/8676
> 
> This bug caused some build errors:
>   * http://autobuild.buildroot.net/results/0bf/0bf17bf710db051d491123482c90f2f72810804b/
>   * http://autobuild.buildroot.net/results/e1f/e1fb34818ff1167aa008b4011befb9fd14c81293/
> 
> and more...
> 
> nodejs can be build with shared linking to an external OpenSSL library (by
> setting `--shared-openssl`) or with static linking to the bundled OpenSSL
> library.
> 
> With this patch nodejs is build with static linking to the bundled OpenSSL
> library in case no OpenSSL package is selected.

I don't think this is the right fix. We don't want to use the bundled
OpenSSL library, that's contrary to what we do in the rest of Buildroot.
The proper fixes are either fixing the bug that prevents nodejs from
building without OpenSSL, or make nodejs select unconditionally OpenSSL.

Best regards,

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

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

end of thread, other threads:[~2014-11-16 11:55 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-11-15 21:32 [Buildroot] [PATCH 1/1] package/nodejs: fix build error without OpenSSL support Jörg Krause
2014-11-16 11:55 ` Thomas Petazzoni

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox