Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH 1/1] package/socat: fix musl build
@ 2016-01-24 11:58 Bernd Kuhls
  2016-01-26 21:43 ` Thomas Petazzoni
  0 siblings, 1 reply; 2+ messages in thread
From: Bernd Kuhls @ 2016-01-24 11:58 UTC (permalink / raw)
  To: buildroot

Fixes
http://autobuild.buildroot.net/results/d6e/d6e6f42450c8ad2c54b61d0950b6823f18628bc6/

Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
---
 package/socat/0002-musl.patch           | 18 ++++++++++++++++++
 package/socat/0003-netdb-internal.patch | 20 ++++++++++++++++++++
 2 files changed, 38 insertions(+)
 create mode 100644 package/socat/0002-musl.patch
 create mode 100644 package/socat/0003-netdb-internal.patch

diff --git a/package/socat/0002-musl.patch b/package/socat/0002-musl.patch
new file mode 100644
index 0000000..f2b368d
--- /dev/null
+++ b/package/socat/0002-musl.patch
@@ -0,0 +1,18 @@
+Fix musl build
+
+Downloaded from
+http://git.alpinelinux.org/cgit/aports/tree/main/socat/use-linux-headers.patch
+
+Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
+
+--- socat-1.7.2.4.orig/sysincludes.h
++++ socat-1.7.2.4/sysincludes.h
+@@ -134,7 +134,7 @@
+ #include <netpacket/packet.h>
+ #endif
+ #if HAVE_NETINET_IF_ETHER_H
+-#include <netinet/if_ether.h>
++#include <linux/if_ether.h>
+ #endif
+ #if HAVE_LINUX_IF_TUN_H
+ #include <linux/if_tun.h>
diff --git a/package/socat/0003-netdb-internal.patch b/package/socat/0003-netdb-internal.patch
new file mode 100644
index 0000000..44bd65f
--- /dev/null
+++ b/package/socat/0003-netdb-internal.patch
@@ -0,0 +1,20 @@
+Fix musl build
+
+Downloaded from
+http://git.alpinelinux.org/cgit/aports/tree/main/socat/netdb-internal.patch
+
+Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
+
+--- socat-1.7.2.4.orig/compat.h
++++ socat-1.7.2.4/compat.h
+@@ -656,6 +656,10 @@
+ #  define NETDB_INTERNAL h_NETDB_INTERNAL
+ #endif
+ 
++#if !defined(NETDB_INTERNAL)
++#  define NETDB_INTERNAL (-1)
++#endif
++
+ #ifndef INET_ADDRSTRLEN
+ #  define INET_ADDRSTRLEN sizeof(struct sockaddr_in)
+ #endif
-- 
2.7.0.rc3

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

* [Buildroot] [PATCH 1/1] package/socat: fix musl build
  2016-01-24 11:58 [Buildroot] [PATCH 1/1] package/socat: fix musl build Bernd Kuhls
@ 2016-01-26 21:43 ` Thomas Petazzoni
  0 siblings, 0 replies; 2+ messages in thread
From: Thomas Petazzoni @ 2016-01-26 21:43 UTC (permalink / raw)
  To: buildroot

Bernd,

On Sun, 24 Jan 2016 12:58:24 +0100, Bernd Kuhls wrote:

> +--- socat-1.7.2.4.orig/sysincludes.h
> ++++ socat-1.7.2.4/sysincludes.h
> +@@ -134,7 +134,7 @@
> + #include <netpacket/packet.h>
> + #endif
> + #if HAVE_NETINET_IF_ETHER_H
> +-#include <netinet/if_ether.h>
> ++#include <linux/if_ether.h>

This looks wrong: the configure check now verifies if
<netinet/if_ether.h> exists, if that's the case,
HAVE_NETINET_IF_ETHER_H is defined, but the code includes
<linux/if_ether.h> ? Not good.

> diff --git a/package/socat/0003-netdb-internal.patch b/package/socat/0003-netdb-internal.patch
> new file mode 100644
> index 0000000..44bd65f
> --- /dev/null
> +++ b/package/socat/0003-netdb-internal.patch
> @@ -0,0 +1,20 @@
> +Fix musl build
> +
> +Downloaded from
> +http://git.alpinelinux.org/cgit/aports/tree/main/socat/netdb-internal.patch
> +
> +Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
> +
> +--- socat-1.7.2.4.orig/compat.h
> ++++ socat-1.7.2.4/compat.h
> +@@ -656,6 +656,10 @@
> + #  define NETDB_INTERNAL h_NETDB_INTERNAL
> + #endif
> + 
> ++#if !defined(NETDB_INTERNAL)
> ++#  define NETDB_INTERNAL (-1)
> ++#endif

This also looks suspicious, and at the very least needs some proper
patch description.

Thanks,

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:[~2016-01-26 21:43 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-01-24 11:58 [Buildroot] [PATCH 1/1] package/socat: fix musl build Bernd Kuhls
2016-01-26 21:43 ` Thomas Petazzoni

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