diff options
author | Khem Raj <raj.khem@gmail.com> | 2020-08-11 23:42:58 -0700 |
---|---|---|
committer | Khem Raj <raj.khem@gmail.com> | 2020-08-13 22:32:07 -0700 |
commit | d9f027866664d7e70d6491b3131e6245e3daff90 (patch) | |
tree | 886d31bd54c3f8cb7eb821f1a8021c297c96e4ee | |
parent | f751dcf81a18fe817b40e755a2ba3f54a74d1e02 (diff) | |
download | meta-openembedded-d9f027866664d7e70d6491b3131e6245e3daff90.tar.gz |
htop: Fix build with -fno-common
Signed-off-by: Khem Raj <raj.khem@gmail.com>
-rw-r--r-- | meta-oe/recipes-support/htop/files/htop-gcc10.patch | 31 | ||||
-rw-r--r-- | meta-oe/recipes-support/htop/htop_2.2.0.bb | 1 |
2 files changed, 32 insertions, 0 deletions
diff --git a/meta-oe/recipes-support/htop/files/htop-gcc10.patch b/meta-oe/recipes-support/htop/files/htop-gcc10.patch new file mode 100644 index 0000000000..5be06277d7 --- /dev/null +++ b/meta-oe/recipes-support/htop/files/htop-gcc10.patch | |||
@@ -0,0 +1,31 @@ | |||
1 | Fix build with -fno-common | ||
2 | |||
3 | Upstream-Staus: Pending | ||
4 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
5 | --- a/CRT.h | ||
6 | +++ b/CRT.h | ||
7 | @@ -140,7 +140,7 @@ extern const char **CRT_treeStr; | ||
8 | |||
9 | extern int CRT_delay; | ||
10 | |||
11 | -int* CRT_colors; | ||
12 | +extern int* CRT_colors; | ||
13 | |||
14 | extern int CRT_colorSchemes[LAST_COLORSCHEME][LAST_COLORELEMENT]; | ||
15 | |||
16 | @@ -150,13 +150,13 @@ extern int CRT_scrollHAmount; | ||
17 | |||
18 | extern int CRT_scrollWheelVAmount; | ||
19 | |||
20 | -char* CRT_termType; | ||
21 | +extern char* CRT_termType; | ||
22 | |||
23 | // TODO move color scheme to Settings, perhaps? | ||
24 | |||
25 | extern int CRT_colorScheme; | ||
26 | |||
27 | -void *backtraceArray[128]; | ||
28 | +extern void *backtraceArray[128]; | ||
29 | |||
30 | #if HAVE_SETUID_ENABLED | ||
31 | |||
diff --git a/meta-oe/recipes-support/htop/htop_2.2.0.bb b/meta-oe/recipes-support/htop/htop_2.2.0.bb index 64eb0c571f..c608077dee 100644 --- a/meta-oe/recipes-support/htop/htop_2.2.0.bb +++ b/meta-oe/recipes-support/htop/htop_2.2.0.bb | |||
@@ -9,6 +9,7 @@ DEPENDS = "ncurses" | |||
9 | SRC_URI = "http://hisham.hm/htop/releases/${PV}/${BP}.tar.gz \ | 9 | SRC_URI = "http://hisham.hm/htop/releases/${PV}/${BP}.tar.gz \ |
10 | file://0001-Use-pkg-config.patch \ | 10 | file://0001-Use-pkg-config.patch \ |
11 | file://0001-Ask-for-python3-specifically.patch \ | 11 | file://0001-Ask-for-python3-specifically.patch \ |
12 | file://htop-gcc10.patch \ | ||
12 | " | 13 | " |
13 | SRC_URI[md5sum] = "0d816b6beed31edc75babcfbf863ffa8" | 14 | SRC_URI[md5sum] = "0d816b6beed31edc75babcfbf863ffa8" |
14 | SRC_URI[sha256sum] = "d9d6826f10ce3887950d709b53ee1d8c1849a70fa38e91d5896ad8cbc6ba3c57" | 15 | SRC_URI[sha256sum] = "d9d6826f10ce3887950d709b53ee1d8c1849a70fa38e91d5896ad8cbc6ba3c57" |