diff options
| -rw-r--r-- | meta-oe/recipes-extended/libblockdev/files/0001-libext2fs-unused-parameters-fix.patch | 92 | ||||
| -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 @@ | |||
| 1 | From 3aad8d471201da4125bd03d7a6921707461fe182 Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Vojtech Trefny <vtrefny@redhat.com> | ||
| 3 | Date: Fri, 7 Jun 2024 10:06:22 +0200 | ||
| 4 | Subject: [PATCH 1/3] fs: Ignore unused-parameter warning in the FS plugin | ||
| 5 | |||
| 6 | There are some unused parameters in the libext2fs header which | ||
| 7 | together with Wall and Werror means the plugin compilation fails. | ||
| 8 | As a workaround we'll disable the unused-parameter warning for | ||
| 9 | now. | ||
| 10 | |||
| 11 | Fixes: #1026 | ||
| 12 | |||
| 13 | Taken from Fedora | ||
| 14 | |||
| 15 | Upstream-Status: Pending | ||
| 16 | Signed-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 | |||
| 22 | diff --git a/src/plugins/fs/Makefile.am b/src/plugins/fs/Makefile.am | ||
| 23 | index 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 | -- | ||
| 36 | 2.45.2 | ||
| 37 | |||
| 38 | |||
| 39 | From da5c14f3e2f83c8c40203897154ee2b788782792 Mon Sep 17 00:00:00 2001 | ||
| 40 | From: Vojtech Trefny <vtrefny@redhat.com> | ||
| 41 | Date: Fri, 7 Jun 2024 15:21:09 +0200 | ||
| 42 | Subject: [PATCH 2/3] fs: Ignore shift-count-overflow warning in FS plugin | ||
| 43 | |||
| 44 | The warning happens in the libext2fs header. | ||
| 45 | --- | ||
| 46 | src/plugins/fs/Makefile.am | 2 +- | ||
| 47 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
| 48 | |||
| 49 | diff --git a/src/plugins/fs/Makefile.am b/src/plugins/fs/Makefile.am | ||
| 50 | index 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 | -- | ||
| 63 | 2.45.2 | ||
| 64 | |||
| 65 | |||
| 66 | From 90ceb4b52fbda34673fe5303da84b9a902187503 Mon Sep 17 00:00:00 2001 | ||
| 67 | From: Vojtech Trefny <vtrefny@redhat.com> | ||
| 68 | Date: Wed, 12 Jun 2024 15:34:02 +0200 | ||
| 69 | Subject: [PATCH 3/3] fs: Fix ignoring errors from libext2fs | ||
| 70 | |||
| 71 | Follow-up for #1028, we still want to show the warning and not | ||
| 72 | completely supress it. | ||
| 73 | --- | ||
| 74 | src/plugins/fs/Makefile.am | 2 +- | ||
| 75 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
| 76 | |||
| 77 | diff --git a/src/plugins/fs/Makefile.am b/src/plugins/fs/Makefile.am | ||
| 78 | index 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 | -- | ||
| 91 | 2.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 | ||
| 13 | DEPENDS = "autoconf-archive-native glib-2.0 kmod udev libnvme" | 13 | DEPENDS = "autoconf-archive-native glib-2.0 kmod udev libnvme" |
| 14 | 14 | ||
| 15 | SRC_URI = "git://github.com/storaged-project/libblockdev;branch=3.1.x-devel;protocol=https \ | 15 | SRC_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 | " |
| 19 | SRCREV = "68aaff5556afe26be749c29a2b7cbd714dce3050" | 18 | SRCREV = "27881cb6e57eb0146c51d032ea72fbb3cd6bda7e" |
| 20 | S = "${WORKDIR}/git" | 19 | S = "${WORKDIR}/git" |
| 21 | 20 | ||
| 22 | FILES:${PN} += "${PYTHON_SITEPACKAGES_DIR}" | 21 | FILES:${PN} += "${PYTHON_SITEPACKAGES_DIR}" |
| 23 | 22 | ||
| 24 | PACKAGECONFIG ??= "python3 lvm lvm-dbus dm parted fs escrow btrfs crypto mdraid mpath nvdimm tools" | 23 | PACKAGECONFIG ??= "python3 lvm lvm-dbus dm parted fs escrow btrfs crypto mdraid mpath nvdimm tools smart smartmontools" |
| 25 | PACKAGECONFIG[python3] = "--with-python3, --without-python3,,python3" | 24 | PACKAGECONFIG[python3] = "--with-python3, --without-python3,,python3" |
| 26 | PACKAGECONFIG[lvm] = "--with-lvm, --without-lvm, multipath-tools, lvm2" | 25 | PACKAGECONFIG[lvm] = "--with-lvm, --without-lvm, multipath-tools libyaml, lvm2" |
| 27 | PACKAGECONFIG[lvm-dbus] = "--with-lvm_dbus, --without-lvm_dbus, multipath-tools, lvm2" | 26 | PACKAGECONFIG[lvm-dbus] = "--with-lvm_dbus, --without-lvm_dbus, multipath-tools libyaml, lvm2" |
| 28 | PACKAGECONFIG[dm] = "--with-dm, --without-dm, multipath-tools, lvm2" | 27 | PACKAGECONFIG[dm] = "--with-dm, --without-dm, multipath-tools, lvm2" |
| 29 | PACKAGECONFIG[parted] = "--with-part, --without-part, parted" | 28 | PACKAGECONFIG[parted] = "--with-part, --without-part, parted" |
| 30 | PACKAGECONFIG[fs] = "--with-fs, --without-fs, e2fsprogs util-linux" | 29 | PACKAGECONFIG[fs] = "--with-fs, --without-fs, e2fsprogs util-linux" |
| @@ -36,5 +35,7 @@ PACKAGECONFIG[crypto] = "--with-crypto,--without-crypto,cryptsetup keyutils nss | |||
| 36 | PACKAGECONFIG[mdraid] = "--with-mdraid,--without-mdraid,libbytesize" | 35 | PACKAGECONFIG[mdraid] = "--with-mdraid,--without-mdraid,libbytesize" |
| 37 | PACKAGECONFIG[mpath] = "--with-mpath,--without-mpath, multipath-tools, lvm2" | 36 | PACKAGECONFIG[mpath] = "--with-mpath,--without-mpath, multipath-tools, lvm2" |
| 38 | PACKAGECONFIG[tools] = "--with-tools,--without-tools,libbytesize libdevmapper" | 37 | PACKAGECONFIG[tools] = "--with-tools,--without-tools,libbytesize libdevmapper" |
| 38 | PACKAGECONFIG[smart] = "--with-smart,--without-smart,libatasmart" | ||
| 39 | PACKAGECONFIG[smartmontools] = "--with-smartmontools,--without-smartmontools,json-glib,smartmontools" | ||
| 39 | 40 | ||
| 40 | export GIR_EXTRA_LIBS_PATH="${B}/src/utils/.libs" | 41 | export GIR_EXTRA_LIBS_PATH="${B}/src/utils/.libs" |
