Skip to content

Commit

Permalink
[pmdk] Remove non-ascii charactor (#9094)
Browse files Browse the repository at this point in the history
  • Loading branch information
PhoebeHui authored and dan-shaw committed Dec 23, 2019
1 parent 8711ceb commit 85c5772
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 11 deletions.
2 changes: 1 addition & 1 deletion ports/pmdk/CONTROL
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Source: pmdk
Version: 1.7
Version: 1.7-1
Homepage: https://github.com/pmem/pmdk
Description: Persistent Memory Development Kit
14 changes: 4 additions & 10 deletions ports/pmdk/portfile.cmake
Original file line number Diff line number Diff line change
@@ -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")

Expand All @@ -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
Expand Down Expand Up @@ -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)
17 changes: 17 additions & 0 deletions ports/pmdk/remove-non-ascii-character.patch
Original file line number Diff line number Diff line change
@@ -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.
*/

0 comments on commit 85c5772

Please sign in to comment.