summaryrefslogtreecommitdiffstats
path: root/meta-oe
diff options
context:
space:
mode:
authorLiu Yiding <liuyd.fnst@fujitsu.com>2026-01-28 18:08:47 +0800
committerKhem Raj <raj.khem@gmail.com>2026-01-30 23:59:11 -0800
commit2ce95a4d88f48fd132aaa7a7f6b1190b04f35800 (patch)
tree6c8da34ebec07bc74eed9dec09be558a6514add6 /meta-oe
parentc27651879055feee4bfe982d859a12fa50ea8aa1 (diff)
downloadmeta-openembedded-2ce95a4d88f48fd132aaa7a7f6b1190b04f35800.tar.gz
fbida: upgrade 2.14 -> 2.15
1. Changelog https://gitlab.com/kraxel/fbida/-/commit/a0d75fbab3ea01bf5b36f813f0ec0d1bfa2db745 2. Drop following patches as they were merged upstream. fbida-gcc10.patch 0001-meson.build-install-fbgs-shell-script.patch 0001-fbida-Include-missing-sys-types.h.patch 0002-meson.build-add-features-options-for-png-gif-tiff-we.patch 0001-meson.build-make-fbpdf-build-optional.patch 3. Drop 0003-meson.build-do-not-require-xkbcommon.patch as xkbcommon was added as DEPEND. Signed-off-by: Liu Yiding <liuyd.fnst@fujitsu.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'meta-oe')
-rw-r--r--meta-oe/recipes-graphics/fbida/fbida_2.15.bb (renamed from meta-oe/recipes-graphics/fbida/fbida_git.bb)14
-rw-r--r--meta-oe/recipes-graphics/fbida/files/0001-fbida-Include-missing-sys-types.h.patch31
-rw-r--r--meta-oe/recipes-graphics/fbida/files/0001-meson.build-install-fbgs-shell-script.patch28
-rw-r--r--meta-oe/recipes-graphics/fbida/files/0001-meson.build-make-fbpdf-build-optional.patch66
-rw-r--r--meta-oe/recipes-graphics/fbida/files/0002-meson.build-add-features-options-for-png-gif-tiff-we.patch124
-rw-r--r--meta-oe/recipes-graphics/fbida/files/0003-meson.build-do-not-require-xkbcommon.patch27
-rw-r--r--meta-oe/recipes-graphics/fbida/files/fbida-gcc10.patch61
7 files changed, 4 insertions, 347 deletions
diff --git a/meta-oe/recipes-graphics/fbida/fbida_git.bb b/meta-oe/recipes-graphics/fbida/fbida_2.15.bb
index 2736f61004..99beccb274 100644
--- a/meta-oe/recipes-graphics/fbida/fbida_git.bb
+++ b/meta-oe/recipes-graphics/fbida/fbida_2.15.bb
@@ -7,20 +7,14 @@ SECTION = "utils"
7LICENSE = "GPL-2.0-only" 7LICENSE = "GPL-2.0-only"
8LIC_FILES_CHKSUM = "file://COPYING;md5=e8feb78a32950a909621bbb51f634b39" 8LIC_FILES_CHKSUM = "file://COPYING;md5=e8feb78a32950a909621bbb51f634b39"
9 9
10DEPENDS = "virtual/libiconv jpeg fontconfig freetype libexif libdrm pixman udev libinput cairo" 10DEPENDS = "virtual/libiconv jpeg fontconfig freetype libexif libdrm pixman udev libinput cairo libxkbcommon"
11 11
12PV = "2.14+git" 12GITTAG = "${PN}-${PV}-1"
13SRC_URI = "git://github.com/kraxel/fbida;protocol=https;branch=master \ 13SRC_URI = "git://github.com/kraxel/fbida;protocol=https;branch=master;tag=${GITTAG} \
14 file://fix-preprocessor.patch \ 14 file://fix-preprocessor.patch \
15 file://support-jpeg-turbo.patch \ 15 file://support-jpeg-turbo.patch \
16 file://fbida-gcc10.patch \
17 file://0001-meson.build-install-fbgs-shell-script.patch \
18 file://0002-meson.build-add-features-options-for-png-gif-tiff-we.patch \
19 file://0003-meson.build-do-not-require-xkbcommon.patch \
20 file://0001-meson.build-make-fbpdf-build-optional.patch \
21 file://0001-fbida-Include-missing-sys-types.h.patch \
22" 16"
23SRCREV = "eb769e3d7f4a073d4c37ed524ebd5017c6a578f5" 17SRCREV = "a0d75fbab3ea01bf5b36f813f0ec0d1bfa2db745"
24 18
25inherit meson pkgconfig features_check 19inherit meson pkgconfig features_check
26 20
diff --git a/meta-oe/recipes-graphics/fbida/files/0001-fbida-Include-missing-sys-types.h.patch b/meta-oe/recipes-graphics/fbida/files/0001-fbida-Include-missing-sys-types.h.patch
deleted file mode 100644
index 0fb58f80e1..0000000000
--- a/meta-oe/recipes-graphics/fbida/files/0001-fbida-Include-missing-sys-types.h.patch
+++ /dev/null
@@ -1,31 +0,0 @@
1From 17490e264e627ead81bf5840c8797de968485943 Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com>
3Date: Mon, 3 Jul 2023 11:25:26 -0700
4Subject: [PATCH] fbida: Include missing <sys/types.h>
5
6Fixes build on musl
7../git/gfx.h:43:5: error: unknown type name 'dev_t'; did you mean 'div_t'?
8 dev_t devnum;
9 ^~~~~
10 div_t
11TOPDIR/build/tmp/work/cortexa57-yoe-linux-musl/fbida/2.14+gitAUTOINC+eb769e3d7f-r0/recipe-sysroot/usr/include/stdlib.h:64:35: note: 'div_t' declared here
12typedef struct { int quot, rem; } div_t;
13 ^
141 error generated
15
16Upstream-Status: Submitted [https://github.com/kraxel/fbida/pull/3]
17
18Signed-off-by: Khem Raj <raj.khem@gmail.com>
19---
20 gfx.h | 1 +
21 1 file changed, 1 insertion(+)
22
23--- a/gfx.h
24+++ b/gfx.h
25@@ -1,5 +1,6 @@
26 #include <stdbool.h>
27 #include <inttypes.h>
28+#include <sys/types.h>
29
30 #include <pixman.h>
31 #include <cairo.h>
diff --git a/meta-oe/recipes-graphics/fbida/files/0001-meson.build-install-fbgs-shell-script.patch b/meta-oe/recipes-graphics/fbida/files/0001-meson.build-install-fbgs-shell-script.patch
deleted file mode 100644
index 4d081258be..0000000000
--- a/meta-oe/recipes-graphics/fbida/files/0001-meson.build-install-fbgs-shell-script.patch
+++ /dev/null
@@ -1,28 +0,0 @@
1From f9c455e81ad4d870c8ae20b9af8598139231ad26 Mon Sep 17 00:00:00 2001
2From: "Meyer, Wolfgang" <Wolfgang.Meyer@gossenmetrawatt.com>
3Date: Fri, 9 Sep 2022 09:32:22 +0200
4Subject: [PATCH] meson.build: install fbgs shell script
5
6Upstream-Status: Submitted [https://github.com/kraxel/fbida/pull/4]
7Signed-off-by: "Meyer, Wolfgang" <Wolfgang.Meyer@gossenmetrawatt.com>
8---
9 meson.build | 3 +++
10 1 file changed, 3 insertions(+)
11
12diff --git a/meson.build b/meson.build
13index cbed982..2129896 100644
14--- a/meson.build
15+++ b/meson.build
16@@ -126,6 +126,9 @@ executable('fbpdf',
17 sources : fbpdf_srcs,
18 dependencies : fbpdf_deps,
19 install : true)
20+install_data('fbgs',
21+ install_dir : get_option('bindir'),
22+ install_mode : 'rwxr--r--')
23
24 # build fbcon
25 fbcon_srcs = [ 'fbcon.c', 'drmtools.c', 'fbtools.c', 'gfx.c', 'vt.c', 'kbd.c' ]
26--
272.37.3
28
diff --git a/meta-oe/recipes-graphics/fbida/files/0001-meson.build-make-fbpdf-build-optional.patch b/meta-oe/recipes-graphics/fbida/files/0001-meson.build-make-fbpdf-build-optional.patch
deleted file mode 100644
index b872e213aa..0000000000
--- a/meta-oe/recipes-graphics/fbida/files/0001-meson.build-make-fbpdf-build-optional.patch
+++ /dev/null
@@ -1,66 +0,0 @@
1From c00a155e90a9b22bd6ab5fa5407bb9923ee16ca0 Mon Sep 17 00:00:00 2001
2From: "Meyer, Wolfgang" <Wolfgang.Meyer@gossenmetrawatt.com>
3Date: Fri, 16 Sep 2022 18:45:58 +0200
4Subject: [PATCH] meson.build: make fbpdf build optional
5
6Upstream-Status: Submitted [https://github.com/kraxel/fbida/pull/4]
7Signed-off-by: "Meyer, Wolfgang" <Wolfgang.Meyer@gossenmetrawatt.com>
8---
9 meson.build | 22 ++++++++++++----------
10 meson_options.txt | 1 +
11 2 files changed, 13 insertions(+), 10 deletions(-)
12
13diff --git a/meson.build b/meson.build
14index 6b3daf3..289d1ec 100644
15--- a/meson.build
16+++ b/meson.build
17@@ -15,11 +15,11 @@ x11resdir = x11resrun.stdout().strip()
18
19 # pkg-config deps
20 pixman_dep = dependency('pixman-1')
21-poppler_dep = dependency('poppler-glib')
22+poppler_dep = dependency('poppler-glib', required: get_option('pdf'))
23 cairo_dep = dependency('cairo')
24 drm_dep = dependency('libdrm')
25-gbm_dep = dependency('gbm')
26-epoxy_dep = dependency('epoxy')
27+gbm_dep = dependency('gbm', required: get_option('pdf'))
28+epoxy_dep = dependency('epoxy', required: get_option('pdf'))
29 exif_dep = dependency('libexif')
30 png_dep = dependency('libpng', required: get_option('png'))
31 tiff_dep = dependency('libtiff-4', required: get_option('tiff'))
32@@ -132,13 +132,15 @@ fbpdf_deps = [ drm_dep, gbm_dep, epoxy_dep,
33 pixman_dep, poppler_dep, cairo_dep,
34 udev_dep, input_dep ]
35
36-executable('fbpdf',
37- sources : fbpdf_srcs,
38- dependencies : fbpdf_deps,
39- install : true)
40-install_data('fbgs',
41- install_dir : get_option('bindir'),
42- install_mode : 'rwxr--r--')
43+if get_option('pdf').enabled()
44+ executable('fbpdf',
45+ sources : fbpdf_srcs,
46+ dependencies : fbpdf_deps,
47+ install : true)
48+ install_data('fbgs',
49+ install_dir : get_option('bindir'),
50+ install_mode : 'rwxr--r--')
51+endif
52
53 # build fbcon
54 fbcon_srcs = [ 'fbcon.c', 'drmtools.c', 'fbtools.c', 'gfx.c', 'vt.c', 'kbd.c' ]
55diff --git a/meson_options.txt b/meson_options.txt
56index ce37188..74699ab 100644
57--- a/meson_options.txt
58+++ b/meson_options.txt
59@@ -3,3 +3,4 @@ option('png', type: 'feature', value : 'enabled')
60 option('tiff', type: 'feature', value : 'enabled')
61 option('webp', type: 'feature', value : 'disabled')
62 option('motif', type: 'feature', value : 'disabled')
63+option('pdf', type: 'feature', value : 'enabled')
64--
652.37.3
66
diff --git a/meta-oe/recipes-graphics/fbida/files/0002-meson.build-add-features-options-for-png-gif-tiff-we.patch b/meta-oe/recipes-graphics/fbida/files/0002-meson.build-add-features-options-for-png-gif-tiff-we.patch
deleted file mode 100644
index 4f54fbfba7..0000000000
--- a/meta-oe/recipes-graphics/fbida/files/0002-meson.build-add-features-options-for-png-gif-tiff-we.patch
+++ /dev/null
@@ -1,124 +0,0 @@
1From cdcde5c1fd106a69118dff98118600911392762f Mon Sep 17 00:00:00 2001
2From: "Meyer, Wolfgang" <Wolfgang.Meyer@gossenmetrawatt.com>
3Date: Fri, 16 Sep 2022 16:25:38 +0200
4Subject: [PATCH] meson.build: add features options for png, gif, tiff, webp, and motif
5
6Upstream-Status: Submitted [https://github.com/kraxel/fbida/pull/4]
7Signed-off-by: "Meyer, Wolfgang" <Wolfgang.Meyer@gossenmetrawatt.com>
8---
9 meson.build | 41 +++++++++++++++++++++++++++--------------
10 meson_options.txt | 5 +++++
11 selections.c | 4 ++++
12 3 files changed, 36 insertions(+), 14 deletions(-)
13 create mode 100644 meson_options.txt
14
15diff --git a/meson.build b/meson.build
16index cd9cc49..b5e3ffc 100644
17--- a/meson.build
18+++ b/meson.build
19@@ -23,9 +23,9 @@ drm_dep = dependency('libdrm')
20 gbm_dep = dependency('gbm')
21 epoxy_dep = dependency('epoxy')
22 exif_dep = dependency('libexif')
23-png_dep = dependency('libpng')
24-tiff_dep = dependency('libtiff-4')
25-webp_dep = dependency('libwebp', required : false)
26+png_dep = dependency('libpng', required: get_option('png'))
27+tiff_dep = dependency('libtiff-4', required: get_option('tiff'))
28+webp_dep = dependency('libwebp', required : get_option('webp'))
29 udev_dep = dependency('libudev')
30 input_dep = dependency('libinput')
31 xkb_dep = dependency('xkbcommon')
32@@ -36,20 +36,20 @@ jpeg_dep = cc.find_library('jpeg')
33 util_dep = cc.find_library('util')
34 math_dep = cc.find_library('m', required : false)
35 pcd_dep = cc.find_library('pcd', required : false)
36-gif_dep = cc.find_library('gif', required : false)
37+gif_dep = cc.find_library('gif', required: get_option('gif'))
38
39 # motif + x11 libs
40-motif_dep = cc.find_library('Xm', required : false)
41-xpm_dep = cc.find_library('Xpm', required : false)
42-xt_dep = cc.find_library('Xt', required : false)
43-xext_dep = cc.find_library('Xext', required : false)
44-x11_dep = cc.find_library('X11', required : false)
45+motif_dep = cc.find_library('Xm', required : get_option('motif'))
46+xpm_dep = cc.find_library('Xpm', required : get_option('motif'))
47+xt_dep = cc.find_library('Xt', required : get_option('motif'))
48+xext_dep = cc.find_library('Xext', required : get_option('motif'))
49+x11_dep = cc.find_library('X11', required : get_option('motif'))
50
51 # image formats
52 read_srcs = [ 'readers.c', 'rd/read-ppm.c', 'rd/read-bmp.c',
53- 'rd/read-jpeg.c', 'rd/read-png.c', 'rd/read-tiff.c' ]
54+ 'rd/read-jpeg.c' ]
55 write_srcs = [ 'writers.c', 'wr/write-ppm.c', 'wr/write-ps.c',
56- 'wr/write-jpeg.c', 'wr/write-png.c', 'wr/write-tiff.c' ]
57+ 'wr/write-jpeg.c' ]
58 image_deps = [ jpeg_dep, png_dep, tiff_dep,
59 pcd_dep, gif_dep, webp_dep ]
60
61@@ -57,11 +57,21 @@ if pcd_dep.found()
62 read_srcs += 'rd/read-pcd.c'
63 config.set('HAVE_LIBPCD', true)
64 endif
65-if gif_dep.found()
66+if get_option('png').enabled()
67+ read_srcs += 'rd/read-png.c'
68+ write_srcs += 'wr/write-png.c'
69+ config.set('HAVE_LIBPNG', true)
70+endif
71+if get_option('tiff').enabled()
72+ read_srcs += 'rd/read-tiff.c'
73+ write_srcs += 'wr/write-tiff.c'
74+ config.set('HAVE_LIBTIFF', true)
75+endif
76+if get_option('gif').enabled()
77 read_srcs += 'rd/read-gif.c'
78 config.set('HAVE_LIBGIF', true)
79 endif
80-if webp_dep.found()
81+if get_option('webp').enabled()
82 read_srcs += 'rd/read-webp.c'
83 config.set('HAVE_LIBWEBP', true)
84 endif
85@@ -168,7 +181,7 @@ ida_srcs = [ 'ida.c', 'man.c', 'hex.c', 'x11.c', 'viewer.c',
86 ida_deps = [ pixman_dep, exif_dep, image_deps, math_dep,
87 motif_dep, xpm_dep, xt_dep, xext_dep, x11_dep ]
88
89-if motif_dep.found()
90+if get_option('motif').enabled()
91 executable('ida',
92 sources : ida_srcs,
93 dependencies : ida_deps,
94diff --git a/meson_options.txt b/meson_options.txt
95new file mode 100644
96index 0000000..ce37188
97--- /dev/null
98+++ b/meson_options.txt
99@@ -0,0 +1,5 @@
100+option('gif', type: 'feature', value : 'enabled')
101+option('png', type: 'feature', value : 'enabled')
102+option('tiff', type: 'feature', value : 'enabled')
103+option('webp', type: 'feature', value : 'disabled')
104+option('motif', type: 'feature', value : 'disabled')
105diff --git a/selections.c b/selections.c
106index 7b16264..ccdc686 100644
107--- a/selections.c
108+++ b/selections.c
109@@ -609,8 +609,12 @@ void ipc_init()
110 #ifdef HAVE_LIBGIF
111 targets[ntargets++] = MIME_IMAGE_GIF;
112 #endif
113+#ifdef HAVE_LIBPNG
114 targets[ntargets++] = MIME_IMAGE_PNG;
115+#endif
116+#ifdef HAVE_LIBTIFF
117 targets[ntargets++] = MIME_IMAGE_TIFF;
118+#endif
119 targets[ntargets++] = XA_PIXMAP;
120 targets[ntargets++] = XA_STRING;
121
122--
1232.37.3
124
diff --git a/meta-oe/recipes-graphics/fbida/files/0003-meson.build-do-not-require-xkbcommon.patch b/meta-oe/recipes-graphics/fbida/files/0003-meson.build-do-not-require-xkbcommon.patch
deleted file mode 100644
index e769014131..0000000000
--- a/meta-oe/recipes-graphics/fbida/files/0003-meson.build-do-not-require-xkbcommon.patch
+++ /dev/null
@@ -1,27 +0,0 @@
1From ec82a194f3454ac203a134c9a99bac6d63095d25 Mon Sep 17 00:00:00 2001
2From: "Meyer, Wolfgang" <Wolfgang.Meyer@gossenmetrawatt.com>
3Date: Fri, 16 Sep 2022 18:29:03 +0200
4Subject: [PATCH] meson.build: do not require xkbcommon
5
6Upstream-Status: Pending
7Signed-off-by: "Meyer, Wolfgang" <Wolfgang.Meyer@gossenmetrawatt.com>
8---
9 meson.build | 2 +-
10 1 file changed, 1 insertion(+), 1 deletion(-)
11
12diff --git a/meson.build b/meson.build
13index 341939c..b5dab14 100644
14--- a/meson.build
15+++ b/meson.build
16@@ -26,7 +26,7 @@ tiff_dep = dependency('libtiff-4', required: get_option('tiff'))
17 webp_dep = dependency('libwebp', required : get_option('webp'))
18 udev_dep = dependency('libudev')
19 input_dep = dependency('libinput')
20-xkb_dep = dependency('xkbcommon')
21+xkb_dep = dependency('xkbcommon', required : false)
22 tsm_dep = dependency('libtsm', required : false)
23
24 # other library deps
25--
262.37.3
27
diff --git a/meta-oe/recipes-graphics/fbida/files/fbida-gcc10.patch b/meta-oe/recipes-graphics/fbida/files/fbida-gcc10.patch
deleted file mode 100644
index 1104289f3c..0000000000
--- a/meta-oe/recipes-graphics/fbida/files/fbida-gcc10.patch
+++ /dev/null
@@ -1,61 +0,0 @@
1Fix build with gcc10
2
3Patch from https://src.fedoraproject.org/rpms/fbida/raw/master/f/fbida.gcc10.patch
4
5Upstream-Status: Pending
6Signed-off-by: Khem Raj <raj.khem@gmail.com>
7
8--- fbida-2.14/fbi.c.org 2020-03-15 17:02:17.944189632 +0100
9+++ fbida-2.14/fbi.c 2020-03-15 17:02:21.880223224 +0100
10@@ -100,7 +100,6 @@
11
12 /* graphics interface */
13 gfxstate *gfx;
14-int debug;
15
16 /* framebuffer */
17 char *fbdev = NULL;
18--- fbida-2.14/filter.c 2020-03-15 16:44:17.159855150 +0100
19+++ fbida-2.14/filter.c 2020-03-15 16:44:27.017941447 +0100
20@@ -6,8 +6,6 @@
21 #include "readers.h"
22 #include "filter.h"
23
24-int debug = 0;
25-
26 /* ----------------------------------------------------------------------- */
27
28 static void
29--- fbida-2.14/readers.c.org 2020-03-15 17:01:18.692683597 +0100
30+++ fbida-2.14/readers.c 2020-03-15 16:57:19.141632384 +0100
31@@ -6,6 +6,8 @@
32
33 #include "readers.h"
34
35+int debug=0;
36+
37 /* ----------------------------------------------------------------------- */
38
39 void load_bits_lsb(unsigned char *dst, unsigned char *src, int width,
40
41--- fbida-2.14/viewer.c.org 2020-03-15 17:05:02.991595832 +0100
42+++ fbida-2.14/viewer.c 2020-03-15 17:04:55.424531467 +0100
43@@ -40,7 +40,6 @@
44 #define PROCESS_LINES 16
45
46-int debug;
47 Cursor ptrs[POINTER_COUNT];
48
49 /* ----------------------------------------------------------------------- */
50
51--- fbida-2.14/idaconfig.h.org 2020-03-15 17:07:09.239668196 +0100
52+++ fbida-2.14/idaconfig.h 2020-03-15 17:07:21.248770061 +0100
53@@ -17,7 +17,7 @@
54
55 /* -------------------------------------------------------------------------- */
56
57-char *ida_lists;
58+extern char *ida_lists;
59
60 void ida_init_config(void);
61 void ida_read_config(void);