summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKhem Raj <raj.khem@gmail.com>2022-09-06 11:28:32 -0700
committerKhem Raj <raj.khem@gmail.com>2022-09-07 16:44:54 -0700
commit44ab7f999157bc79d6b7041ccca89fb7a2b8c228 (patch)
tree2e115af4b031b90b8c1102184f80800219ce75d5
parentc803bce22bc4dfe6e303e07b6d0fea619fadfcc2 (diff)
downloadmeta-openembedded-44ab7f999157bc79d6b7041ccca89fb7a2b8c228.tar.gz
lcdproc: Fix build on non-x86 and arm architectures
Signed-off-by: Khem Raj <raj.khem@gmail.com>
-rw-r--r--meta-oe/dynamic-layers/meta-python/recipes-extended/lcdproc/lcdproc/0001-Fix-compilation-with-GCC-10.x.patch7
-rw-r--r--meta-oe/dynamic-layers/meta-python/recipes-extended/lcdproc/lcdproc/0003-Fix-non-x86-platforms-on-musl.patch28
2 files changed, 21 insertions, 14 deletions
diff --git a/meta-oe/dynamic-layers/meta-python/recipes-extended/lcdproc/lcdproc/0001-Fix-compilation-with-GCC-10.x.patch b/meta-oe/dynamic-layers/meta-python/recipes-extended/lcdproc/lcdproc/0001-Fix-compilation-with-GCC-10.x.patch
index 35634dd9ba..cd8a69c3fb 100644
--- a/meta-oe/dynamic-layers/meta-python/recipes-extended/lcdproc/lcdproc/0001-Fix-compilation-with-GCC-10.x.patch
+++ b/meta-oe/dynamic-layers/meta-python/recipes-extended/lcdproc/lcdproc/0001-Fix-compilation-with-GCC-10.x.patch
@@ -16,8 +16,6 @@ Signed-off-by: Harald Geyer <harald@ccbib.org>
16 clients/lcdproc/iface.h | 2 +- 16 clients/lcdproc/iface.h | 2 +-
17 2 files changed, 2 insertions(+), 1 deletion(-) 17 2 files changed, 2 insertions(+), 1 deletion(-)
18 18
19diff --git a/clients/lcdproc/iface.c b/clients/lcdproc/iface.c
20index 40e50cb7..1ac355bd 100644
21--- a/clients/lcdproc/iface.c 19--- a/clients/lcdproc/iface.c
22+++ b/clients/lcdproc/iface.c 20+++ b/clients/lcdproc/iface.c
23@@ -32,6 +32,7 @@ 21@@ -32,6 +32,7 @@
@@ -28,8 +26,6 @@ index 40e50cb7..1ac355bd 100644
28 26
29 static int iface_count = 0; /* number of interfaces */ 27 static int iface_count = 0; /* number of interfaces */
30 static char unit_label[10] = "B"; /* default unit label is Bytes */ 28 static char unit_label[10] = "B"; /* default unit label is Bytes */
31diff --git a/clients/lcdproc/iface.h b/clients/lcdproc/iface.h
32index cc6dbaaf..c1bd6b5b 100644
33--- a/clients/lcdproc/iface.h 29--- a/clients/lcdproc/iface.h
34+++ b/clients/lcdproc/iface.h 30+++ b/clients/lcdproc/iface.h
35@@ -18,7 +18,7 @@ 31@@ -18,7 +18,7 @@
@@ -41,6 +37,3 @@ index cc6dbaaf..c1bd6b5b 100644
41 37
42 /** Update screen content */ 38 /** Update screen content */
43 int iface_screen(int rep, int display, int *flags_ptr); 39 int iface_screen(int rep, int display, int *flags_ptr);
44--
452.28.0
46
diff --git a/meta-oe/dynamic-layers/meta-python/recipes-extended/lcdproc/lcdproc/0003-Fix-non-x86-platforms-on-musl.patch b/meta-oe/dynamic-layers/meta-python/recipes-extended/lcdproc/lcdproc/0003-Fix-non-x86-platforms-on-musl.patch
index e39e9bda14..eed9ceee5e 100644
--- a/meta-oe/dynamic-layers/meta-python/recipes-extended/lcdproc/lcdproc/0003-Fix-non-x86-platforms-on-musl.patch
+++ b/meta-oe/dynamic-layers/meta-python/recipes-extended/lcdproc/lcdproc/0003-Fix-non-x86-platforms-on-musl.patch
@@ -17,19 +17,33 @@ Signed-off-by: Khem Raj <raj.khem@gmail.com>
17 server/drivers/port.h | 2 +- 17 server/drivers/port.h | 2 +-
18 1 file changed, 1 insertion(+), 1 deletion(-) 18 1 file changed, 1 insertion(+), 1 deletion(-)
19 19
20diff --git a/server/drivers/port.h b/server/drivers/port.h
21index c584cd4e..bde235b3 100644
22--- a/server/drivers/port.h 20--- a/server/drivers/port.h
23+++ b/server/drivers/port.h 21+++ b/server/drivers/port.h
24@@ -94,7 +94,7 @@ static inline int port_deny_multiple(unsigned short port, unsigned short count); 22@@ -94,7 +94,7 @@ static inline int port_deny_multiple(uns
25 /* ---------------------------- Linux ------------------------------------ */ 23 /* ---------------------------- Linux ------------------------------------ */
26 /* Use ioperm, inb and outb in <sys/io.h> (Linux) */ 24 /* Use ioperm, inb and outb in <sys/io.h> (Linux) */
27 /* And iopl for higher addresses of PCI LPT cards */ 25 /* And iopl for higher addresses of PCI LPT cards */
28-#if defined HAVE_IOPERM 26-#if defined HAVE_IOPERM
29+#if defined(__GLIBC__) || (defined(__x86__) || defined(__x86_64__)) 27+#if HAVE_INB
30 28
31 /* Glibc2 and Glibc1 */ 29 /* Glibc2 and Glibc1 */
32 # ifdef HAVE_SYS_IO_H 30 # ifdef HAVE_SYS_IO_H
33-- 31@@ -333,7 +333,7 @@ static inline int port_deny_multiple (un
342.24.1 32 return i386_set_ioperm(port, count, 0);
35 33 }
34
35-#else
36+#elif defined(__x86__) && defined(__x86_64__)
37
38 /* ------------------------- Everything else ----------------------------- */
39 /* Last chance! Use /dev/io and i386 ASM code (BSD4.3 ?) */
40--- a/configure.ac
41+++ b/configure.ac
42@@ -144,6 +144,7 @@ AC_CHECK_LIB(i386, i386_get_ioperm,
43 [])]
44 )
45
46+AC_CHECK_FUNCS(inb)
47 AC_CHECK_FUNCS(iopl)
48 AC_CHECK_FUNCS(ioperm)
49 AC_CHECK_HEADERS(sys/io.h)