diff options
5 files changed, 2 insertions, 169 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 deleted file mode 100644 index cd8a69c3fb..0000000000 --- a/meta-oe/dynamic-layers/meta-python/recipes-extended/lcdproc/lcdproc/0001-Fix-compilation-with-GCC-10.x.patch +++ /dev/null | |||
@@ -1,39 +0,0 @@ | |||
1 | From 9b07f6a472c24f5e1b65746756764391be0d55e4 Mon Sep 17 00:00:00 2001 | ||
2 | From: Harald Geyer <harald@ccbib.org> | ||
3 | Date: Mon, 10 Feb 2020 13:15:10 +0100 | ||
4 | Subject: [PATCH] Fix compilation with GCC >= 10.x | ||
5 | |||
6 | Starting with GCC >= 10.x, -fno-common is used as default | ||
7 | instead of -fcommon. This patch fixes the compilation. | ||
8 | |||
9 | Closes: #148 | ||
10 | |||
11 | Upstream-Status: Backport | ||
12 | Suggested-by: Conrad Kostecki <conrad@kostecki.com> | ||
13 | Signed-off-by: Harald Geyer <harald@ccbib.org> | ||
14 | --- | ||
15 | clients/lcdproc/iface.c | 1 + | ||
16 | clients/lcdproc/iface.h | 2 +- | ||
17 | 2 files changed, 2 insertions(+), 1 deletion(-) | ||
18 | |||
19 | --- a/clients/lcdproc/iface.c | ||
20 | +++ b/clients/lcdproc/iface.c | ||
21 | @@ -32,6 +32,7 @@ | ||
22 | #define UNSET_INT -1 | ||
23 | #define UNSET_STR "\01" | ||
24 | |||
25 | +IfaceInfo iface[MAX_INTERFACES]; | ||
26 | |||
27 | static int iface_count = 0; /* number of interfaces */ | ||
28 | static char unit_label[10] = "B"; /* default unit label is Bytes */ | ||
29 | --- a/clients/lcdproc/iface.h | ||
30 | +++ b/clients/lcdproc/iface.h | ||
31 | @@ -18,7 +18,7 @@ | ||
32 | /** max number of interfaces in multi-interface mode */ | ||
33 | #define MAX_INTERFACES 3 | ||
34 | |||
35 | -IfaceInfo iface[MAX_INTERFACES]; /* interface info */ | ||
36 | +extern IfaceInfo iface[MAX_INTERFACES]; /* interface info */ | ||
37 | |||
38 | /** Update screen content */ | ||
39 | int iface_screen(int rep, int display, int *flags_ptr); | ||
diff --git a/meta-oe/dynamic-layers/meta-python/recipes-extended/lcdproc/lcdproc/0001-Fix-parallel-build-fix-port-internal-make-dependenci.patch b/meta-oe/dynamic-layers/meta-python/recipes-extended/lcdproc/lcdproc/0001-Fix-parallel-build-fix-port-internal-make-dependenci.patch deleted file mode 100644 index f6a7956db2..0000000000 --- a/meta-oe/dynamic-layers/meta-python/recipes-extended/lcdproc/lcdproc/0001-Fix-parallel-build-fix-port-internal-make-dependenci.patch +++ /dev/null | |||
@@ -1,33 +0,0 @@ | |||
1 | From a20feee4963bc38975fbaf44bbe85a31825f59db Mon Sep 17 00:00:00 2001 | ||
2 | From: Khem Raj <raj.khem@gmail.com> | ||
3 | Date: Sat, 6 Apr 2019 17:28:28 -0700 | ||
4 | Subject: [PATCH 1/3] Fix parallel build (fix port-internal make dependencies) | ||
5 | on many cores | ||
6 | |||
7 | Upstream-Status: Submitted [https://github.com/lcdproc/lcdproc/pull/142] | ||
8 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
9 | --- | ||
10 | server/drivers/Makefile.am | 4 ++-- | ||
11 | 1 file changed, 2 insertions(+), 2 deletions(-) | ||
12 | |||
13 | diff --git a/server/drivers/Makefile.am b/server/drivers/Makefile.am | ||
14 | index e08f2b2d..4fd2e3f1 100644 | ||
15 | --- a/server/drivers/Makefile.am | ||
16 | +++ b/server/drivers/Makefile.am | ||
17 | @@ -47,11 +47,11 @@ CwLnx_LDADD = libLCD.a libbignum.a | ||
18 | futaba_LDADD = @LIBUSB_LIBS@ @LIBUSB_1_0_LIBS@ libLCD.a | ||
19 | g15_LDADD = @LIBG15@ | ||
20 | glcd_LDADD = libLCD.a @GLCD_DRIVERS@ @FT2_LIBS@ @LIBPNG_LIBS@ @LIBSERDISP@ @LIBUSB_LIBS@ @LIBX11_LIBS@ | ||
21 | -glcd_DEPENDENCIES = @GLCD_DRIVERS@ glcd-glcd-render.o | ||
22 | +glcd_DEPENDENCIES = @GLCD_DRIVERS@ glcd-glcd-render.o libLCD.a | ||
23 | glcdlib_LDADD = @LIBGLCD@ | ||
24 | glk_LDADD = libbignum.a | ||
25 | hd44780_LDADD = libLCD.a @HD44780_DRIVERS@ @HD44780_I2C@ @LIBUSB_LIBS@ @LIBFTDI_LIBS@ @LIBUGPIO@ libbignum.a | ||
26 | -hd44780_DEPENDENCIES = @HD44780_DRIVERS@ @HD44780_I2C@ | ||
27 | +hd44780_DEPENDENCIES = @HD44780_DRIVERS@ @HD44780_I2C@ libLCD.a libbignum.a | ||
28 | i2500vfd_LDADD = @LIBFTDI_LIBS@ | ||
29 | imon_LDADD = libLCD.a libbignum.a | ||
30 | imonlcd_LDADD = libLCD.a | ||
31 | -- | ||
32 | 2.24.1 | ||
33 | |||
diff --git a/meta-oe/dynamic-layers/meta-python/recipes-extended/lcdproc/lcdproc/0002-Include-limits.h-for-PATH_MAX-definition.patch b/meta-oe/dynamic-layers/meta-python/recipes-extended/lcdproc/lcdproc/0002-Include-limits.h-for-PATH_MAX-definition.patch deleted file mode 100644 index eb866bf10a..0000000000 --- a/meta-oe/dynamic-layers/meta-python/recipes-extended/lcdproc/lcdproc/0002-Include-limits.h-for-PATH_MAX-definition.patch +++ /dev/null | |||
@@ -1,41 +0,0 @@ | |||
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/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 deleted file mode 100644 index eed9ceee5e..0000000000 --- a/meta-oe/dynamic-layers/meta-python/recipes-extended/lcdproc/lcdproc/0003-Fix-non-x86-platforms-on-musl.patch +++ /dev/null | |||
@@ -1,49 +0,0 @@ | |||
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 | --- a/server/drivers/port.h | ||
21 | +++ b/server/drivers/port.h | ||
22 | @@ -94,7 +94,7 @@ static inline int port_deny_multiple(uns | ||
23 | /* ---------------------------- Linux ------------------------------------ */ | ||
24 | /* Use ioperm, inb and outb in <sys/io.h> (Linux) */ | ||
25 | /* And iopl for higher addresses of PCI LPT cards */ | ||
26 | -#if defined HAVE_IOPERM | ||
27 | +#if HAVE_INB | ||
28 | |||
29 | /* Glibc2 and Glibc1 */ | ||
30 | # ifdef HAVE_SYS_IO_H | ||
31 | @@ -333,7 +333,7 @@ static inline int port_deny_multiple (un | ||
32 | return i386_set_ioperm(port, count, 0); | ||
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) | ||
diff --git a/meta-oe/dynamic-layers/meta-python/recipes-extended/lcdproc/lcdproc_git.bb b/meta-oe/dynamic-layers/meta-python/recipes-extended/lcdproc/lcdproc_git.bb index 76a931666d..4cae4947f2 100644 --- a/meta-oe/dynamic-layers/meta-python/recipes-extended/lcdproc/lcdproc_git.bb +++ b/meta-oe/dynamic-layers/meta-python/recipes-extended/lcdproc/lcdproc_git.bb | |||
@@ -10,13 +10,8 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=18810669f13b87348459e611d31ab760 \ | |||
10 | file://README.md;beginline=107;md5=5db392f043253a2d64b1737068ce6b58" | 10 | file://README.md;beginline=107;md5=5db392f043253a2d64b1737068ce6b58" |
11 | 11 | ||
12 | PV = "0.5.9+git${SRCPV}" | 12 | PV = "0.5.9+git${SRCPV}" |
13 | SRCREV = "3a3d622d9bb74c44fa67bc20573751a207514134" | 13 | SRCREV = "0e2ce9b9c46c47363436f9ee730f7c71bf455f0f" |
14 | SRC_URI = "git://github.com/lcdproc/lcdproc;branch=master;protocol=https \ | 14 | SRC_URI = "git://github.com/lcdproc/lcdproc;branch=master;protocol=https" |
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 \ | ||
18 | file://0001-Fix-compilation-with-GCC-10.x.patch \ | ||
19 | " | ||
20 | 15 | ||
21 | S = "${WORKDIR}/git" | 16 | S = "${WORKDIR}/git" |
22 | 17 | ||