diff options
-rw-r--r-- | meta-oe/recipes-extended/libblockdev/files/0001-fix-configure-and-compile-failures.patch | 14 | ||||
-rw-r--r-- | meta-oe/recipes-extended/libblockdev/files/0003-remove-dmraid-while-compiling-with-with-dm.patch | 66 | ||||
-rw-r--r-- | meta-oe/recipes-extended/libblockdev/files/0004-fix-compile-failure-against-musl-C-library.patch | 12 | ||||
-rw-r--r-- | meta-oe/recipes-extended/libblockdev/files/0005-fix-a-clang-compiling-issue.patch | 36 | ||||
-rw-r--r-- | meta-oe/recipes-extended/libblockdev/libblockdev_2.16.bb (renamed from meta-oe/recipes-extended/libblockdev/libblockdev_2.10.bb) | 30 |
5 files changed, 90 insertions, 68 deletions
diff --git a/meta-oe/recipes-extended/libblockdev/files/0001-fix-configure-and-compile-failures.patch b/meta-oe/recipes-extended/libblockdev/files/0001-fix-configure-and-compile-failures.patch index 914ee99db2..745883ebe8 100644 --- a/meta-oe/recipes-extended/libblockdev/files/0001-fix-configure-and-compile-failures.patch +++ b/meta-oe/recipes-extended/libblockdev/files/0001-fix-configure-and-compile-failures.patch | |||
@@ -33,7 +33,7 @@ Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com> | |||
33 | 1 file changed, 4 insertions(+), 6 deletions(-) | 33 | 1 file changed, 4 insertions(+), 6 deletions(-) |
34 | 34 | ||
35 | diff --git a/configure.ac b/configure.ac | 35 | diff --git a/configure.ac b/configure.ac |
36 | index 0270c99..b7c7368 100644 | 36 | index d41a307..b036e04 100644 |
37 | --- a/configure.ac | 37 | --- a/configure.ac |
38 | +++ b/configure.ac | 38 | +++ b/configure.ac |
39 | @@ -9,6 +9,8 @@ AC_DISABLE_STATIC | 39 | @@ -9,6 +9,8 @@ AC_DISABLE_STATIC |
@@ -45,7 +45,7 @@ index 0270c99..b7c7368 100644 | |||
45 | AM_PATH_PYTHON | 45 | AM_PATH_PYTHON |
46 | 46 | ||
47 | AM_PROG_AR | 47 | AM_PROG_AR |
48 | @@ -129,7 +131,6 @@ LIBBLOCKDEV_PKG_CHECK_MODULES([UDEV], [libudev >= 216]) | 48 | @@ -154,7 +156,6 @@ LIBBLOCKDEV_PKG_CHECK_MODULES([KMOD], [libkmod >= 19]) |
49 | AS_IF([test "x$with_crypto" != "xno"], | 49 | AS_IF([test "x$with_crypto" != "xno"], |
50 | [LIBBLOCKDEV_PKG_CHECK_MODULES([CRYPTSETUP], [libcryptsetup >= 1.6.7]) | 50 | [LIBBLOCKDEV_PKG_CHECK_MODULES([CRYPTSETUP], [libcryptsetup >= 1.6.7]) |
51 | LIBBLOCKDEV_PKG_CHECK_MODULES([NSS], [nss >= 3.18.0]) | 51 | LIBBLOCKDEV_PKG_CHECK_MODULES([NSS], [nss >= 3.18.0]) |
@@ -53,7 +53,7 @@ index 0270c99..b7c7368 100644 | |||
53 | ], | 53 | ], |
54 | []) | 54 | []) |
55 | 55 | ||
56 | @@ -137,10 +138,6 @@ AS_IF([test "x$with_dm" != "xno" -o "x$with_lvm" != "xno" -o "x$with_lvm_dbus" ! | 56 | @@ -162,10 +163,6 @@ AS_IF([test "x$with_dm" != "xno" -o "x$with_lvm" != "xno" -o "x$with_lvm_dbus" ! |
57 | [LIBBLOCKDEV_PKG_CHECK_MODULES([DEVMAPPER], [devmapper >= 1.02.93])], | 57 | [LIBBLOCKDEV_PKG_CHECK_MODULES([DEVMAPPER], [devmapper >= 1.02.93])], |
58 | []) | 58 | []) |
59 | 59 | ||
@@ -61,10 +61,10 @@ index 0270c99..b7c7368 100644 | |||
61 | - [LIBBLOCKDEV_CHECK_HEADER([dmraid/dmraid.h], [], [dmraid.h not available])], | 61 | - [LIBBLOCKDEV_CHECK_HEADER([dmraid/dmraid.h], [], [dmraid.h not available])], |
62 | - []) | 62 | - []) |
63 | - | 63 | - |
64 | AS_IF([test "x$with_kbd" != "xno"], | 64 | AS_IF([test "x$with_part" != "xno" -o "x$with_fs" != "xno"], |
65 | [LIBBLOCKDEV_PKG_CHECK_MODULES([KMOD], [libkmod >= 19])], | 65 | [LIBBLOCKDEV_PKG_CHECK_MODULES([PARTED], [libparted >= 3.1])] |
66 | []) | 66 | []) |
67 | @@ -154,7 +151,8 @@ AS_IF([test "x$with_fs" != "xno"], | 67 | @@ -174,7 +171,8 @@ AS_IF([test "x$with_fs" != "xno"], |
68 | [LIBBLOCKDEV_PKG_CHECK_MODULES([MOUNT], [mount >= 2.23.0]) | 68 | [LIBBLOCKDEV_PKG_CHECK_MODULES([MOUNT], [mount >= 2.23.0]) |
69 | # new versions of libmount has some new functions we can use | 69 | # new versions of libmount has some new functions we can use |
70 | AS_IF([$PKG_CONFIG --atleast-version=2.30.0 mount], | 70 | AS_IF([$PKG_CONFIG --atleast-version=2.30.0 mount], |
@@ -75,5 +75,5 @@ index 0270c99..b7c7368 100644 | |||
75 | LIBBLOCKDEV_PKG_CHECK_MODULES([BLKID], [blkid >= 2.23.0]) | 75 | LIBBLOCKDEV_PKG_CHECK_MODULES([BLKID], [blkid >= 2.23.0]) |
76 | # older versions of libblkid don't support BLKID_SUBLKS_BADCSUM so let's just | 76 | # older versions of libblkid don't support BLKID_SUBLKS_BADCSUM so let's just |
77 | -- | 77 | -- |
78 | 1.8.3.1 | 78 | 2.14.3 |
79 | 79 | ||
diff --git a/meta-oe/recipes-extended/libblockdev/files/0003-remove-dmraid-while-compiling-with-with-dm.patch b/meta-oe/recipes-extended/libblockdev/files/0003-remove-dmraid-while-compiling-with-with-dm.patch index 3d9cb6d018..ac5b5e2beb 100644 --- a/meta-oe/recipes-extended/libblockdev/files/0003-remove-dmraid-while-compiling-with-with-dm.patch +++ b/meta-oe/recipes-extended/libblockdev/files/0003-remove-dmraid-while-compiling-with-with-dm.patch | |||
@@ -22,21 +22,22 @@ Upstream-Status: Inappropriate [oe specific] | |||
22 | 22 | ||
23 | Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com> | 23 | Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com> |
24 | --- | 24 | --- |
25 | src/lib/plugin_apis/dm.api | 41 ----- | 25 | src/lib/plugin_apis/dm.api | 50 ------ |
26 | src/plugins/Makefile.am | 2 +- | 26 | src/plugins/Makefile.am | 2 +- |
27 | src/plugins/dm.c | 318 ------------------------------------ | 27 | src/plugins/dm.c | 330 ------------------------------------ |
28 | src/plugins/dm.h | 5 - | 28 | src/plugins/dm.h | 5 - |
29 | src/python/gi/overrides/BlockDev.py | 6 - | 29 | src/python/gi/overrides/BlockDev.py | 6 - |
30 | 5 files changed, 1 insertion(+), 371 deletions(-) | 30 | 5 files changed, 1 insertion(+), 392 deletions(-) |
31 | 31 | ||
32 | diff --git a/src/lib/plugin_apis/dm.api b/src/lib/plugin_apis/dm.api | 32 | diff --git a/src/lib/plugin_apis/dm.api b/src/lib/plugin_apis/dm.api |
33 | index a885bba..ec86b80 100644 | 33 | index 04fd8d8..5d30b6a 100644 |
34 | --- a/src/lib/plugin_apis/dm.api | 34 | --- a/src/lib/plugin_apis/dm.api |
35 | +++ b/src/lib/plugin_apis/dm.api | 35 | +++ b/src/lib/plugin_apis/dm.api |
36 | @@ -68,44 +68,3 @@ gchar* bd_dm_node_from_name (const gchar *map_name, GError **error); | 36 | @@ -111,53 +111,3 @@ gchar* bd_dm_get_subsystem_from_name (const gchar *device_name, GError **error); |
37 | * Tech category: %BD_DM_TECH_MAP-%BD_DM_TECH_MODE_QUERY | ||
37 | */ | 38 | */ |
38 | gboolean bd_dm_map_exists (const gchar *map_name, gboolean live_only, gboolean active_only, GError **error); | 39 | gboolean bd_dm_map_exists (const gchar *map_name, gboolean live_only, gboolean active_only, GError **error); |
39 | 40 | - | |
40 | -/** | 41 | -/** |
41 | - * bd_dm_get_member_raid_sets: | 42 | - * bd_dm_get_member_raid_sets: |
42 | - * @name: (allow-none): name of the member | 43 | - * @name: (allow-none): name of the member |
@@ -49,6 +50,8 @@ index a885bba..ec86b80 100644 | |||
49 | - * the member or %NULL in case of error | 50 | - * the member or %NULL in case of error |
50 | - * | 51 | - * |
51 | - * One of @name, @uuid or @major:@minor has to be given. | 52 | - * One of @name, @uuid or @major:@minor has to be given. |
53 | - * | ||
54 | - * Tech category: %BD_DM_TECH_RAID-%BD_DM_TECH_MODE_QUERY | ||
52 | - */ | 55 | - */ |
53 | -gchar** bd_dm_get_member_raid_sets (const gchar *name, const gchar *uuid, gint major, gint minor, GError **error); | 56 | -gchar** bd_dm_get_member_raid_sets (const gchar *name, const gchar *uuid, gint major, gint minor, GError **error); |
54 | - | 57 | - |
@@ -58,6 +61,8 @@ index a885bba..ec86b80 100644 | |||
58 | - * @error: (out): variable to store error (if any) | 61 | - * @error: (out): variable to store error (if any) |
59 | - * | 62 | - * |
60 | - * Returns: whether the RAID set @name was successfully activate or not | 63 | - * Returns: whether the RAID set @name was successfully activate or not |
64 | - * | ||
65 | - * Tech category: %BD_DM_TECH_RAID-%BD_DM_TECH_CREATE_ACTIVATE | ||
61 | - */ | 66 | - */ |
62 | -gboolean bd_dm_activate_raid_set (const gchar *name, GError **error); | 67 | -gboolean bd_dm_activate_raid_set (const gchar *name, GError **error); |
63 | - | 68 | - |
@@ -67,6 +72,8 @@ index a885bba..ec86b80 100644 | |||
67 | - * @error: (out): variable to store error (if any) | 72 | - * @error: (out): variable to store error (if any) |
68 | - * | 73 | - * |
69 | - * Returns: whether the RAID set @name was successfully deactivate or not | 74 | - * Returns: whether the RAID set @name was successfully deactivate or not |
75 | - * | ||
76 | - * Tech category: %BD_DM_TECH_RAID-%BD_DM_TECH_REMOVE_DEACTIVATE | ||
70 | - */ | 77 | - */ |
71 | -gboolean bd_dm_deactivate_raid_set (const gchar *name, GError **error); | 78 | -gboolean bd_dm_deactivate_raid_set (const gchar *name, GError **error); |
72 | - | 79 | - |
@@ -76,13 +83,15 @@ index a885bba..ec86b80 100644 | |||
76 | - * @error: (out): variable to store error (if any) | 83 | - * @error: (out): variable to store error (if any) |
77 | - * | 84 | - * |
78 | - * Returns: string representation of the @name RAID set's type | 85 | - * Returns: string representation of the @name RAID set's type |
86 | - * | ||
87 | - * Tech category: %BD_DM_TECH_RAID-%BD_DM_TECH_QUERY | ||
79 | - */ | 88 | - */ |
80 | -gchar* bd_dm_get_raid_set_type (const gchar *name, GError **error); | 89 | -gchar* bd_dm_get_raid_set_type (const gchar *name, GError **error); |
81 | diff --git a/src/plugins/Makefile.am b/src/plugins/Makefile.am | 90 | diff --git a/src/plugins/Makefile.am b/src/plugins/Makefile.am |
82 | index 6c4038f..59dc5e3 100644 | 91 | index b69c8f7..7575f4a 100644 |
83 | --- a/src/plugins/Makefile.am | 92 | --- a/src/plugins/Makefile.am |
84 | +++ b/src/plugins/Makefile.am | 93 | +++ b/src/plugins/Makefile.am |
85 | @@ -76,7 +76,7 @@ endif | 94 | @@ -75,7 +75,7 @@ endif |
86 | 95 | ||
87 | if WITH_DM | 96 | if WITH_DM |
88 | libbd_dm_la_CFLAGS = $(GLIB_CFLAGS) $(DEVMAPPER_CFLAGS) $(UDEV_CFLAGS) -Wall -Wextra -Werror | 97 | libbd_dm_la_CFLAGS = $(GLIB_CFLAGS) $(DEVMAPPER_CFLAGS) $(UDEV_CFLAGS) -Wall -Wextra -Werror |
@@ -92,10 +101,10 @@ index 6c4038f..59dc5e3 100644 | |||
92 | # Dear author of libdmdraid, VERSION really is not a good name for an enum member! | 101 | # Dear author of libdmdraid, VERSION really is not a good name for an enum member! |
93 | libbd_dm_la_CPPFLAGS = -I${builddir}/../../include/ -UVERSION | 102 | libbd_dm_la_CPPFLAGS = -I${builddir}/../../include/ -UVERSION |
94 | diff --git a/src/plugins/dm.c b/src/plugins/dm.c | 103 | diff --git a/src/plugins/dm.c b/src/plugins/dm.c |
95 | index 9cee742..fd7c7ba 100644 | 104 | index 0e5466c..31ebe96 100644 |
96 | --- a/src/plugins/dm.c | 105 | --- a/src/plugins/dm.c |
97 | +++ b/src/plugins/dm.c | 106 | +++ b/src/plugins/dm.c |
98 | @@ -21,16 +21,10 @@ | 107 | @@ -21,17 +21,11 @@ |
99 | #include <unistd.h> | 108 | #include <unistd.h> |
100 | #include <blockdev/utils.h> | 109 | #include <blockdev/utils.h> |
101 | #include <libdevmapper.h> | 110 | #include <libdevmapper.h> |
@@ -103,6 +112,7 @@ index 9cee742..fd7c7ba 100644 | |||
103 | #include <libudev.h> | 112 | #include <libudev.h> |
104 | 113 | ||
105 | #include "dm.h" | 114 | #include "dm.h" |
115 | #include "check_deps.h" | ||
106 | 116 | ||
107 | -/* macros taken from the pyblock/dmraid.h file plus one more*/ | 117 | -/* macros taken from the pyblock/dmraid.h file plus one more*/ |
108 | -#define for_each_raidset(_c, _n) list_for_each_entry(_n, LC_RS(_c), list) | 118 | -#define for_each_raidset(_c, _n) list_for_each_entry(_n, LC_RS(_c), list) |
@@ -112,10 +122,11 @@ index 9cee742..fd7c7ba 100644 | |||
112 | /** | 122 | /** |
113 | * SECTION: dm | 123 | * SECTION: dm |
114 | * @short_description: plugin for basic operations with device mapper | 124 | * @short_description: plugin for basic operations with device mapper |
115 | @@ -286,315 +280,3 @@ gboolean bd_dm_map_exists (const gchar *map_name, gboolean live_only, gboolean a | 125 | @@ -380,327 +374,3 @@ gboolean bd_dm_map_exists (const gchar *map_name, gboolean live_only, gboolean a |
126 | |||
116 | return ret; | 127 | return ret; |
117 | } | 128 | } |
118 | 129 | - | |
119 | -/** | 130 | -/** |
120 | - * init_dmraid_stack: (skip) | 131 | - * init_dmraid_stack: (skip) |
121 | - * | 132 | - * |
@@ -191,6 +202,9 @@ index 9cee742..fd7c7ba 100644 | |||
191 | - /* if we don't have the name, we cannot check any match */ | 202 | - /* if we don't have the name, we cannot check any match */ |
192 | - g_return_val_if_fail (dev_name, FALSE); | 203 | - g_return_val_if_fail (dev_name, FALSE); |
193 | - | 204 | - |
205 | - /* g_return_val_if_fail above checks value of dev_name and returns FALSE if | ||
206 | - * it is NULL so we don't need to check it here */ | ||
207 | - /* coverity[var_deref_model] */ | ||
194 | - if (name && strcmp (dev_name, name) != 0) { | 208 | - if (name && strcmp (dev_name, name) != 0) { |
195 | - return FALSE; | 209 | - return FALSE; |
196 | - } | 210 | - } |
@@ -220,8 +234,8 @@ index 9cee742..fd7c7ba 100644 | |||
220 | - * find_raid_sets_for_dev: (skip) | 234 | - * find_raid_sets_for_dev: (skip) |
221 | - */ | 235 | - */ |
222 | -static void find_raid_sets_for_dev (const gchar *name, const gchar *uuid, gint major, gint minor, struct lib_context *lc, struct raid_set *rs, GPtrArray *ret_sets) { | 236 | -static void find_raid_sets_for_dev (const gchar *name, const gchar *uuid, gint major, gint minor, struct lib_context *lc, struct raid_set *rs, GPtrArray *ret_sets) { |
223 | - struct raid_set *subset; | 237 | - struct raid_set *subset = NULL; |
224 | - struct raid_dev *dev; | 238 | - struct raid_dev *dev = NULL; |
225 | - | 239 | - |
226 | - if (T_GROUP(rs) || !list_empty(&(rs->sets))) { | 240 | - if (T_GROUP(rs) || !list_empty(&(rs->sets))) { |
227 | - for_each_subset (rs, subset) | 241 | - for_each_subset (rs, subset) |
@@ -246,6 +260,8 @@ index 9cee742..fd7c7ba 100644 | |||
246 | - * the member or %NULL in case of error | 260 | - * the member or %NULL in case of error |
247 | - * | 261 | - * |
248 | - * One of @name, @uuid or @major:@minor has to be given. | 262 | - * One of @name, @uuid or @major:@minor has to be given. |
263 | - * | ||
264 | - * Tech category: %BD_DM_TECH_RAID-%BD_DM_TECH_MODE_QUERY | ||
249 | - */ | 265 | - */ |
250 | -gchar** bd_dm_get_member_raid_sets (const gchar *name, const gchar *uuid, gint major, gint minor, GError **error) { | 266 | -gchar** bd_dm_get_member_raid_sets (const gchar *name, const gchar *uuid, gint major, gint minor, GError **error) { |
251 | - guint64 i = 0; | 267 | - guint64 i = 0; |
@@ -312,8 +328,8 @@ index 9cee742..fd7c7ba 100644 | |||
312 | - | 328 | - |
313 | -static gboolean change_set_by_name (const gchar *name, enum activate_type action, GError **error) { | 329 | -static gboolean change_set_by_name (const gchar *name, enum activate_type action, GError **error) { |
314 | - gint rc = 0; | 330 | - gint rc = 0; |
315 | - struct lib_context *lc; | 331 | - struct lib_context *lc = NULL; |
316 | - struct raid_set *iter_rs; | 332 | - struct raid_set *iter_rs = NULL; |
317 | - struct raid_set *match_rs = NULL; | 333 | - struct raid_set *match_rs = NULL; |
318 | - | 334 | - |
319 | - lc = init_dmraid_stack (error); | 335 | - lc = init_dmraid_stack (error); |
@@ -352,6 +368,8 @@ index 9cee742..fd7c7ba 100644 | |||
352 | - * @error: (out): variable to store error (if any) | 368 | - * @error: (out): variable to store error (if any) |
353 | - * | 369 | - * |
354 | - * Returns: whether the RAID set @name was successfully activate or not | 370 | - * Returns: whether the RAID set @name was successfully activate or not |
371 | - * | ||
372 | - * Tech category: %BD_DM_TECH_RAID-%BD_DM_TECH_CREATE_ACTIVATE | ||
355 | - */ | 373 | - */ |
356 | -gboolean bd_dm_activate_raid_set (const gchar *name, GError **error) { | 374 | -gboolean bd_dm_activate_raid_set (const gchar *name, GError **error) { |
357 | - guint64 progress_id = 0; | 375 | - guint64 progress_id = 0; |
@@ -372,6 +390,8 @@ index 9cee742..fd7c7ba 100644 | |||
372 | - * @error: (out): variable to store error (if any) | 390 | - * @error: (out): variable to store error (if any) |
373 | - * | 391 | - * |
374 | - * Returns: whether the RAID set @name was successfully deactivate or not | 392 | - * Returns: whether the RAID set @name was successfully deactivate or not |
393 | - * | ||
394 | - * Tech category: %BD_DM_TECH_RAID-%BD_DM_TECH_REMOVE_DEACTIVATE | ||
375 | - */ | 395 | - */ |
376 | -gboolean bd_dm_deactivate_raid_set (const gchar *name, GError **error) { | 396 | -gboolean bd_dm_deactivate_raid_set (const gchar *name, GError **error) { |
377 | - guint64 progress_id = 0; | 397 | - guint64 progress_id = 0; |
@@ -392,10 +412,12 @@ index 9cee742..fd7c7ba 100644 | |||
392 | - * @error: (out): variable to store error (if any) | 412 | - * @error: (out): variable to store error (if any) |
393 | - * | 413 | - * |
394 | - * Returns: string representation of the @name RAID set's type | 414 | - * Returns: string representation of the @name RAID set's type |
415 | - * | ||
416 | - * Tech category: %BD_DM_TECH_RAID-%BD_DM_TECH_QUERY | ||
395 | - */ | 417 | - */ |
396 | -gchar* bd_dm_get_raid_set_type (const gchar *name, GError **error) { | 418 | -gchar* bd_dm_get_raid_set_type (const gchar *name, GError **error) { |
397 | - struct lib_context *lc; | 419 | - struct lib_context *lc = NULL; |
398 | - struct raid_set *iter_rs; | 420 | - struct raid_set *iter_rs = NULL; |
399 | - struct raid_set *match_rs = NULL; | 421 | - struct raid_set *match_rs = NULL; |
400 | - const gchar *type = NULL; | 422 | - const gchar *type = NULL; |
401 | - | 423 | - |
@@ -429,7 +451,7 @@ index 9cee742..fd7c7ba 100644 | |||
429 | - return g_strdup (type); | 451 | - return g_strdup (type); |
430 | -} | 452 | -} |
431 | diff --git a/src/plugins/dm.h b/src/plugins/dm.h | 453 | diff --git a/src/plugins/dm.h b/src/plugins/dm.h |
432 | index 859fb80..80acd49 100644 | 454 | index 0dce6ac..1ee3788 100644 |
433 | --- a/src/plugins/dm.h | 455 | --- a/src/plugins/dm.h |
434 | +++ b/src/plugins/dm.h | 456 | +++ b/src/plugins/dm.h |
435 | @@ -1,5 +1,4 @@ | 457 | @@ -1,5 +1,4 @@ |
@@ -438,10 +460,10 @@ index 859fb80..80acd49 100644 | |||
438 | 460 | ||
439 | #ifndef BD_DM | 461 | #ifndef BD_DM |
440 | #define BD_DM | 462 | #define BD_DM |
441 | @@ -35,9 +34,5 @@ gboolean bd_dm_remove (const gchar *map_name, GError **error); | 463 | @@ -48,9 +47,5 @@ gboolean bd_dm_map_exists (const gchar *map_name, gboolean live_only, gboolean a |
442 | gchar* bd_dm_name_from_node (const gchar *dm_node, GError **error); | 464 | gchar* bd_dm_name_from_node (const gchar *dm_node, GError **error); |
443 | gchar* bd_dm_node_from_name (const gchar *map_name, GError **error); | 465 | gchar* bd_dm_node_from_name (const gchar *map_name, GError **error); |
444 | gboolean bd_dm_map_exists (const gchar *map_name, gboolean live_only, gboolean active_only, GError **error); | 466 | gchar* bd_dm_get_subsystem_from_name (const gchar *device_name, GError **error); |
445 | -gchar** bd_dm_get_member_raid_sets (const gchar *name, const gchar *uuid, gint major, gint minor, GError **error); | 467 | -gchar** bd_dm_get_member_raid_sets (const gchar *name, const gchar *uuid, gint major, gint minor, GError **error); |
446 | -gboolean bd_dm_activate_raid_set (const gchar *name, GError **error); | 468 | -gboolean bd_dm_activate_raid_set (const gchar *name, GError **error); |
447 | -gboolean bd_dm_deactivate_raid_set (const gchar *name, GError **error); | 469 | -gboolean bd_dm_deactivate_raid_set (const gchar *name, GError **error); |
@@ -466,5 +488,5 @@ index fb3ffb4..eed0a38 100644 | |||
466 | _loop_setup = BlockDev.loop_setup | 488 | _loop_setup = BlockDev.loop_setup |
467 | @override(BlockDev.loop_setup) | 489 | @override(BlockDev.loop_setup) |
468 | -- | 490 | -- |
469 | 1.8.3.1 | 491 | 2.14.3 |
470 | 492 | ||
diff --git a/meta-oe/recipes-extended/libblockdev/files/0004-fix-compile-failure-against-musl-C-library.patch b/meta-oe/recipes-extended/libblockdev/files/0004-fix-compile-failure-against-musl-C-library.patch index f18b569285..0b5b809122 100644 --- a/meta-oe/recipes-extended/libblockdev/files/0004-fix-compile-failure-against-musl-C-library.patch +++ b/meta-oe/recipes-extended/libblockdev/files/0004-fix-compile-failure-against-musl-C-library.patch | |||
@@ -12,7 +12,7 @@ Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com> | |||
12 | 2 files changed, 3 insertions(+), 2 deletions(-) | 12 | 2 files changed, 3 insertions(+), 2 deletions(-) |
13 | 13 | ||
14 | diff --git a/src/plugins/crypto.c b/src/plugins/crypto.c | 14 | diff --git a/src/plugins/crypto.c b/src/plugins/crypto.c |
15 | index 8fbce4f..66e11e5 100644 | 15 | index b961471..2d3d251 100644 |
16 | --- a/src/plugins/crypto.c | 16 | --- a/src/plugins/crypto.c |
17 | +++ b/src/plugins/crypto.c | 17 | +++ b/src/plugins/crypto.c |
18 | @@ -22,7 +22,7 @@ | 18 | @@ -22,7 +22,7 @@ |
@@ -25,7 +25,7 @@ index 8fbce4f..66e11e5 100644 | |||
25 | #include <linux/random.h> | 25 | #include <linux/random.h> |
26 | #include <locale.h> | 26 | #include <locale.h> |
27 | diff --git a/src/plugins/part.c b/src/plugins/part.c | 27 | diff --git a/src/plugins/part.c b/src/plugins/part.c |
28 | index 12d2ef7..3afe297 100644 | 28 | index 6b2a690..ab490d9 100644 |
29 | --- a/src/plugins/part.c | 29 | --- a/src/plugins/part.c |
30 | +++ b/src/plugins/part.c | 30 | +++ b/src/plugins/part.c |
31 | @@ -25,6 +25,7 @@ | 31 | @@ -25,6 +25,7 @@ |
@@ -33,10 +33,10 @@ index 12d2ef7..3afe297 100644 | |||
33 | #include <unistd.h> | 33 | #include <unistd.h> |
34 | #include <sys/file.h> | 34 | #include <sys/file.h> |
35 | +#include <fcntl.h> | 35 | +#include <fcntl.h> |
36 | #include <sys/ioctl.h> | ||
37 | #include <linux/fs.h> | ||
36 | #include <blockdev/utils.h> | 38 | #include <blockdev/utils.h> |
37 | #include <part_err.h> | 39 | @@ -1354,7 +1355,7 @@ static gboolean set_gpt_flags (const gchar *device, int part_num, guint64 flags, |
38 | |||
39 | @@ -1224,7 +1225,7 @@ static gboolean set_gpt_flags (const gchar *device, int part_num, guint64 flags, | ||
40 | real_flags |= 0x4000000000000000; /* 1 << 62 */ | 40 | real_flags |= 0x4000000000000000; /* 1 << 62 */ |
41 | if (flags & BD_PART_FLAG_GPT_NO_AUTOMOUNT) | 41 | if (flags & BD_PART_FLAG_GPT_NO_AUTOMOUNT) |
42 | real_flags |= 0x8000000000000000; /* 1 << 63 */ | 42 | real_flags |= 0x8000000000000000; /* 1 << 63 */ |
@@ -46,5 +46,5 @@ index 12d2ef7..3afe297 100644 | |||
46 | args[2] = g_strdup_printf ("%d:=:%s", part_num, mask_str); | 46 | args[2] = g_strdup_printf ("%d:=:%s", part_num, mask_str); |
47 | g_free (mask_str); | 47 | g_free (mask_str); |
48 | -- | 48 | -- |
49 | 1.8.3.1 | 49 | 2.14.3 |
50 | 50 | ||
diff --git a/meta-oe/recipes-extended/libblockdev/files/0005-fix-a-clang-compiling-issue.patch b/meta-oe/recipes-extended/libblockdev/files/0005-fix-a-clang-compiling-issue.patch index 3818936087..b214f0b05d 100644 --- a/meta-oe/recipes-extended/libblockdev/files/0005-fix-a-clang-compiling-issue.patch +++ b/meta-oe/recipes-extended/libblockdev/files/0005-fix-a-clang-compiling-issue.patch | |||
@@ -19,17 +19,17 @@ Upstream-Status: Submitted [https://github.com/storaged-project/libblockdev/pull | |||
19 | 19 | ||
20 | Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com> | 20 | Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com> |
21 | --- | 21 | --- |
22 | src/plugins/crypto.c | 6 +++--- | 22 | src/plugins/crypto.c | 6 +++--- |
23 | src/plugins/fs.c | 4 ++-- | 23 | src/plugins/fs/vfat.c | 4 ++-- |
24 | src/plugins/part.c | 4 ++-- | 24 | src/plugins/part.c | 4 ++-- |
25 | src/utils/exec.c | 2 +- | 25 | src/utils/exec.c | 2 +- |
26 | 4 files changed, 8 insertions(+), 8 deletions(-) | 26 | 4 files changed, 8 insertions(+), 8 deletions(-) |
27 | 27 | ||
28 | diff --git a/src/plugins/crypto.c b/src/plugins/crypto.c | 28 | diff --git a/src/plugins/crypto.c b/src/plugins/crypto.c |
29 | index 8fbce4f..7ee7cdc 100644 | 29 | index 563093e..b961471 100644 |
30 | --- a/src/plugins/crypto.c | 30 | --- a/src/plugins/crypto.c |
31 | +++ b/src/plugins/crypto.c | 31 | +++ b/src/plugins/crypto.c |
32 | @@ -881,7 +881,7 @@ gboolean bd_crypto_tc_open (const gchar *device, const gchar *name, const guint8 | 32 | @@ -970,7 +970,7 @@ gboolean bd_crypto_tc_open (const gchar *device, const gchar *name, const guint8 |
33 | gint ret = 0; | 33 | gint ret = 0; |
34 | guint64 progress_id = 0; | 34 | guint64 progress_id = 0; |
35 | gchar *msg = NULL; | 35 | gchar *msg = NULL; |
@@ -38,7 +38,7 @@ index 8fbce4f..7ee7cdc 100644 | |||
38 | 38 | ||
39 | msg = g_strdup_printf ("Started opening '%s' TrueCrypt/VeraCrypt device", device); | 39 | msg = g_strdup_printf ("Started opening '%s' TrueCrypt/VeraCrypt device", device); |
40 | progress_id = bd_utils_report_started (msg); | 40 | progress_id = bd_utils_report_started (msg); |
41 | @@ -999,7 +999,7 @@ static gchar *replace_char (gchar *str, gchar orig, gchar new) { | 41 | @@ -1090,7 +1090,7 @@ static gchar *replace_char (gchar *str, gchar orig, gchar new) { |
42 | return str; | 42 | return str; |
43 | } | 43 | } |
44 | 44 | ||
@@ -47,7 +47,7 @@ index 8fbce4f..7ee7cdc 100644 | |||
47 | CERTCertificate *cert, GError **error) { | 47 | CERTCertificate *cert, GError **error) { |
48 | gpointer packet_data = NULL; | 48 | gpointer packet_data = NULL; |
49 | gsize packet_data_size = 0; | 49 | gsize packet_data_size = 0; |
50 | @@ -1008,7 +1008,7 @@ static gboolean write_escrow_data_file (struct libvk_volume *volume, struct libv | 50 | @@ -1099,7 +1099,7 @@ static gboolean write_escrow_data_file (struct libvk_volume *volume, struct libv |
51 | gsize bytes_written = 0; | 51 | gsize bytes_written = 0; |
52 | GError *tmp_error = NULL; | 52 | GError *tmp_error = NULL; |
53 | 53 | ||
@@ -56,11 +56,11 @@ index 8fbce4f..7ee7cdc 100644 | |||
56 | ui, LIBVK_PACKET_FORMAT_ASYMMETRIC_WRAP_SECRET_ONLY, error); | 56 | ui, LIBVK_PACKET_FORMAT_ASYMMETRIC_WRAP_SECRET_ONLY, error); |
57 | 57 | ||
58 | if (!packet_data) { | 58 | if (!packet_data) { |
59 | diff --git a/src/plugins/fs.c b/src/plugins/fs.c | 59 | diff --git a/src/plugins/fs/vfat.c b/src/plugins/fs/vfat.c |
60 | index c4b6ac8..647096d 100644 | 60 | index 3ed7d4a..5ff7795 100644 |
61 | --- a/src/plugins/fs.c | 61 | --- a/src/plugins/fs/vfat.c |
62 | +++ b/src/plugins/fs.c | 62 | +++ b/src/plugins/fs/vfat.c |
63 | @@ -2614,8 +2614,8 @@ BDFSVfatInfo* bd_fs_vfat_get_info (const gchar *device, GError **error) { | 63 | @@ -376,8 +376,8 @@ BDFSVfatInfo* bd_fs_vfat_get_info (const gchar *device, GError **error) { |
64 | */ | 64 | */ |
65 | gboolean bd_fs_vfat_resize (const gchar *device, guint64 new_size, GError **error) { | 65 | gboolean bd_fs_vfat_resize (const gchar *device, guint64 new_size, GError **error) { |
66 | PedDevice *ped_dev = NULL; | 66 | PedDevice *ped_dev = NULL; |
@@ -72,10 +72,10 @@ index c4b6ac8..647096d 100644 | |||
72 | PedSector start = 0; | 72 | PedSector start = 0; |
73 | PedSector length = 0; | 73 | PedSector length = 0; |
74 | diff --git a/src/plugins/part.c b/src/plugins/part.c | 74 | diff --git a/src/plugins/part.c b/src/plugins/part.c |
75 | index 12d2ef7..d277688 100644 | 75 | index fed8300..6b2a690 100644 |
76 | --- a/src/plugins/part.c | 76 | --- a/src/plugins/part.c |
77 | +++ b/src/plugins/part.c | 77 | +++ b/src/plugins/part.c |
78 | @@ -849,7 +849,7 @@ static PedPartition* add_part_to_disk (PedDevice *dev, PedDisk *disk, BDPartType | 78 | @@ -926,7 +926,7 @@ static PedPartition* add_part_to_disk (PedDevice *dev, PedDisk *disk, BDPartType |
79 | return NULL; | 79 | return NULL; |
80 | } | 80 | } |
81 | 81 | ||
@@ -84,7 +84,7 @@ index 12d2ef7..d277688 100644 | |||
84 | if (!part) { | 84 | if (!part) { |
85 | set_parted_error (error, BD_PART_ERROR_FAIL); | 85 | set_parted_error (error, BD_PART_ERROR_FAIL); |
86 | g_prefix_error (error, "Failed to create new partition on device '%s'", dev->path); | 86 | g_prefix_error (error, "Failed to create new partition on device '%s'", dev->path); |
87 | @@ -1427,7 +1427,7 @@ gboolean bd_part_set_part_flags (const gchar *disk, const gchar *part, guint64 f | 87 | @@ -1564,7 +1564,7 @@ gboolean bd_part_set_part_flags (const gchar *disk, const gchar *part, guint64 f |
88 | PedPartition *ped_part = NULL; | 88 | PedPartition *ped_part = NULL; |
89 | const gchar *part_num_str = NULL; | 89 | const gchar *part_num_str = NULL; |
90 | gint part_num = 0; | 90 | gint part_num = 0; |
@@ -94,7 +94,7 @@ index 12d2ef7..d277688 100644 | |||
94 | gboolean ret = FALSE; | 94 | gboolean ret = FALSE; |
95 | guint64 progress_id = 0; | 95 | guint64 progress_id = 0; |
96 | diff --git a/src/utils/exec.c b/src/utils/exec.c | 96 | diff --git a/src/utils/exec.c b/src/utils/exec.c |
97 | index 7ac44fd..0a3094c 100644 | 97 | index 11c1489..dcf87e5 100644 |
98 | --- a/src/utils/exec.c | 98 | --- a/src/utils/exec.c |
99 | +++ b/src/utils/exec.c | 99 | +++ b/src/utils/exec.c |
100 | @@ -354,7 +354,7 @@ gboolean bd_utils_exec_and_report_progress (const gchar **argv, const BDExtraArg | 100 | @@ -354,7 +354,7 @@ gboolean bd_utils_exec_and_report_progress (const gchar **argv, const BDExtraArg |
@@ -107,5 +107,5 @@ index 7ac44fd..0a3094c 100644 | |||
107 | gboolean err_done = FALSE; | 107 | gboolean err_done = FALSE; |
108 | GString *stdout_data = g_string_new (NULL); | 108 | GString *stdout_data = g_string_new (NULL); |
109 | -- | 109 | -- |
110 | 1.8.3.1 | 110 | 2.14.3 |
111 | 111 | ||
diff --git a/meta-oe/recipes-extended/libblockdev/libblockdev_2.10.bb b/meta-oe/recipes-extended/libblockdev/libblockdev_2.16.bb index 2a923548ad..0c954aa39b 100644 --- a/meta-oe/recipes-extended/libblockdev/libblockdev_2.10.bb +++ b/meta-oe/recipes-extended/libblockdev/libblockdev_2.16.bb | |||
@@ -8,20 +8,6 @@ SECTION = "devel/lib" | |||
8 | 8 | ||
9 | LIC_FILES_CHKSUM = "file://LICENSE;md5=c07cb499d259452f324bb90c3067d85c" | 9 | LIC_FILES_CHKSUM = "file://LICENSE;md5=c07cb499d259452f324bb90c3067d85c" |
10 | 10 | ||
11 | S = "${WORKDIR}/git" | ||
12 | B = "${S}" | ||
13 | |||
14 | SRCREV = "c1dda45001542edd7d7f1ffc6451c5a74623f805" | ||
15 | SRC_URI = "git://github.com/rhinstaller/libblockdev;branch=master \ | ||
16 | file://0001-fix-configure-and-compile-failures.patch \ | ||
17 | file://0002-remove-python2-support.patch \ | ||
18 | file://0003-remove-dmraid-while-compiling-with-with-dm.patch \ | ||
19 | file://0005-fix-a-clang-compiling-issue.patch \ | ||
20 | " | ||
21 | SRC_URI_append_libc-musl = " \ | ||
22 | file://0004-fix-compile-failure-against-musl-C-library.patch \ | ||
23 | " | ||
24 | |||
25 | inherit autotools python3native gobject-introspection | 11 | inherit autotools python3native gobject-introspection |
26 | 12 | ||
27 | DEPENDS += " \ | 13 | DEPENDS += " \ |
@@ -31,6 +17,21 @@ DEPENDS += " \ | |||
31 | libbytesize \ | 17 | libbytesize \ |
32 | btrfs-tools \ | 18 | btrfs-tools \ |
33 | " | 19 | " |
20 | |||
21 | SRCREV = "e2e0899efe8dd3f111ff955fb6c1dc10b0bd2075" | ||
22 | SRC_URI = " \ | ||
23 | git://github.com/rhinstaller/libblockdev;branch=master \ | ||
24 | file://0001-fix-configure-and-compile-failures.patch \ | ||
25 | file://0002-remove-python2-support.patch \ | ||
26 | file://0003-remove-dmraid-while-compiling-with-with-dm.patch \ | ||
27 | file://0005-fix-a-clang-compiling-issue.patch \ | ||
28 | " | ||
29 | SRC_URI_append_libc-musl = " \ | ||
30 | file://0004-fix-compile-failure-against-musl-C-library.patch \ | ||
31 | " | ||
32 | |||
33 | S = "${WORKDIR}/git" | ||
34 | |||
34 | RDEPENDS_${PN} += " \ | 35 | RDEPENDS_${PN} += " \ |
35 | lvm2 \ | 36 | lvm2 \ |
36 | " | 37 | " |
@@ -46,6 +47,5 @@ PACKAGECONFIG[parted] = "--with-part, --without-part, parted" | |||
46 | PACKAGECONFIG[fs] = "--with-fs, --without-fs, util-linux" | 47 | PACKAGECONFIG[fs] = "--with-fs, --without-fs, util-linux" |
47 | PACKAGECONFIG[doc] = "--with-gtk-doc, --without-gtk-doc, gtk-doc-native" | 48 | PACKAGECONFIG[doc] = "--with-gtk-doc, --without-gtk-doc, gtk-doc-native" |
48 | 49 | ||
49 | export STAGING_INCDIR | ||
50 | export GIR_EXTRA_LIBS_PATH="${B}/src/utils/.libs" | 50 | export GIR_EXTRA_LIBS_PATH="${B}/src/utils/.libs" |
51 | 51 | ||