Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 27 additions & 0 deletions ports/websocketpp/portfile.cmake
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
#header-only lib
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO zaphoyd/websocketpp
REF 56123c87598f8b1dd471be83ca841ceae07f95ba
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This port was explicitly removed in #42678 due to being entirely unmaintained and unable to be built with current versions of Boost. Has anything changed about that situation?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it does seem to be compiling, at least on my machine but it's not under active maintenance anymore(last update was 5yrs ago), so I'm considering dropping this PR

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the x86 ci fail is just from a version check failing which is weird since I've made sure to use vcpkg x-add-version websocketpp --overwrite-version

Copy link
Member

@BillyONeal BillyONeal Apr 14, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It installs the port but can you actually use the port for anything with the version of Boost we have?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

(I didn't address the version database failure because there's no point in touching that with the 'what changed between when this was intentionally deindexed and now?' question outstanding. If somehow the port was usable the right fix is probably to bring back the exact git tree that was deindexed which had some patch fixes and similar...)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

https://github.com/zaphoyd/websocketpp/blob/1b11fd301531e6df35a6107c1e8665b1e77a2d8e/CMakeLists.txt#L218
considering this line, I'm going to say no because this explicitly wants boost 1.39.0 or up to 1.46.1 which is way behind that which is in vcpkg(1.87.0) so I'm going to be closing this PR. The issue regarding adding this port should also be closed, since the situation is unlikely to ever change.

SHA512 f185a66e5a7c783254352a6ef87e2e559f681032b7368765d08393ed12bcae76825abed7dcaea73de09df644320409dad46279701f5f469520542a2c9b6a6163
HEAD_REF master
)

set(VCPKG_BUILD_TYPE release)

vcpkg_cmake_configure(
SOURCE_PATH "${SOURCE_PATH}"
OPTIONS
BUILD_EXAMPLES=OFF
BUILD_TESTS=OFF
)

vcpkg_cmake_install()

vcpkg_cmake_config_fixup(CONFIG_PATH cmake/)
vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/websocketpp/)

file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug" "${CURRENT_PACKAGES_DIR}/lib")

vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/COPYING")

17 changes: 17 additions & 0 deletions ports/websocketpp/vcpkg.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"name": "websocketpp",
"version": "0.8.2",
"description": "C++ websocket client/server library",
"homepage": "https://github.com/zaphoyd/websocketpp",
"license": "BSD-3-Clause",
"dependencies": [
{
"name": "vcpkg-cmake",
"host": true
},
{
"name": "vcpkg-cmake-config",
"host": true
}
]
}
2 changes: 1 addition & 1 deletion versions/baseline.json
Original file line number Diff line number Diff line change
Expand Up @@ -9926,7 +9926,7 @@
},
"websocketpp": {
"baseline": "0.8.2",
"port-version": 4
"port-version": 0
},
"webthing-cpp": {
"baseline": "1.2.0",
Expand Down
2 changes: 1 addition & 1 deletion versions/w-/websocketpp.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"port-version": 1
},
{
"git-tree": "c717c6c7fe929ef1c9cc7b2250e78700326940c4",
"git-tree": "27766540851cdb5e5880b651dc44e3c42348880a",
"version-string": "0.8.2",
"port-version": 0
},
Expand Down
Loading