summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--meta-oe/recipes-extended/libblockdev/files/0001-libext2fs-unused-parameters-fix.patch92
-rw-r--r--meta-oe/recipes-extended/libblockdev/libblockdev_3.2.0.bb (renamed from meta-oe/recipes-extended/libblockdev/libblockdev_3.1.1.bb)13
2 files changed, 7 insertions, 98 deletions
diff --git a/meta-oe/recipes-extended/libblockdev/files/0001-libext2fs-unused-parameters-fix.patch b/meta-oe/recipes-extended/libblockdev/files/0001-libext2fs-unused-parameters-fix.patch
deleted file mode 100644
index 8129c1e2a7..0000000000
--- a/meta-oe/recipes-extended/libblockdev/files/0001-libext2fs-unused-parameters-fix.patch
+++ /dev/null
@@ -1,92 +0,0 @@
1From 3aad8d471201da4125bd03d7a6921707461fe182 Mon Sep 17 00:00:00 2001
2From: Vojtech Trefny <vtrefny@redhat.com>
3Date: Fri, 7 Jun 2024 10:06:22 +0200
4Subject: [PATCH 1/3] fs: Ignore unused-parameter warning in the FS plugin
5
6There are some unused parameters in the libext2fs header which
7together with Wall and Werror means the plugin compilation fails.
8As a workaround we'll disable the unused-parameter warning for
9now.
10
11Fixes: #1026
12
13Taken from Fedora
14
15Upstream-Status: Pending
16Signed-off-by: Khem Raj <raj.khem@gmail.com>
17
18---
19 src/plugins/fs/Makefile.am | 2 +-
20 1 file changed, 1 insertion(+), 1 deletion(-)
21
22diff --git a/src/plugins/fs/Makefile.am b/src/plugins/fs/Makefile.am
23index 7d4849c0..00474d5a 100644
24--- a/src/plugins/fs/Makefile.am
25+++ b/src/plugins/fs/Makefile.am
26@@ -2,7 +2,7 @@ AUTOMAKE_OPTIONS = subdir-objects
27
28 lib_LTLIBRARIES = libbd_fs.la
29
30-libbd_fs_la_CFLAGS = $(GLIB_CFLAGS) $(GIO_CFLAGS) $(BLKID_CFLAGS) $(MOUNT_CFLAGS) $(UUID_CFLAGS) $(EXT2FS_CFLAGS) -Wall -Wextra -Werror
31+libbd_fs_la_CFLAGS = $(GLIB_CFLAGS) $(GIO_CFLAGS) $(BLKID_CFLAGS) $(MOUNT_CFLAGS) $(UUID_CFLAGS) $(EXT2FS_CFLAGS) -Wall -Wextra -Werror -Wno-unused-parameter
32 libbd_fs_la_LIBADD = ${builddir}/../../utils/libbd_utils.la $(GLIB_LIBS) $(GIO_LIBS) $(BLKID_LIBS) $(MOUNT_LIBS) $(UUID_LIBS) $(EXT2FS_LIBS)
33 libbd_fs_la_LDFLAGS = -L${srcdir}/../../utils/ -version-info 3:0:0 -Wl,--no-undefined -export-symbols-regex '^bd_.*'
34 libbd_fs_la_CPPFLAGS = -I${builddir}/../../../include/ -I${srcdir}/../
35--
362.45.2
37
38
39From da5c14f3e2f83c8c40203897154ee2b788782792 Mon Sep 17 00:00:00 2001
40From: Vojtech Trefny <vtrefny@redhat.com>
41Date: Fri, 7 Jun 2024 15:21:09 +0200
42Subject: [PATCH 2/3] fs: Ignore shift-count-overflow warning in FS plugin
43
44The warning happens in the libext2fs header.
45---
46 src/plugins/fs/Makefile.am | 2 +-
47 1 file changed, 1 insertion(+), 1 deletion(-)
48
49diff --git a/src/plugins/fs/Makefile.am b/src/plugins/fs/Makefile.am
50index 00474d5a..42e1c777 100644
51--- a/src/plugins/fs/Makefile.am
52+++ b/src/plugins/fs/Makefile.am
53@@ -2,7 +2,7 @@ AUTOMAKE_OPTIONS = subdir-objects
54
55 lib_LTLIBRARIES = libbd_fs.la
56
57-libbd_fs_la_CFLAGS = $(GLIB_CFLAGS) $(GIO_CFLAGS) $(BLKID_CFLAGS) $(MOUNT_CFLAGS) $(UUID_CFLAGS) $(EXT2FS_CFLAGS) -Wall -Wextra -Werror -Wno-unused-parameter
58+libbd_fs_la_CFLAGS = $(GLIB_CFLAGS) $(GIO_CFLAGS) $(BLKID_CFLAGS) $(MOUNT_CFLAGS) $(UUID_CFLAGS) $(EXT2FS_CFLAGS) -Wall -Wextra -Werror -Wno-unused-parameter -Wno-shift-count-overflow
59 libbd_fs_la_LIBADD = ${builddir}/../../utils/libbd_utils.la $(GLIB_LIBS) $(GIO_LIBS) $(BLKID_LIBS) $(MOUNT_LIBS) $(UUID_LIBS) $(EXT2FS_LIBS)
60 libbd_fs_la_LDFLAGS = -L${srcdir}/../../utils/ -version-info 3:0:0 -Wl,--no-undefined -export-symbols-regex '^bd_.*'
61 libbd_fs_la_CPPFLAGS = -I${builddir}/../../../include/ -I${srcdir}/../
62--
632.45.2
64
65
66From 90ceb4b52fbda34673fe5303da84b9a902187503 Mon Sep 17 00:00:00 2001
67From: Vojtech Trefny <vtrefny@redhat.com>
68Date: Wed, 12 Jun 2024 15:34:02 +0200
69Subject: [PATCH 3/3] fs: Fix ignoring errors from libext2fs
70
71Follow-up for #1028, we still want to show the warning and not
72completely supress it.
73---
74 src/plugins/fs/Makefile.am | 2 +-
75 1 file changed, 1 insertion(+), 1 deletion(-)
76
77diff --git a/src/plugins/fs/Makefile.am b/src/plugins/fs/Makefile.am
78index 42e1c777..1ee256f0 100644
79--- a/src/plugins/fs/Makefile.am
80+++ b/src/plugins/fs/Makefile.am
81@@ -2,7 +2,7 @@ AUTOMAKE_OPTIONS = subdir-objects
82
83 lib_LTLIBRARIES = libbd_fs.la
84
85-libbd_fs_la_CFLAGS = $(GLIB_CFLAGS) $(GIO_CFLAGS) $(BLKID_CFLAGS) $(MOUNT_CFLAGS) $(UUID_CFLAGS) $(EXT2FS_CFLAGS) -Wall -Wextra -Werror -Wno-unused-parameter -Wno-shift-count-overflow
86+libbd_fs_la_CFLAGS = $(GLIB_CFLAGS) $(GIO_CFLAGS) $(BLKID_CFLAGS) $(MOUNT_CFLAGS) $(UUID_CFLAGS) $(EXT2FS_CFLAGS) -Wall -Wextra -Werror -Wno-error=unused-parameter -Wno-error=shift-count-overflow
87 libbd_fs_la_LIBADD = ${builddir}/../../utils/libbd_utils.la $(GLIB_LIBS) $(GIO_LIBS) $(BLKID_LIBS) $(MOUNT_LIBS) $(UUID_LIBS) $(EXT2FS_LIBS)
88 libbd_fs_la_LDFLAGS = -L${srcdir}/../../utils/ -version-info 3:0:0 -Wl,--no-undefined -export-symbols-regex '^bd_.*'
89 libbd_fs_la_CPPFLAGS = -I${builddir}/../../../include/ -I${srcdir}/../
90--
912.45.2
92
diff --git a/meta-oe/recipes-extended/libblockdev/libblockdev_3.1.1.bb b/meta-oe/recipes-extended/libblockdev/libblockdev_3.2.0.bb
index a42e09d336..baf2acca5f 100644
--- a/meta-oe/recipes-extended/libblockdev/libblockdev_3.1.1.bb
+++ b/meta-oe/recipes-extended/libblockdev/libblockdev_3.2.0.bb
@@ -12,19 +12,18 @@ inherit autotools gobject-introspection pkgconfig lib_package
12 12
13DEPENDS = "autoconf-archive-native glib-2.0 kmod udev libnvme" 13DEPENDS = "autoconf-archive-native glib-2.0 kmod udev libnvme"
14 14
15SRC_URI = "git://github.com/storaged-project/libblockdev;branch=3.1.x-devel;protocol=https \ 15SRC_URI = "git://github.com/storaged-project/libblockdev;branch=master;protocol=https \
16 file://0001-fix-pythondir-for-multilib-when-cross-compiling.patch \ 16 file://0001-fix-pythondir-for-multilib-when-cross-compiling.patch \
17 file://0001-libext2fs-unused-parameters-fix.patch \
18 " 17 "
19SRCREV = "68aaff5556afe26be749c29a2b7cbd714dce3050" 18SRCREV = "27881cb6e57eb0146c51d032ea72fbb3cd6bda7e"
20S = "${WORKDIR}/git" 19S = "${WORKDIR}/git"
21 20
22FILES:${PN} += "${PYTHON_SITEPACKAGES_DIR}" 21FILES:${PN} += "${PYTHON_SITEPACKAGES_DIR}"
23 22
24PACKAGECONFIG ??= "python3 lvm lvm-dbus dm parted fs escrow btrfs crypto mdraid mpath nvdimm tools" 23PACKAGECONFIG ??= "python3 lvm lvm-dbus dm parted fs escrow btrfs crypto mdraid mpath nvdimm tools smart smartmontools"
25PACKAGECONFIG[python3] = "--with-python3, --without-python3,,python3" 24PACKAGECONFIG[python3] = "--with-python3, --without-python3,,python3"
26PACKAGECONFIG[lvm] = "--with-lvm, --without-lvm, multipath-tools, lvm2" 25PACKAGECONFIG[lvm] = "--with-lvm, --without-lvm, multipath-tools libyaml, lvm2"
27PACKAGECONFIG[lvm-dbus] = "--with-lvm_dbus, --without-lvm_dbus, multipath-tools, lvm2" 26PACKAGECONFIG[lvm-dbus] = "--with-lvm_dbus, --without-lvm_dbus, multipath-tools libyaml, lvm2"
28PACKAGECONFIG[dm] = "--with-dm, --without-dm, multipath-tools, lvm2" 27PACKAGECONFIG[dm] = "--with-dm, --without-dm, multipath-tools, lvm2"
29PACKAGECONFIG[parted] = "--with-part, --without-part, parted" 28PACKAGECONFIG[parted] = "--with-part, --without-part, parted"
30PACKAGECONFIG[fs] = "--with-fs, --without-fs, e2fsprogs util-linux" 29PACKAGECONFIG[fs] = "--with-fs, --without-fs, e2fsprogs util-linux"
@@ -36,5 +35,7 @@ PACKAGECONFIG[crypto] = "--with-crypto,--without-crypto,cryptsetup keyutils nss
36PACKAGECONFIG[mdraid] = "--with-mdraid,--without-mdraid,libbytesize" 35PACKAGECONFIG[mdraid] = "--with-mdraid,--without-mdraid,libbytesize"
37PACKAGECONFIG[mpath] = "--with-mpath,--without-mpath, multipath-tools, lvm2" 36PACKAGECONFIG[mpath] = "--with-mpath,--without-mpath, multipath-tools, lvm2"
38PACKAGECONFIG[tools] = "--with-tools,--without-tools,libbytesize libdevmapper" 37PACKAGECONFIG[tools] = "--with-tools,--without-tools,libbytesize libdevmapper"
38PACKAGECONFIG[smart] = "--with-smart,--without-smart,libatasmart"
39PACKAGECONFIG[smartmontools] = "--with-smartmontools,--without-smartmontools,json-glib,smartmontools"
39 40
40export GIR_EXTRA_LIBS_PATH="${B}/src/utils/.libs" 41export GIR_EXTRA_LIBS_PATH="${B}/src/utils/.libs"