summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKhem Raj <raj.khem@gmail.com>2019-12-17 16:38:06 -0800
committerKhem Raj <raj.khem@gmail.com>2019-12-18 15:47:20 -0800
commit5f4b646795a7ee0aea59ec0cb4c3aaaf8b517238 (patch)
treef18818542dfdc4fcd61be45fa5153192320611d7
parentdd69fafd7f2c51fb69df66dbeae7f5a4b092580c (diff)
downloadmeta-openembedded-5f4b646795a7ee0aea59ec0cb4c3aaaf8b517238.tar.gz
lcdproc: Upgrade to latest top of tree
* Drop BASEPV, used only once * serialVFD needs to use ioperm, inb and outb which are only on x86 32/64 Signed-off-by: Khem Raj <raj.khem@gmail.com>
-rw-r--r--meta-oe/recipes-extended/lcdproc/lcdproc/0001-Fix-parallel-build-fix-port-internal-make-dependenci.patch12
-rw-r--r--meta-oe/recipes-extended/lcdproc/lcdproc/0002-Include-limits.h-for-PATH_MAX-definition.patch41
-rw-r--r--meta-oe/recipes-extended/lcdproc/lcdproc/0003-Fix-non-x86-platforms-on-musl.patch35
-rw-r--r--meta-oe/recipes-extended/lcdproc/lcdproc_git.bb17
4 files changed, 92 insertions, 13 deletions
diff --git a/meta-oe/recipes-extended/lcdproc/lcdproc/0001-Fix-parallel-build-fix-port-internal-make-dependenci.patch b/meta-oe/recipes-extended/lcdproc/lcdproc/0001-Fix-parallel-build-fix-port-internal-make-dependenci.patch
index 8505ea34c8..f6a7956db2 100644
--- a/meta-oe/recipes-extended/lcdproc/lcdproc/0001-Fix-parallel-build-fix-port-internal-make-dependenci.patch
+++ b/meta-oe/recipes-extended/lcdproc/lcdproc/0001-Fix-parallel-build-fix-port-internal-make-dependenci.patch
@@ -1,17 +1,17 @@
1From 67d808b8739817c122bed8ba1a8308d01cb5ad0b Mon Sep 17 00:00:00 2001 1From a20feee4963bc38975fbaf44bbe85a31825f59db Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com> 2From: Khem Raj <raj.khem@gmail.com>
3Date: Sat, 6 Apr 2019 17:28:28 -0700 3Date: Sat, 6 Apr 2019 17:28:28 -0700
4Subject: [PATCH] Fix parallel build (fix port-internal make dependencies) on 4Subject: [PATCH 1/3] Fix parallel build (fix port-internal make dependencies)
5 many cores 5 on many cores
6 6
7Upstream-Status: Pending 7Upstream-Status: Submitted [https://github.com/lcdproc/lcdproc/pull/142]
8Signed-off-by: Khem Raj <raj.khem@gmail.com> 8Signed-off-by: Khem Raj <raj.khem@gmail.com>
9--- 9---
10 server/drivers/Makefile.am | 4 ++-- 10 server/drivers/Makefile.am | 4 ++--
11 1 file changed, 2 insertions(+), 2 deletions(-) 11 1 file changed, 2 insertions(+), 2 deletions(-)
12 12
13diff --git a/server/drivers/Makefile.am b/server/drivers/Makefile.am 13diff --git a/server/drivers/Makefile.am b/server/drivers/Makefile.am
14index 0c23a9b..6777047 100644 14index e08f2b2d..4fd2e3f1 100644
15--- a/server/drivers/Makefile.am 15--- a/server/drivers/Makefile.am
16+++ b/server/drivers/Makefile.am 16+++ b/server/drivers/Makefile.am
17@@ -47,11 +47,11 @@ CwLnx_LDADD = libLCD.a libbignum.a 17@@ -47,11 +47,11 @@ CwLnx_LDADD = libLCD.a libbignum.a
@@ -29,5 +29,5 @@ index 0c23a9b..6777047 100644
29 imon_LDADD = libLCD.a libbignum.a 29 imon_LDADD = libLCD.a libbignum.a
30 imonlcd_LDADD = libLCD.a 30 imonlcd_LDADD = libLCD.a
31-- 31--
322.21.0 322.24.1
33 33
diff --git a/meta-oe/recipes-extended/lcdproc/lcdproc/0002-Include-limits.h-for-PATH_MAX-definition.patch b/meta-oe/recipes-extended/lcdproc/lcdproc/0002-Include-limits.h-for-PATH_MAX-definition.patch
new file mode 100644
index 0000000000..eb866bf10a
--- /dev/null
+++ b/meta-oe/recipes-extended/lcdproc/lcdproc/0002-Include-limits.h-for-PATH_MAX-definition.patch
@@ -0,0 +1,41 @@
1From d447a05ee560ba5894d2ed4cd93d0475c2f3c08e Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com>
3Date: Tue, 17 Dec 2019 17:39:32 -0800
4Subject: [PATCH 2/3] Include <limits.h> for PATH_MAX definition
5
6musl libc exposes the missing include
7
8Upstream-Status: Submitted [https://github.com/lcdproc/lcdproc/pull/142]
9Signed-off-by: Khem Raj <raj.khem@gmail.com>
10---
11 server/drivers/hidraw_lib.c | 1 +
12 server/drivers/linux_input.c | 1 +
13 2 files changed, 2 insertions(+)
14
15diff --git a/server/drivers/hidraw_lib.c b/server/drivers/hidraw_lib.c
16index 49b03f20..3b51f279 100644
17--- a/server/drivers/hidraw_lib.c
18+++ b/server/drivers/hidraw_lib.c
19@@ -8,6 +8,7 @@
20 #include <dirent.h>
21 #include <errno.h>
22 #include <fcntl.h>
23+#include <limits.h>
24 #include <stdlib.h>
25 #include <string.h>
26 #include <sys/ioctl.h>
27diff --git a/server/drivers/linux_input.c b/server/drivers/linux_input.c
28index 5b914d4c..6fcfc591 100644
29--- a/server/drivers/linux_input.c
30+++ b/server/drivers/linux_input.c
31@@ -5,6 +5,7 @@
32
33 #include <dirent.h>
34 #include <errno.h>
35+#include <limits.h>
36 #include <stdint.h>
37 #include <stdio.h>
38 #include <stdlib.h>
39--
402.24.1
41
diff --git a/meta-oe/recipes-extended/lcdproc/lcdproc/0003-Fix-non-x86-platforms-on-musl.patch b/meta-oe/recipes-extended/lcdproc/lcdproc/0003-Fix-non-x86-platforms-on-musl.patch
new file mode 100644
index 0000000000..e39e9bda14
--- /dev/null
+++ b/meta-oe/recipes-extended/lcdproc/lcdproc/0003-Fix-non-x86-platforms-on-musl.patch
@@ -0,0 +1,35 @@
1From 7fd144f101fa5c9316d3468ed26f55629afe1305 Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com>
3Date: Tue, 17 Dec 2019 17:55:54 -0800
4Subject: [PATCH 3/3] Fix non x86 platforms on musl
5
6Musl only specifies in/outb for x86/x86. Use the fallback path in case
7musl is used.
8
9This should fail compilation during the linking stage but for some reason
10does not. Will do if -Werror=implicit-function-declaration is specified.
11
12Original here: https://github.com/openwrt/packages/blob/master/utils/lcdproc/patches/110-in-outb.patch
13Upstream-Status: Pending
14
15Signed-off-by: Khem Raj <raj.khem@gmail.com>
16---
17 server/drivers/port.h | 2 +-
18 1 file changed, 1 insertion(+), 1 deletion(-)
19
20diff --git a/server/drivers/port.h b/server/drivers/port.h
21index c584cd4e..bde235b3 100644
22--- a/server/drivers/port.h
23+++ b/server/drivers/port.h
24@@ -94,7 +94,7 @@ static inline int port_deny_multiple(unsigned short port, unsigned short count);
25 /* ---------------------------- Linux ------------------------------------ */
26 /* Use ioperm, inb and outb in <sys/io.h> (Linux) */
27 /* And iopl for higher addresses of PCI LPT cards */
28-#if defined HAVE_IOPERM
29+#if defined(__GLIBC__) || (defined(__x86__) || defined(__x86_64__))
30
31 /* Glibc2 and Glibc1 */
32 # ifdef HAVE_SYS_IO_H
33--
342.24.1
35
diff --git a/meta-oe/recipes-extended/lcdproc/lcdproc_git.bb b/meta-oe/recipes-extended/lcdproc/lcdproc_git.bb
index 7ddc55f5e7..275b984e47 100644
--- a/meta-oe/recipes-extended/lcdproc/lcdproc_git.bb
+++ b/meta-oe/recipes-extended/lcdproc/lcdproc_git.bb
@@ -7,22 +7,25 @@ LICENSE = "GPLv2+"
7DEPENDS = "ncurses lirc" 7DEPENDS = "ncurses lirc"
8 8
9LIC_FILES_CHKSUM = "file://COPYING;md5=18810669f13b87348459e611d31ab760 \ 9LIC_FILES_CHKSUM = "file://COPYING;md5=18810669f13b87348459e611d31ab760 \
10 file://README.md;beginline=107;md5=5c927ce1742d6d5cddc45b7ad6230f75" 10 file://README.md;beginline=107;md5=5db392f043253a2d64b1737068ce6b58"
11 11
12BASEPV = "0.5.9" 12PV = "0.5.9+git${SRCPV}"
13PV = "${BASEPV}+git${SRCPV}" 13SRCREV = "3a3d622d9bb74c44fa67bc20573751a207514134"
14SRCREV = "e08546c13a4157ed98cd4a8e9086e7acd66f93c0"
15SRC_URI = "git://github.com/lcdproc/lcdproc \ 14SRC_URI = "git://github.com/lcdproc/lcdproc \
16 file://0001-Fix-parallel-build-fix-port-internal-make-dependenci.patch \ 15 file://0001-Fix-parallel-build-fix-port-internal-make-dependenci.patch \
16 file://0002-Include-limits.h-for-PATH_MAX-definition.patch \
17 file://0003-Fix-non-x86-platforms-on-musl.patch \
17 " 18 "
18 19
19S = "${WORKDIR}/git" 20S = "${WORKDIR}/git"
20 21
21inherit autotools pkgconfig update-rc.d 22inherit autotools pkgconfig update-rc.d
22 23
23LCD_DRIVERS ?= "all,!irman,!svga" 24LCD_DRIVERS ?= "all,!irman,!svga${SERIALVFD}"
24LCD_DRIVERS_append_aarch64 = ",!serialVFD" 25SERIALVFD ?= ""
25LCD_DRIVERS_append_arm = ",!serialVFD" 26SERIALVFD_libc-musl = ",!serialVFD"
27SERIALVFD_libc-musl_x86 = ""
28SERIALVFD_libc-musl_x86-64 = ""
26 29
27LCD_DEFAULT_DRIVER ?= "curses" 30LCD_DEFAULT_DRIVER ?= "curses"
28 31