diff options
| -rw-r--r-- | meta-oe/recipes-extended/pmdk/files/0001-examples-Initialize-child_idx.patch | 47 | ||||
| -rw-r--r-- | meta-oe/recipes-extended/pmdk/files/0002-Makefile-Don-t-install-the-docs.patch | 26 | ||||
| -rw-r--r-- | meta-oe/recipes-extended/pmdk/pmdk_1.9.bb (renamed from meta-oe/recipes-extended/pmdk/pmdk_1.8.bb) | 11 |
3 files changed, 4 insertions, 80 deletions
diff --git a/meta-oe/recipes-extended/pmdk/files/0001-examples-Initialize-child_idx.patch b/meta-oe/recipes-extended/pmdk/files/0001-examples-Initialize-child_idx.patch deleted file mode 100644 index 8e2b3c7cbb..0000000000 --- a/meta-oe/recipes-extended/pmdk/files/0001-examples-Initialize-child_idx.patch +++ /dev/null | |||
| @@ -1,47 +0,0 @@ | |||
| 1 | From 721a48e5397bd4ab454482041e55671eae7b189f Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Khem Raj <raj.khem@gmail.com> | ||
| 3 | Date: Mon, 11 May 2020 18:01:11 -0700 | ||
| 4 | Subject: [PATCH] examples: Initialize child_idx | ||
| 5 | |||
| 6 | Assign UINT_MAX and assert it | ||
| 7 | |||
| 8 | Fixes warning | ||
| 9 | rtree_map.c:358:12: error: 'child_idx' may be used uninitialized | ||
| 10 | in this function [-Werror=maybe-uninitialized] | ||
| 11 | |||
| 12 | Upstream-Status: Submitted [https://github.com/pmem/pmdk/pull/4802] | ||
| 13 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
| 14 | --- | ||
| 15 | src/examples/libpmemobj/tree_map/rtree_map.c | 4 +++- | ||
| 16 | 1 file changed, 3 insertions(+), 1 deletion(-) | ||
| 17 | |||
| 18 | diff --git a/src/examples/libpmemobj/tree_map/rtree_map.c b/src/examples/libpmemobj/tree_map/rtree_map.c | ||
| 19 | index 995e22bb9..6b3ead65c 100644 | ||
| 20 | --- a/src/examples/libpmemobj/tree_map/rtree_map.c | ||
| 21 | +++ b/src/examples/libpmemobj/tree_map/rtree_map.c | ||
| 22 | @@ -8,6 +8,7 @@ | ||
| 23 | #include <ex_common.h> | ||
| 24 | #include <assert.h> | ||
| 25 | #include <errno.h> | ||
| 26 | +#include <limits.h> | ||
| 27 | #include <stdlib.h> | ||
| 28 | #include <stdbool.h> | ||
| 29 | |||
| 30 | @@ -320,12 +321,13 @@ has_only_one_child(TOID(struct tree_map_node) node, unsigned *child_idx) | ||
| 31 | static void | ||
| 32 | remove_extra_node(TOID(struct tree_map_node) *node) | ||
| 33 | { | ||
| 34 | - unsigned child_idx; | ||
| 35 | + unsigned child_idx = UINT_MAX; | ||
| 36 | TOID(struct tree_map_node) tmp, tmp_child; | ||
| 37 | |||
| 38 | /* Our node has child with only one child. */ | ||
| 39 | tmp = *node; | ||
| 40 | has_only_one_child(tmp, &child_idx); | ||
| 41 | + assert(child_idx != UINT_MAX); | ||
| 42 | tmp_child = D_RO(tmp)->slots[child_idx]; | ||
| 43 | |||
| 44 | /* | ||
| 45 | -- | ||
| 46 | 2.26.2 | ||
| 47 | |||
diff --git a/meta-oe/recipes-extended/pmdk/files/0002-Makefile-Don-t-install-the-docs.patch b/meta-oe/recipes-extended/pmdk/files/0002-Makefile-Don-t-install-the-docs.patch deleted file mode 100644 index 82b96cf95e..0000000000 --- a/meta-oe/recipes-extended/pmdk/files/0002-Makefile-Don-t-install-the-docs.patch +++ /dev/null | |||
| @@ -1,26 +0,0 @@ | |||
| 1 | From 3863d8bd71d6a5638cf984f8d8f9cccac0c7f2a4 Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Alistair Francis <alistair.francis@wdc.com> | ||
| 3 | Date: Mon, 23 Jul 2018 11:31:17 -0700 | ||
| 4 | Subject: [PATCH] Makefile: Don't install the docs | ||
| 5 | |||
| 6 | Signed-off-by: Alistair Francis <alistair.francis@wdc.com> | ||
| 7 | Upstream-Status: Inappropriate [disable feature] | ||
| 8 | --- | ||
| 9 | Makefile | 1 - | ||
| 10 | 1 file changed, 1 deletion(-) | ||
| 11 | |||
| 12 | diff --git a/Makefile b/Makefile | ||
| 13 | index 47a447f12..7c0f9848f 100644 | ||
| 14 | --- a/Makefile | ||
| 15 | +++ b/Makefile | ||
| 16 | @@ -148,7 +148,6 @@ rpm dpkg: pkg-clean | ||
| 17 | |||
| 18 | install uninstall: | ||
| 19 | $(MAKE) -C src $@ | ||
| 20 | - $(MAKE) -C doc $@ | ||
| 21 | |||
| 22 | .PHONY: all clean clobber test check cstyle check-license install uninstall\ | ||
| 23 | source rpm dpkg pkg-clean pcheck check-remote format doc require-rpmem\ | ||
| 24 | -- | ||
| 25 | 2.14.4 | ||
| 26 | |||
diff --git a/meta-oe/recipes-extended/pmdk/pmdk_1.8.bb b/meta-oe/recipes-extended/pmdk/pmdk_1.9.bb index fe7b760e22..8bb89f418c 100644 --- a/meta-oe/recipes-extended/pmdk/pmdk_1.8.bb +++ b/meta-oe/recipes-extended/pmdk/pmdk_1.9.bb | |||
| @@ -3,7 +3,7 @@ DESCRIPTION = "Persistent Memory Development Kit" | |||
| 3 | HOMEPAGE = "http://pmem.io" | 3 | HOMEPAGE = "http://pmem.io" |
| 4 | SECTION = "libs" | 4 | SECTION = "libs" |
| 5 | LICENSE = "BSD-3-Clause" | 5 | LICENSE = "BSD-3-Clause" |
| 6 | LIC_FILES_CHKSUM = "file://LICENSE;md5=1b8430f251523f1bff0c9fb95da7e0ca" | 6 | LIC_FILES_CHKSUM = "file://LICENSE;md5=b44ee63f162f9cdb18fff1224877aafd" |
| 7 | DEPENDS = "ndctl" | 7 | DEPENDS = "ndctl" |
| 8 | 8 | ||
| 9 | # Required to have the fts.h header for musl | 9 | # Required to have the fts.h header for musl |
| @@ -11,12 +11,9 @@ DEPENDS_append_libc-musl = " fts" | |||
| 11 | 11 | ||
| 12 | S = "${WORKDIR}/git" | 12 | S = "${WORKDIR}/git" |
| 13 | 13 | ||
| 14 | SRC_URI = "git://github.com/pmem/pmdk.git \ | 14 | SRC_URI = "git://github.com/pmem/pmdk.git" |
| 15 | file://0001-examples-Initialize-child_idx.patch \ | ||
| 16 | file://0002-Makefile-Don-t-install-the-docs.patch \ | ||
| 17 | " | ||
| 18 | 15 | ||
| 19 | SRCREV = "0245d75eaf0f6106c86a7926a45fdf2149e37eaa" | 16 | SRCREV = "1926ffb8f3f5f0617b3b3ed32029d437c272f187" |
| 20 | 17 | ||
| 21 | inherit autotools-brokensep pkgconfig | 18 | inherit autotools-brokensep pkgconfig |
| 22 | 19 | ||
| @@ -25,7 +22,7 @@ inherit autotools-brokensep pkgconfig | |||
| 25 | # | If you meant to cross compile, use `--host'. | 22 | # | If you meant to cross compile, use `--host'. |
| 26 | # | 23 | # |
| 27 | # Also fix #warning _FORTIFY_SOURCE requires compiling with optimization (-O) [-Werror=cpp] | 24 | # Also fix #warning _FORTIFY_SOURCE requires compiling with optimization (-O) [-Werror=cpp] |
| 28 | EXTRA_OEMAKE = "BUILD_EXAMPLES='n' HOST_SYS='${HOST_SYS}' EXTRA_CFLAGS='${SELECTED_OPTIMIZATION}' LIB_PREFIX=${baselib}" | 25 | EXTRA_OEMAKE = "BUILD_EXAMPLES='n' DOC='n' HOST_SYS='${HOST_SYS}' EXTRA_CFLAGS='${SELECTED_OPTIMIZATION}' LIB_PREFIX=${baselib}" |
| 29 | 26 | ||
| 30 | # Fix the missing fts libs when using musl | 27 | # Fix the missing fts libs when using musl |
| 31 | EXTRA_OEMAKE_append_libc-musl = " EXTRA_LIBS='-lfts'" | 28 | EXTRA_OEMAKE_append_libc-musl = " EXTRA_LIBS='-lfts'" |
