0016-ebtables-remove-musl-build-fix-it-breaks-ebtables-on-64bit-targets.patch 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. From: Matthias Schiffer <mschiffer@universe-factory.net>
  2. Date: Thu, 9 Jul 2015 01:04:52 +0200
  3. Subject: ebtables: remove musl build fix, it breaks ebtables on 64bit targets
  4. diff --git a/package/network/utils/ebtables/Makefile b/package/network/utils/ebtables/Makefile
  5. index 4f6d7f5..d3d714f 100644
  6. --- a/package/network/utils/ebtables/Makefile
  7. +++ b/package/network/utils/ebtables/Makefile
  8. @@ -49,7 +49,7 @@ endef
  9. MAKE_VARS += EXT_LIBSI="$(LIBGCC_S)"
  10. MAKE_FLAGS += \
  11. - CFLAGS="$(TARGET_CFLAGS)" \
  12. + CFLAGS="$(TARGET_CFLAGS) -g" \
  13. LIBDIR="/usr/lib/ebtables"
  14. define Package/ebtables/install
  15. diff --git a/package/network/utils/ebtables/patches/100-musl_fix.patch b/package/network/utils/ebtables/patches/100-musl_fix.patch
  16. deleted file mode 100644
  17. index 462fea6..0000000
  18. --- a/package/network/utils/ebtables/patches/100-musl_fix.patch
  19. +++ /dev/null
  20. @@ -1,50 +0,0 @@
  21. ---- a/extensions/ebt_among.c
  22. -+++ b/extensions/ebt_among.c
  23. -@@ -13,7 +13,6 @@
  24. - #include <ctype.h>
  25. - #include <unistd.h>
  26. - #include "../include/ebtables_u.h"
  27. --#include <netinet/ether.h>
  28. - #include "../include/ethernetdb.h"
  29. - #include <linux/if_ether.h>
  30. - #include <linux/netfilter_bridge/ebt_among.h>
  31. ---- a/extensions/ebt_arpreply.c
  32. -+++ b/extensions/ebt_arpreply.c
  33. -@@ -12,7 +12,6 @@
  34. - #include <string.h>
  35. - #include <getopt.h>
  36. - #include "../include/ebtables_u.h"
  37. --#include <netinet/ether.h>
  38. - #include <linux/netfilter_bridge/ebt_arpreply.h>
  39. -
  40. - static int mac_supplied;
  41. ---- a/extensions/ebt_nat.c
  42. -+++ b/extensions/ebt_nat.c
  43. -@@ -11,7 +11,6 @@
  44. - #include <string.h>
  45. - #include <getopt.h>
  46. - #include "../include/ebtables_u.h"
  47. --#include <netinet/ether.h>
  48. - #include <linux/netfilter_bridge/ebt_nat.h>
  49. -
  50. - static int to_source_supplied, to_dest_supplied;
  51. ---- a/useful_functions.c
  52. -+++ b/useful_functions.c
  53. -@@ -25,7 +25,6 @@
  54. - #include "include/ebtables_u.h"
  55. - #include "include/ethernetdb.h"
  56. - #include <stdio.h>
  57. --#include <netinet/ether.h>
  58. - #include <string.h>
  59. - #include <stdlib.h>
  60. - #include <getopt.h>
  61. ---- a/include/ebtables_u.h
  62. -+++ b/include/ebtables_u.h
  63. -@@ -23,6 +23,7 @@
  64. -
  65. - #ifndef EBTABLES_U_H
  66. - #define EBTABLES_U_H
  67. -+#include <sys/types.h>
  68. - #include <netinet/in.h>
  69. - #include <linux/netfilter_bridge/ebtables.h>
  70. - #include <linux/netfilter/x_tables.h>