[pmdk] Remove non-ascii charactor (#9094)

This commit is contained in:
Phoebe 2019-12-24 07:36:57 +08:00 committed by dan-shaw
parent 8711ceb3c1
commit 85c57726ec
3 changed files with 22 additions and 11 deletions

View File

@ -1,4 +1,4 @@
Source: pmdk
Version: 1.7
Version: 1.7-1
Homepage: https://github.com/pmem/pmdk
Description: Persistent Memory Development Kit

View File

@ -1,12 +1,6 @@
include(vcpkg_common_functions)
vcpkg_check_linkage(ONLY_DYNAMIC_LIBRARY ONLY_DYNAMIC_CRT)
if (TRIPLET_SYSTEM_ARCH MATCHES "arm")
message(FATAL_ERROR "ARM is currently not supported")
elseif (TRIPLET_SYSTEM_ARCH MATCHES "x86")
message(FATAL_ERROR "x86 is not supported. Please use pmdk:x64-windows instead.")
endif()
vcpkg_fail_port_install(ON_ARCH "arm" "x86")
set(PMDK_VERSION "1.7")
@ -16,6 +10,8 @@ vcpkg_from_github(
REF bc5e309485df61c452d08367e4b13ba9dfed5071 #Commit id corresponding to the version 1.7
SHA512 15bee6a046746e4ab7e827bb36685bc5d9cdffdbc68ba86eb71e2c4bd84eb4fed4586c09174257bfd87ea178c8ee9865a8824842d7d1df67e0ae79ff80cf650e
HEAD_REF master
PATCHES
remove-non-ascii-character.patch
)
# Build only the selected projects
@ -59,6 +55,4 @@ vcpkg_copy_tool_dependencies(${CURRENT_PACKAGES_DIR}/tools/pmdk)
vcpkg_copy_pdbs()
# Handle copyright
file(COPY ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/pmdk)
file(RENAME ${CURRENT_PACKAGES_DIR}/share/pmdk/LICENSE ${CURRENT_PACKAGES_DIR}/share/pmdk/copyright)
file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)

View File

@ -0,0 +1,17 @@
diff --git a/src/libpmemobj/critnib.c b/src/libpmemobj/critnib.c
index 41fec79..f201dbd 100644
--- a/src/libpmemobj/critnib.c
+++ b/src/libpmemobj/critnib.c
@@ -360,9 +360,9 @@ alloc_leaf(struct critnib *__restrict c)
* crinib_insert -- write a key:value pair to the critnib structure
*
* Returns:
- * • 0 on success
- * • EEXIST if such a key already exists
- * • ENOMEM if we're out of memory
+ * 0 on success
+ * EEXIST if such a key already exists
+ * ENOMEM if we're out of memory
*
* Takes a global write lock but doesn't stall any readers.
*/