All of lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH 1/2] package/softether: Fix build error on ARC
@ 2015-04-02 19:59 Bernd Kuhls
  2015-04-02 19:59 ` [Buildroot] [PATCH 2/2] package/softether: bump version Bernd Kuhls
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Bernd Kuhls @ 2015-04-02 19:59 UTC (permalink / raw)
  To: buildroot

ifaddrs.h is not included in the toolchain, this patch informs softether about this.

Fixes
http://autobuild.buildroot.net/results/199/19992951da34a703a476dc62ea92e12927c8a02d/
http://autobuild.buildroot.net/results/fa7/fa77579aa6502ef1d84976d355637513f38c39c9/
http://autobuild.buildroot.net/results/ec8/ec853d4b8d8e91d6d3cdb46bcc15a400d2fcd5d8/
http://autobuild.buildroot.net/results/e13/e13ee90bd15a7bba99b3c54de596c8fcb14e60c0/

Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
---
 package/softether/0007-arc.patch |   20 ++++++++++++++++++++
 1 file changed, 20 insertions(+)
 create mode 100644 package/softether/0007-arc.patch

diff --git a/package/softether/0007-arc.patch b/package/softether/0007-arc.patch
new file mode 100644
index 0000000..c2acd40
--- /dev/null
+++ b/package/softether/0007-arc.patch
@@ -0,0 +1,20 @@
+Fix ARC build
+
+../../src/Mayaqua/Mayaqua.h:289:21: fatal error: ifaddrs.h: No such file or directory
+
+Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
+
+--- a/src/Mayaqua/Mayaqua.h.org	2015-04-02 21:52:44.911083674 +0200
++++ b/src/Mayaqua/Mayaqua.h	2015-04-02 21:51:52.075081069 +0200
+@@ -235,9 +235,11 @@
+ #ifdef	OS_UNIX
+ #ifndef	UNIX_SOLARIS
+ #ifndef	CPU_SH4
++#ifndef	__arc__
+ // Getifaddrs system call is supported on UNIX other than Solaris.
+ // However, it is not supported also by the Linux on SH4 CPU
+ #define	MAYAQUA_SUPPORTS_GETIFADDRS
++#endif	// __arc__
+ #endif	// CPU_SH4
+ #endif	// UNIX_SOLARIS
+ #endif	// OS_UNIX
-- 
1.7.10.4

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

* [Buildroot] [PATCH 2/2] package/softether: bump version
  2015-04-02 19:59 [Buildroot] [PATCH 1/2] package/softether: Fix build error on ARC Bernd Kuhls
@ 2015-04-02 19:59 ` Bernd Kuhls
  2015-04-03 12:07   ` Thomas Petazzoni
  2015-04-02 21:10 ` [Buildroot] [PATCH 1/2] package/softether: Fix build error on ARC Peter Korsgaard
  2015-04-03 12:04 ` Thomas Petazzoni
  2 siblings, 1 reply; 5+ messages in thread
From: Bernd Kuhls @ 2015-04-02 19:59 UTC (permalink / raw)
  To: buildroot


Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
---
 package/softether/softether.mk |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/package/softether/softether.mk b/package/softether/softether.mk
index d73d33c..17a450f 100644
--- a/package/softether/softether.mk
+++ b/package/softether/softether.mk
@@ -4,7 +4,7 @@
 #
 ################################################################################
 
-SOFTETHER_VERSION = 64fd19e6f849247e3daee765ad278c6bf072afcb
+SOFTETHER_VERSION = 18b120e5f747a84d26302ec706f6c1c91d642ace
 SOFTETHER_SITE = $(call github,SoftEtherVPN,SoftEtherVPN,$(SOFTETHER_VERSION))
 SOFTETHER_PATCH = \
 	https://github.com/dajhorn/SoftEtherVPN/commit/c5e5d7e93c6f3302adf5821c29c4efdb7630e418.patch \
-- 
1.7.10.4

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

* [Buildroot] [PATCH 1/2] package/softether: Fix build error on ARC
  2015-04-02 19:59 [Buildroot] [PATCH 1/2] package/softether: Fix build error on ARC Bernd Kuhls
  2015-04-02 19:59 ` [Buildroot] [PATCH 2/2] package/softether: bump version Bernd Kuhls
@ 2015-04-02 21:10 ` Peter Korsgaard
  2015-04-03 12:04 ` Thomas Petazzoni
  2 siblings, 0 replies; 5+ messages in thread
From: Peter Korsgaard @ 2015-04-02 21:10 UTC (permalink / raw)
  To: buildroot

>>>>> "Bernd" == Bernd Kuhls <bernd.kuhls@t-online.de> writes:

 > ifaddrs.h is not included in the toolchain, this patch informs softether about this.
 > Fixes
 > http://autobuild.buildroot.net/results/199/19992951da34a703a476dc62ea92e12927c8a02d/
 > http://autobuild.buildroot.net/results/fa7/fa77579aa6502ef1d84976d355637513f38c39c9/
 > http://autobuild.buildroot.net/results/ec8/ec853d4b8d8e91d6d3cdb46bcc15a400d2fcd5d8/
 > http://autobuild.buildroot.net/results/e13/e13ee90bd15a7bba99b3c54de596c8fcb14e60c0/

 > Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>

Hmm, I wanted to apply both patches, but the patch doesn't seem to apply
(dos/unix newlines issue perhaps?)

Applying 0007-arc.patch using patch: 
patching file src/Mayaqua/Mayaqua.h
Hunk #1 FAILED at 235 (different line endings).
1 out of 1 hunk FAILED -- saving rejects to file src/Mayaqua/Mayaqua.h.rej
Patch failed!  Please fix 0007-arc.patch!

-- 
Bye, Peter Korsgaard

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

* [Buildroot] [PATCH 1/2] package/softether: Fix build error on ARC
  2015-04-02 19:59 [Buildroot] [PATCH 1/2] package/softether: Fix build error on ARC Bernd Kuhls
  2015-04-02 19:59 ` [Buildroot] [PATCH 2/2] package/softether: bump version Bernd Kuhls
  2015-04-02 21:10 ` [Buildroot] [PATCH 1/2] package/softether: Fix build error on ARC Peter Korsgaard
@ 2015-04-03 12:04 ` Thomas Petazzoni
  2 siblings, 0 replies; 5+ messages in thread
From: Thomas Petazzoni @ 2015-04-03 12:04 UTC (permalink / raw)
  To: buildroot

Dear Bernd Kuhls,

On Thu,  2 Apr 2015 21:59:18 +0200, Bernd Kuhls wrote:

> +--- a/src/Mayaqua/Mayaqua.h.org	2015-04-02 21:52:44.911083674 +0200
> ++++ b/src/Mayaqua/Mayaqua.h	2015-04-02 21:51:52.075081069 +0200
> +@@ -235,9 +235,11 @@
> + #ifdef	OS_UNIX
> + #ifndef	UNIX_SOLARIS
> + #ifndef	CPU_SH4
> ++#ifndef	__arc__

This is not the correct fix. The fact that the toolchain used in the
build tests that failed does not have ifaddrs support is completely
unrelated to the fact that it's an ARC toolchain.

It's simply because this specific toolchain is an external toolchain
that doesn't have the ifaddrs support. The internal ARC toolchain will
have ifaddrs support, and other external toolchains may not have it.

So the right fix is to actually test whether ifaddrs support is
available or not. I've pushed a fix that implements this (hopefully
correctly) :

  http://git.buildroot.net/buildroot/commit/?id=d9cf0a76db5e428692f2489901c9787b1fd30eee

Thanks,

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

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

* [Buildroot] [PATCH 2/2] package/softether: bump version
  2015-04-02 19:59 ` [Buildroot] [PATCH 2/2] package/softether: bump version Bernd Kuhls
@ 2015-04-03 12:07   ` Thomas Petazzoni
  0 siblings, 0 replies; 5+ messages in thread
From: Thomas Petazzoni @ 2015-04-03 12:07 UTC (permalink / raw)
  To: buildroot

Dear Bernd Kuhls,

On Thu,  2 Apr 2015 21:59:19 +0200, Bernd Kuhls wrote:
> 
> Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
> ---
>  package/softether/softether.mk |    2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)

Applied, thanks!

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

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

end of thread, other threads:[~2015-04-03 12:07 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-04-02 19:59 [Buildroot] [PATCH 1/2] package/softether: Fix build error on ARC Bernd Kuhls
2015-04-02 19:59 ` [Buildroot] [PATCH 2/2] package/softether: bump version Bernd Kuhls
2015-04-03 12:07   ` Thomas Petazzoni
2015-04-02 21:10 ` [Buildroot] [PATCH 1/2] package/softether: Fix build error on ARC Peter Korsgaard
2015-04-03 12:04 ` Thomas Petazzoni

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.