From: Daniel Dickinson <open...@daniel.thecshore.com>

Dante has an evil hack with a not very good justification (IMO)
and the hack causes dante builds to fail when using musl.

We simply discard the hack which allows compilation to succeed and
lets the libc work the way it was designed rather than trying to use
a hack because of disagreement with they implementation of libc.

Signed-off-by: Daniel Dickinson <open...@daniel.thecshore.com>
---
 .../210-fix-hack-that-fails-with-musl.patch        | 33 ++++++++++++++++++++++
 1 file changed, 33 insertions(+)
 create mode 100644 
package/network/utils/dante/patches/210-fix-hack-that-fails-with-musl.patch

diff --git 
a/package/network/utils/dante/patches/210-fix-hack-that-fails-with-musl.patch 
b/package/network/utils/dante/patches/210-fix-hack-that-fails-with-musl.patch
new file mode 100644
index 0000000..d48b497
--- /dev/null
+++ 
b/package/network/utils/dante/patches/210-fix-hack-that-fails-with-musl.patch
@@ -0,0 +1,33 @@
+Index: dante-1.2.2/include/osdep.h
+===================================================================
+--- dante-1.2.2.orig/include/osdep.h
++++ dante-1.2.2/include/osdep.h
+@@ -44,20 +44,6 @@
+ 
+ /* $Id: osdep.h,v 1.51.2.2 2010/05/24 16:38:23 karls Exp $ */
+ 
+-#if HAVE_LINUX_ECCENTRICITIES
+-/*
+- * XXX This is a hack. Avoid transparent sockaddr union used in Linux
+- *  to avoid the use of the union in the code. Mainly used in
+- *  interposition.c (also for CMSG_)
+- */
+-
+-#ifdef __GNUC__
+-#undef __GNUC__
+-#define __GNUC__ 0
+-#endif /* __GNUC__ */
+-
+-#endif /* HAVE_LINUX_ECCENTRICITIES */
+-
+ #include <sys/types.h>
+ #if HAVE_SYS_TIME_H
+ #include <sys/time.h>
+@@ -142,6 +128,7 @@
+ #include <strings.h>
+ #endif /* HAVE_STRINGS_H */
+ #include <string.h>
++
+ #include <syslog.h>
+ #if HAVE_LIBWRAP && HAVE_TCPD_H
+ #include <tcpd.h>
-- 
2.4.3
_______________________________________________
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel

Reply via email to