Skip to content

Commit 6ab5156

Browse files
authored
fix(ports): install usage file in all portfiles (#90)
Add configure_file install step in every modified portfile to ensure the existing usage file lands at ${CURRENT_PACKAGES_DIR}/share/${PORT}/usage. Without this, vcpkg's post-build check fails with POST_BUILD_CHECKS_FAILED on cold-cache or strict-mode consumers (e.g., curated-registry submission). Verified working in microsoft/vcpkg#51511 commit 8e1a35f6. Closes #89.
1 parent de0c64d commit 6ab5156

25 files changed

Lines changed: 72 additions & 16 deletions

ports/kcenon-common-system/portfile.cmake

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,3 +37,5 @@ file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug")
3737
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/lib")
3838

3939
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")
40+
41+
configure_file("${CMAKE_CURRENT_LIST_DIR}/usage" "${CURRENT_PACKAGES_DIR}/share/${PORT}/usage" COPYONLY)

ports/kcenon-common-system/vcpkg.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "kcenon-common-system",
33
"version-semver": "0.2.0",
4-
"port-version": 2,
4+
"port-version": 3,
55
"description": "High-performance C++20 foundation library providing Result<T> pattern, interfaces, and common utilities",
66
"homepage": "https://github.com/kcenon/common_system",
77
"license": "BSD-3-Clause",

ports/kcenon-container-system/portfile.cmake

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,3 +51,5 @@ file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
5151
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
5252

5353
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")
54+
55+
configure_file("${CMAKE_CURRENT_LIST_DIR}/usage" "${CURRENT_PACKAGES_DIR}/share/${PORT}/usage" COPYONLY)

ports/kcenon-container-system/vcpkg.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "kcenon-container-system",
33
"version-semver": "0.1.0",
4-
"port-version": 7,
4+
"port-version": 8,
55
"description": "Advanced C++20 Container System with Thread-Safe Operations and Messaging Integration",
66
"homepage": "https://github.com/kcenon/container_system",
77
"license": "BSD-3-Clause",

ports/kcenon-database-system/portfile.cmake

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,3 +44,5 @@ file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
4444
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
4545

4646
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")
47+
48+
configure_file("${CMAKE_CURRENT_LIST_DIR}/usage" "${CURRENT_PACKAGES_DIR}/share/${PORT}/usage" COPYONLY)

ports/kcenon-database-system/vcpkg.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "kcenon-database-system",
33
"version-semver": "0.1.1",
4-
"port-version": 3,
4+
"port-version": 4,
55
"description": "Pure, lightweight C++20 Core DAL library with unified access to PostgreSQL, SQLite, MongoDB, and Redis",
66
"homepage": "https://github.com/kcenon/database_system",
77
"license": "BSD-3-Clause",

ports/kcenon-logger-system/portfile.cmake

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,3 +41,5 @@ file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
4141
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
4242

4343
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")
44+
45+
configure_file("${CMAKE_CURRENT_LIST_DIR}/usage" "${CURRENT_PACKAGES_DIR}/share/${PORT}/usage" COPYONLY)

ports/kcenon-logger-system/vcpkg.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "kcenon-logger-system",
33
"version-semver": "0.1.3",
4-
"port-version": 9,
4+
"port-version": 10,
55
"description": "High-performance C++20 async logging framework with 4.34M msg/sec throughput, 148ns latency, and modular architecture",
66
"homepage": "https://github.com/kcenon/logger_system",
77
"license": "BSD-3-Clause",

ports/kcenon-monitoring-system/portfile.cmake

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,3 +83,5 @@ file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
8383
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
8484

8585
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")
86+
87+
configure_file("${CMAKE_CURRENT_LIST_DIR}/usage" "${CURRENT_PACKAGES_DIR}/share/${PORT}/usage" COPYONLY)

ports/kcenon-monitoring-system/vcpkg.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "kcenon-monitoring-system",
33
"version-semver": "0.1.0",
4-
"port-version": 7,
4+
"port-version": 8,
55
"description": "High-performance C++20 monitoring system with metrics collection, distributed tracing, and container monitoring",
66
"homepage": "https://github.com/kcenon/monitoring_system",
77
"license": "BSD-3-Clause",

0 commit comments

Comments
 (0)