package/liblo: fix build with musl
PATCH 1/1 package/liblo: fix build with musl
Commit 2759ba03979 (liblo: disable werror to fix build issues) tried to fix the issue by passing --disable-werror, but this is not a recognised option.
Instead, just fix the code for good.
Fixes:
http://autobuild.buildroot.org/results/000a46954d0c6d3dbc4b4634a0d3a3c955fac679 http://autobuild.buildroot.org/results/58cb834bbd69bafc5cb0f23c236919c609648c05 http://autobuild.buildroot.org/results/9de1c2007818082e88d77572abf8ff8a72e01930 ...
---
Result of test-pkg with BR2_PACKAGE_LIBLO=y:
br-arm-full [1/7]: OK
br-arm-cortex-a9-glibc [2/7]: OK
br-arm-cortex-m4-full [3/7]: OK
br-x86-64-musl [4/7]: OK
br-bfin-full [5/7]: OK
br-arm-full-static [6/7]: OK
armv5-ctng-linux-gnueabi [7/7]: OK
7 builds, 0 skipped, 0 build failed, 0 legal-info failed
---
.../0001-server-use-correct-poll.h-header.patch | 32 ++++++++++++++++++++++
package/liblo/liblo.mk | 5 +---
2 files changed, 33 insertions(+), 4 deletions(-)
create mode 100644 package/liblo/0001-server-use-correct-poll.h-header.patchpackage/liblo/0001-server-use-correct-poll.h-header.patch new file +32 -0
@@ -0,0 +1,32 @@ +From d59f2e6f42a9e4f8a9184d7ed75546f47dc50123 Mon Sep 17 00:00:00 2001 +From: "Yann E. MORIN" <[email protected]> +Date: Sun, 8 Apr 2018 11:09:02 +0200 +Subject: [PATCH] server: use correct poll.h header + +Fixes build with the musl C library: + http://autobuild.buildroot.net/results/000a46954d0c6d3dbc4b4634a0d3a3c955fac679 + +Signed-off-by: "Yann E. MORIN" <[email protected]> +--- +Upstream status: + PR sent: https://github.com/radarsat1/liblo/pull/66 +--- + src/server.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/src/server.c b/src/server.c +index 01fa08f..11c62d2 100644 +--- a/src/server.c ++++ b/src/server.c +@@ -51,7 +51,7 @@ + #include <netdb.h> + #include <sys/socket.h> + #ifdef HAVE_POLL +-#include <sys/poll.h> ++#include <poll.h> + #endif + #include <sys/un.h> + #include <arpa/inet.h> +-- +2.14.1 +
package/liblo/liblo.mk +1 -4
@@ -12,10 +12,7 @@ LIBLO_LICENSE_FILES = COPYING LIBLO_INSTALL_STAGING = YES # IPv6 support broken, issue known upstream -# werror - not needed for release. -LIBLO_CONF_OPTS += \ - --disable-ipv6 \ - --disable-werror +LIBLO_CONF_OPTS = --disable-ipv6 # Liblo uses atomic builtins, so we need to link with libatomic for # the architectures who explicitly need libatomic.
Signature · 1 line
2.14.1
PATCH 1/1 package/liblo: fix build with musl
All,
On 2018-04-08 11:37 +0200, Yann E. MORIN spake thusly:
Quoted 5 lines
Commit
2759ba03979(liblo: disable werror to fix build issues) tried to fix the issue by passing --disable-werror, but this is not a recognised option.Instead, just fix the code for good.
[--SNIP--]
Quoted 8 lines
package/liblo/0001-server-use-correct-poll.h-header.patch new file +2
-0@@ -0,0 +1,32 @@ +From d59f2e6f42a9e4f8a9184d7ed75546f47dc50123 Mon Sep 17 00:00:00 2001 +From: "Yann E. MORIN" <[email protected]>
package/liblo/0001-server-use-correct-poll.h-header.patch line 12
Quoted 10 lines
package/liblo/0001-server-use-correct-poll.h-header.patch new file +10
-0+Date: Sun, 8 Apr 2018 11:09:02 +0200 +Subject: [PATCH] server: use correct poll.h header + +Fixes build with the musl C library: + http://autobuild.buildroot.net/results/000a46954d0c6d3dbc4b4634a0d3a3c955fac679 + +Signed-off-by: "Yann E. MORIN" <[email protected]> +--- +Upstream status: + PR sent: https://github.com/radarsat1/liblo/pull/66
PR has just been accepted now:
https://github.com/radarsat1/liblo/commit/e3c6f0eaae41fb19e893466a6459668c958c4f89
Regards,
Yann E. MORIN.
Quoted 39 lines
package/liblo/0001-server-use-correct-poll.h-header.patch new file +20
-0+--- + src/server.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/src/server.c b/src/server.c +index 01fa08f..11c62d2 100644 +--- a/src/server.c ++++ b/src/server.c +@@ -51,7 +51,7 @@ + #include <netdb.h> + #include <sys/socket.h> + #ifdef HAVE_POLL +-#include <sys/poll.h> ++#include <poll.h> + #endif + #include <sys/un.h> + #include <arpa/inet.h> +-- +2.14.1 +package/liblo/liblo.mk +1
-4@@ -12,10 +12,7 @@ LIBLO_LICENSE_FILES = COPYING LIBLO_INSTALL_STAGING = YES # IPv6 support broken, issue known upstream -# werror - not needed for release. -LIBLO_CONF_OPTS += \ - --disable-ipv6 \ - --disable-werror +LIBLO_CONF_OPTS = --disable-ipv6 # Liblo uses atomic builtins, so we need to link with libatomic for # the architectures who explicitly need libatomic.Signature · 1 line
2.14.1
Signature · 6 lines
.-----------------.--------------------.------------------.--------------------. | Yann E. MORIN | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: | | +33 662 376 056 | Software Designer | \ / CAMPAIGN | ___ | | +33 223 225 172 `------------.-------: X AGAINST | \e/ There is no | | http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL | v conspiracy. | '------------------------------^-------^------------------^--------------------'
Thomas Petazzoni
AppliedPATCH 1/1 package/liblo: fix build with musl
In reply to Yann E. MORINHello,
Quoted 16 lines · Yann E. MORIN
Commit
2759ba03979(liblo: disable werror to fix build issues) tried to fix the issue by passing --disable-werror, but this is not a recognised option.Instead, just fix the code for good.
Fixes:
http://autobuild.buildroot.org/results/000a46954d0c6d3dbc4b4634a0d3a3c955fac679 http://autobuild.buildroot.org/results/58cb834bbd69bafc5cb0f23c236919c609648c05 http://autobuild.buildroot.org/results/9de1c2007818082e88d77572abf8ff8a72e01930 ...Signed-off-by "Yann E. MORIN" <[email protected]>Cc Alex Baldwin <[email protected]>---
Result of test-pkg with BR2_PACKAGE_LIBLO=y:
Quoted 13 lines
br-arm-full [1/7]: OK
br-arm-cortex-a9-glibc [2/7]: OK
br-arm-cortex-m4-full [3/7]: OK
br-x86-64-musl [4/7]: OK
br-bfin-full [5/7]: OK
br-arm-full-static [6/7]: OK
armv5-ctng-linux-gnueabi [7/7]: OK
7 builds, 0 skipped, 0 build failed, 0 legal-info failed
---
.../0001-server-use-correct-poll.h-header.patch | 32 ++++++++++++++++++++++
package/liblo/liblo.mk | 5 +---
2 files changed, 33 insertions(+), 4 deletions(-)
create mode 100644 package/liblo/0001-server-use-correct-poll.h-header.patchApplied to master, thanks.
Thomas
Signature · 3 lines
Thomas Petazzoni, CTO, Bootlin (formerly Free Electrons) Embedded Linux and Kernel engineering https://bootlin.com