Skip to contentSkip to conversation

package/lirc-tools: fix musl build

PATCH Superseded Bernd Kuhls 2 participants 2 messages Jan 30, 2016 – Jan 31, 2016

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 package/lirc-tools: fix musl build

Inspired by
https://bug.tasktools.org/secure/attachment/10271/0001-Fix-build-with-musl-libc.patch

Fixes
http://autobuild.buildroot.net/results/603/603c4426c47220808305a416f3d60fec2d8c02a3/
http://autobuild.buildroot.net/results/c08/c08abddeb5f0d0d1adec63ab4390562e3cfe1087/

---
 package/lirc-tools/0004-musl.patch | 19 +++++++++++++++++++
 1 file changed, 19 insertions(+)
 create mode 100644 package/lirc-tools/0004-musl.patch
package/lirc-tools/0004-musl.patch new file +19 -0
new file mode 100644
index 0000000..e5eddba
@@ -0,0 +1,19 @@
+Fix musl build
+
+Signed-off-by: Bernd Kuhls <[email protected]>
+
+diff -uNr lirc-0.9.2.org/tools/lirc-lsremotes.c lirc-0.9.2/tools/lirc-lsremotes.c
+--- lirc-0.9.2.org/tools/lirc-lsremotes.c	2014-11-23 18:42:09.000000000 +0100
++++ lirc-0.9.2/tools/lirc-lsremotes.c	2016-01-30 23:17:54.365815328 +0100
+@@ -28,6 +28,11 @@
+ #include "lirc_private.h"
+ #include "lirc_client.h"
+ 
++/* fixes build with musl libc */
++#ifndef GLOB_BRACE
++#define GLOB_BRACE 0
++#endif
++
+ static int opt_silent = 0;
+ static int opt_dump = 0;
+ 
Signature · 1 line
2.7.0.rc3
#1 lore raw

PATCH 1/1 package/lirc-tools: fix musl build

Dear Bernd Kuhls,

Quoted 19 lines · Bernd Kuhls

Inspired by
https://bug.tasktools.org/secure/attachment/10271/0001-Fix-build-with-musl-libc.patch

Fixes
http://autobuild.buildroot.net/results/603/603c4426c47220808305a416f3d60fec2d8c02a3/
http://autobuild.buildroot.net/results/c08/c08abddeb5f0d0d1adec63ab4390562e3cfe1087/

---
 package/lirc-tools/0004-musl.patch | 19 +++++++++++++++++++
 1 file changed, 19 insertions(+)
 create mode 100644 package/lirc-tools/0004-musl.patch
package/lirc-tools/0004-musl.patch new file +0 -0
new file mode 100644
index 0000000..e5eddba

package/lirc-tools/0004-musl.patch line 3

Quoted 3 lines
package/lirc-tools/0004-musl.patch new file +3 -0
@@ -0,0 +1,19 @@
+Fix musl build
+
+Signed-off-by: Bernd Kuhls <[email protected]>

Existing patches on lirc are Git formatted, and the upstream project uses a Git repository, so please generate Git formatted patches.

Thanks!

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com