-
Notifications
You must be signed in to change notification settings - Fork 6.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add port - libosdp #37556
Add port - libosdp #37556
Conversation
@microsoft-github-policy-service agree |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
IMO the comments in portfile.cmake
can all be removed.
(Maybe the c-utils deserve a comment that they take the place of a git submodule. This gives a hint for choosing the REF when updating the port.)
57728a3
to
05e67ce
Compare
@jimwang118 I need help with this CI failure. I can build LibOSDP on Windows with msvc tool chain but for some reason all Windows builds are failing (and hard to tell without the log file). Can you give me some hints on how I can reproduce this issue locally? |
The log files are available as "artifacts" downloads on azure pipelines. Use the three dots on the right side when hovering an artifact. |
cd096bc
to
bd7af11
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think the patching is too invasive and should be trimmed.
Maybe set the EXCLUDE_FROM_ALL
property on the target which isn't needed,
and limit the install step to the target which is needed.
74743bb
to
3509e8e
Compare
@dg0yt Please ignore all patch files for now; they are also pushed to the upstream. Once I've ironed out all of those issues here, will make another release to remove all the patch files. For now, I'm just trying to appease MSVC in different places :) |
938b5b9
to
d97a1c4
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The port looks clean. Somebody else must review and approve.
There would be some nit-picks on the upstream CMake build, but I don't want to enter a thorough review now.
Usage test pass with following triplets:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you apply these changes? I tried to but the PR was created without permission for me to do so...
PS D:\vcpkg> push-pr goToMain:libosdp
ERROR: Permission to goToMain/vcpkg.git denied to BillyONeal.
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
diff --git a/ports/libosdp/portfile.cmake b/ports/libosdp/portfile.cmake
index 45f166f14..8270cf7e9 100644
--- a/ports/libosdp/portfile.cmake
+++ b/ports/libosdp/portfile.cmake
@@ -6,7 +6,7 @@ vcpkg_from_github(
HEAD_REF master
)
-# Downloaod and extract the c-utils submodule at ${SOURCE_PATH}/utils as
+# Download and extract the c-utils submodule at ${SOURCE_PATH}/utils as
# it would be during a recursive checkout.
#
# Note: During package upgrade, the submodule ref needs to be updated.
@@ -17,6 +17,7 @@ vcpkg_from_github(
SHA512 a0902a504fe6ffd1ce0f32d0a16decf0e113d1211d19e63f4fb539082254769f0a6484414a49f52956e45ed802b2c2f8430e87a06c24ac84205421cdffb4d3f0
HEAD_REF master
)
+
file(REMOVE_RECURSE "${SOURCE_PATH}/utils")
file(COPY "${UTILS_SOURCE_PATH}/" DESTINATION "${SOURCE_PATH}/utils")
diff --git a/ports/libosdp/usage b/ports/libosdp/usage
index 5fc6d7afb..058891d78 100644
--- a/ports/libosdp/usage
+++ b/ports/libosdp/usage
@@ -5,5 +5,5 @@ libosdp provides CMake targets:
libosdp provides pkg-config modules:
- # Open Supervised Device Protocol (OSDP) Library
- libosdp
+ # Open Supervised Device Protocol (OSDP) Library
+ libosdp
diff --git a/versions/l-/libosdp.json b/versions/l-/libosdp.json
index b408b5fcc..a59360af4 100644
--- a/versions/l-/libosdp.json
+++ b/versions/l-/libosdp.json
@@ -1,7 +1,7 @@
{
"versions": [
{
- "git-tree": "229759fd15e93ca2e175b1c421569480c77ba20c",
+ "git-tree": "fbbc5d6f19e023ef42737fc939fcb9bd186ecc4c",
"version": "3.0.5",
"port-version": 0
}
This patch adds a port for libosdp - a cross-platform open source implementation of IEC 60839-11-5 Open Supervised Device Protocol (OSDP). The protocol is intended to improve interoperability among access control and security products. It supports Secure Channel (SC) for encrypted and authenticated communication between configured devices. Upstream: https://github.com/goToMain/libosdp
@BillyONeal, thanks for the review. Applied. |
/azp run |
Azure Pipelines successfully started running 1 pipeline(s). |
Thanks for the new port <3! |
This patch adds a port for libosdp - a cross-platform open source implementation of IEC 60839-11-5 Open Supervised Device Protocol (OSDP). The protocol is intended to improve interoperability among access control and security products. It supports Secure Channel (SC) for encrypted and authenticated communication between configured devices.
Upstream: https://github.com/goToMain/libosdp
find_package
calls are REQUIRED, are satisfied byvcpkg.json
's declared dependencies, or disabled with CMAKE_DISABLE_FIND_PACKAGE_Xxx.vcpkg.json
matches what upstream says.vcpkg.json
matches what upstream says../vcpkg x-add-version --all
and committing the result.