diff options
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 @@ | |||
| 1 | From 67d808b8739817c122bed8ba1a8308d01cb5ad0b Mon Sep 17 00:00:00 2001 | 1 | From a20feee4963bc38975fbaf44bbe85a31825f59db Mon Sep 17 00:00:00 2001 |
| 2 | From: Khem Raj <raj.khem@gmail.com> | 2 | From: Khem Raj <raj.khem@gmail.com> |
| 3 | Date: Sat, 6 Apr 2019 17:28:28 -0700 | 3 | Date: Sat, 6 Apr 2019 17:28:28 -0700 |
| 4 | Subject: [PATCH] Fix parallel build (fix port-internal make dependencies) on | 4 | Subject: [PATCH 1/3] Fix parallel build (fix port-internal make dependencies) |
| 5 | many cores | 5 | on many cores |
| 6 | 6 | ||
| 7 | Upstream-Status: Pending | 7 | Upstream-Status: Submitted [https://github.com/lcdproc/lcdproc/pull/142] |
| 8 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | 8 | Signed-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 | ||
| 13 | diff --git a/server/drivers/Makefile.am b/server/drivers/Makefile.am | 13 | diff --git a/server/drivers/Makefile.am b/server/drivers/Makefile.am |
| 14 | index 0c23a9b..6777047 100644 | 14 | index 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 | -- |
| 32 | 2.21.0 | 32 | 2.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 @@ | |||
| 1 | From d447a05ee560ba5894d2ed4cd93d0475c2f3c08e Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Khem Raj <raj.khem@gmail.com> | ||
| 3 | Date: Tue, 17 Dec 2019 17:39:32 -0800 | ||
| 4 | Subject: [PATCH 2/3] Include <limits.h> for PATH_MAX definition | ||
| 5 | |||
| 6 | musl libc exposes the missing include | ||
| 7 | |||
| 8 | Upstream-Status: Submitted [https://github.com/lcdproc/lcdproc/pull/142] | ||
| 9 | Signed-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 | |||
| 15 | diff --git a/server/drivers/hidraw_lib.c b/server/drivers/hidraw_lib.c | ||
| 16 | index 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> | ||
| 27 | diff --git a/server/drivers/linux_input.c b/server/drivers/linux_input.c | ||
| 28 | index 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 | -- | ||
| 40 | 2.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 @@ | |||
| 1 | From 7fd144f101fa5c9316d3468ed26f55629afe1305 Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Khem Raj <raj.khem@gmail.com> | ||
| 3 | Date: Tue, 17 Dec 2019 17:55:54 -0800 | ||
| 4 | Subject: [PATCH 3/3] Fix non x86 platforms on musl | ||
| 5 | |||
| 6 | Musl only specifies in/outb for x86/x86. Use the fallback path in case | ||
| 7 | musl is used. | ||
| 8 | |||
| 9 | This should fail compilation during the linking stage but for some reason | ||
| 10 | does not. Will do if -Werror=implicit-function-declaration is specified. | ||
| 11 | |||
| 12 | Original here: https://github.com/openwrt/packages/blob/master/utils/lcdproc/patches/110-in-outb.patch | ||
| 13 | Upstream-Status: Pending | ||
| 14 | |||
| 15 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
| 16 | --- | ||
| 17 | server/drivers/port.h | 2 +- | ||
| 18 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
| 19 | |||
| 20 | diff --git a/server/drivers/port.h b/server/drivers/port.h | ||
| 21 | index 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 | -- | ||
| 34 | 2.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+" | |||
| 7 | DEPENDS = "ncurses lirc" | 7 | DEPENDS = "ncurses lirc" |
| 8 | 8 | ||
| 9 | LIC_FILES_CHKSUM = "file://COPYING;md5=18810669f13b87348459e611d31ab760 \ | 9 | LIC_FILES_CHKSUM = "file://COPYING;md5=18810669f13b87348459e611d31ab760 \ |
| 10 | file://README.md;beginline=107;md5=5c927ce1742d6d5cddc45b7ad6230f75" | 10 | file://README.md;beginline=107;md5=5db392f043253a2d64b1737068ce6b58" |
| 11 | 11 | ||
| 12 | BASEPV = "0.5.9" | 12 | PV = "0.5.9+git${SRCPV}" |
| 13 | PV = "${BASEPV}+git${SRCPV}" | 13 | SRCREV = "3a3d622d9bb74c44fa67bc20573751a207514134" |
| 14 | SRCREV = "e08546c13a4157ed98cd4a8e9086e7acd66f93c0" | ||
| 15 | SRC_URI = "git://github.com/lcdproc/lcdproc \ | 14 | SRC_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 | ||
| 19 | S = "${WORKDIR}/git" | 20 | S = "${WORKDIR}/git" |
| 20 | 21 | ||
| 21 | inherit autotools pkgconfig update-rc.d | 22 | inherit autotools pkgconfig update-rc.d |
| 22 | 23 | ||
| 23 | LCD_DRIVERS ?= "all,!irman,!svga" | 24 | LCD_DRIVERS ?= "all,!irman,!svga${SERIALVFD}" |
| 24 | LCD_DRIVERS_append_aarch64 = ",!serialVFD" | 25 | SERIALVFD ?= "" |
| 25 | LCD_DRIVERS_append_arm = ",!serialVFD" | 26 | SERIALVFD_libc-musl = ",!serialVFD" |
| 27 | SERIALVFD_libc-musl_x86 = "" | ||
| 28 | SERIALVFD_libc-musl_x86-64 = "" | ||
| 26 | 29 | ||
| 27 | LCD_DEFAULT_DRIVER ?= "curses" | 30 | LCD_DEFAULT_DRIVER ?= "curses" |
| 28 | 31 | ||
