summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFrancois Perrad <fperrad@gmail.com>2013-09-20 09:04:39 (GMT)
committer Peter Korsgaard <jacmet@sunsite.dk>2013-09-20 13:10:56 (GMT)
commitc958658288c4f2754981be4524ac9dad4706b3a0 (patch)
treea9d3d01b42d4635eb05eac34cad117880f554933
parent8ccbca218ed17945a07e585abcc8e28f7eb5b9dc (diff)
downloadbuildroot-c958658288c4f2754981be4524ac9dad4706b3a0.tar.gz
buildroot-c958658288c4f2754981be4524ac9dad4706b3a0.tar.bz2
luaposix: remove IPv6 constraint
Signed-off-by: Francois Perrad <francois.perrad@gadz.org> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
-rw-r--r--package/luaposix/Config.in3
-rw-r--r--package/luaposix/luaposix-without-IPv6.patch55
2 files changed, 55 insertions, 3 deletions
diff --git a/package/luaposix/Config.in b/package/luaposix/Config.in
index beae8e4..922fd9e 100644
--- a/package/luaposix/Config.in
+++ b/package/luaposix/Config.in
@@ -1,6 +1,5 @@
config BR2_PACKAGE_LUAPOSIX
bool "luaposix"
- depends on BR2_INET_IPV6
select BR2_PACKAGE_LUABITOP if BR2_PACKAGE_LUA
# LuaBitOp is already included in LuaJIT
help
@@ -13,5 +12,3 @@ config BR2_PACKAGE_LUAPOSIX
https://github.com/luaposix/luaposix
-comment "luaposix requires a toolchain with IPv6 support"
- depends on !BR2_INET_IPV6
diff --git a/package/luaposix/luaposix-without-IPv6.patch b/package/luaposix/luaposix-without-IPv6.patch
new file mode 100644
index 0000000..f187882
--- /dev/null
+++ b/package/luaposix/luaposix-without-IPv6.patch
@@ -0,0 +1,55 @@
+fix without IPv6
+
+see https://github.com/luaposix/luaposix/pull/117
+
+Signed-off-by: Francois Perrad <francois.perrad@gadz.org>
+
+Index: b/ext/posix/posix.c
+===================================================================
+--- a/ext/posix/posix.c
++++ b/ext/posix/posix.c
+@@ -3637,6 +3637,7 @@
+ break;
+ }
+ break;
++#if defined(IPV6_JOIN_GROUP) && defined(IPV6_LEAVE_GROUP)
+ case IPPROTO_IPV6:
+ switch(optname) {
+ case IPV6_JOIN_GROUP:
+@@ -3650,6 +3651,7 @@
+ break;
+ }
+ break;
++#endif
+ case IPPROTO_TCP:
+ switch(optname) {
+ default:
+@@ -4697,13 +4699,27 @@
+ MENTRY( AI_V4MAPPED );
+ MENTRY( AI_ALL );
+ MENTRY( AI_ADDRCONFIG );
++#endif
+
++#ifdef IPV6_JOIN_GROUP
+ MENTRY( IPV6_JOIN_GROUP );
++#endif
++#ifdef IPV6_LEAVE_GROUP
+ MENTRY( IPV6_LEAVE_GROUP );
++#endif
++#ifdef IPV6_MULTICAST_HOPS
+ MENTRY( IPV6_MULTICAST_HOPS );
++#endif
++#ifdef IPV6_MULTICAST_IF
+ MENTRY( IPV6_MULTICAST_IF );
++#endif
++#ifdef IPV6_MULTICAST_LOOP
+ MENTRY( IPV6_MULTICAST_LOOP );
++#endif
++#ifdef IPV6_UNICAST_HOPS
+ MENTRY( IPV6_UNICAST_HOPS );
++#endif
++#ifdef IPV6_V6ONLY
+ MENTRY( IPV6_V6ONLY );
+ #endif
+ #undef MENTRY
+