[libshairport] - add patch for fixing fallback from ipv6 to ipv4 (needed... #1573

Merged
merged 1 commit into from Oct 12, 2012
View
10 lib/libshairport/011_fix_ipv4_fallback.patch
@@ -0,0 +1,10 @@
+--- src/socketlib.c 2012-07-14 22:49:30.000000000 +0200
++++ src/socketlib.c 2012-10-08 21:55:51.000000000 +0200
+@@ -118,6 +118,7 @@
+
+ int tEnable = 1;
+ setsockopt(tSock, SOL_SOCKET, SO_REUSEADDR, &tEnable, sizeof (tEnable));
++ server_addr->ai_addr->sa_family = server_addr->ai_family; // ensure that server_addr has same famliy than the socket
+ if (bind(tSock, server_addr->ai_addr, server_addr->ai_addrlen) < 0)
+ {
+ close(tSock);
View
1 lib/libshairport/Makefile
@@ -46,6 +46,7 @@ $(SOURCE): $(TARBALLS_LOCATION)/$(ARCHIVE)
cd $(SOURCE); patch -p0 < ../008-add-missing-libs.patch
cd $(SOURCE); patch -p0 < ../009_fix_ipv6.patch
cd $(SOURCE); patch -p0 < ../010_handle_metadata.patch
+ cd $(SOURCE); patch -p0 < ../011_fix_ipv4_fallback.patch
cd $(SOURCE); autoreconf -vif
cd $(SOURCE); $(CONFIGURE)
View
10 tools/android/depends/libshairport/011_fix_ipv4_fallback.patch
@@ -0,0 +1,10 @@
+--- src/socketlib.c 2012-07-14 22:49:30.000000000 +0200
++++ src/socketlib.c 2012-10-08 21:55:51.000000000 +0200
+@@ -118,6 +118,7 @@
+
+ int tEnable = 1;
+ setsockopt(tSock, SOL_SOCKET, SO_REUSEADDR, &tEnable, sizeof (tEnable));
++ server_addr->ai_addr->sa_family = server_addr->ai_family; // ensure that server_addr has same famliy than the socket
+ if (bind(tSock, server_addr->ai_addr, server_addr->ai_addrlen) < 0)
+ {
+ close(tSock);
View
1 tools/android/depends/libshairport/Makefile
@@ -34,6 +34,7 @@ $(PLATFORM): $(TARBALLS_LOCATION)/$(ARCHIVE) $(DEPS)
cd $(PLATFORM); patch -p0 < ../008-add-missing-libs.patch
cd $(PLATFORM); patch -p0 < ../009_fix_ipv6.patch
cd $(PLATFORM); patch -p0 < ../010_handle_metadata.patch
+ cd $(PLATFORM); patch -p0 < ../011_fix_ipv4_fallback.patch
cd $(PLATFORM); patch -p0 < ../android.patch
cd $(PLATFORM); $(AUTORECONF) -vif
cd $(PLATFORM); $(CONFIGURE)
View
10 tools/darwin/depends/libshairport/011_fix_ipv4_fallback.patch
@@ -0,0 +1,10 @@
+--- src/socketlib.c 2012-07-14 22:49:30.000000000 +0200
++++ src/socketlib.c 2012-10-08 21:55:51.000000000 +0200
+@@ -118,6 +118,7 @@
+
+ int tEnable = 1;
+ setsockopt(tSock, SOL_SOCKET, SO_REUSEADDR, &tEnable, sizeof (tEnable));
++ server_addr->ai_addr->sa_family = server_addr->ai_family; // ensure that server_addr has same famliy than the socket
+ if (bind(tSock, server_addr->ai_addr, server_addr->ai_addrlen) < 0)
+ {
+ close(tSock);
View
1 tools/darwin/depends/libshairport/Makefile
@@ -32,6 +32,7 @@ $(SOURCE): $(TARBALLS_LOCATION)/$(ARCHIVE)
cd $(SOURCE); patch -p0 < ../008-add-missing-libs.patch
cd $(SOURCE); patch -p0 < ../009_fix_ipv6.patch
cd $(SOURCE); patch -p0 < ../010_handle_metadata.patch
+ cd $(SOURCE); patch -p0 < ../011_fix_ipv4_fallback.patch
cd $(SOURCE); autoreconf -vif
cd $(SOURCE); $(CONFIGURE)
View
10 tools/rbp/depends/libshairport/011_fix_ipv4_fallback.patch
@@ -0,0 +1,10 @@
+--- src/socketlib.c 2012-07-14 22:49:30.000000000 +0200
++++ src/socketlib.c 2012-10-08 21:55:51.000000000 +0200
+@@ -118,6 +118,7 @@
+
+ int tEnable = 1;
+ setsockopt(tSock, SOL_SOCKET, SO_REUSEADDR, &tEnable, sizeof (tEnable));
++ server_addr->ai_addr->sa_family = server_addr->ai_family; // ensure that server_addr has same famliy than the socket
+ if (bind(tSock, server_addr->ai_addr, server_addr->ai_addrlen) < 0)
+ {
+ close(tSock);
View
3 tools/rbp/depends/libshairport/Makefile
@@ -30,8 +30,9 @@ $(SOURCE): $(TARBALLS_LOCATION)/$(ARCHIVE)
cd $(SOURCE); patch -p0 < ../006_no_printf.patch
cd $(SOURCE); patch -p0 < ../007_fix_syslog_defines.patch
cd $(SOURCE); patch -p0 < ../008-add-missing-libs.patch
- #cd $(SOURCE); patch -p0 < ../009_fix_ipv6.patch
+ cd $(SOURCE); patch -p0 < ../009_fix_ipv6.patch
cd $(SOURCE); patch -p0 < ../010_handle_metadata.patch
+ cd $(SOURCE); patch -p0 < ../011_fix_ipv4_fallback.patch
cd $(SOURCE); autoreconf -vif
cd $(SOURCE); $(CONFIGURE)