Skip to content
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

[reflectcpp] Add open-source library reflectcpp to vcpkg #38899

Merged
merged 27 commits into from
Nov 28, 2024

Conversation

Urfoex
Copy link
Contributor

@Urfoex Urfoex commented May 23, 2024

  • Changes comply with the maintainer guide.
  • The name of the port matches an existing name for this component on https://repology.org/ if possible, and/or is strongly associated with that component on search engines.
  • Optional dependencies are resolved in exactly one way. For example, if the component is built with CMake, all find_package calls are REQUIRED, are satisfied by vcpkg.json's declared dependencies, or disabled with CMAKE_DISABLE_FIND_PACKAGE_Xxx.
  • The versioning scheme in vcpkg.json matches what upstream says.
  • The license declaration in vcpkg.json matches what upstream says.
  • The installed as the "copyright" file matches what upstream says.
  • The source code of the component installed comes from an authoritative source.
  • The generated "usage text" is accurate. See adding-usage for context.
  • The version database is fixed by rerunning ./vcpkg x-add-version --all and committing the result.
  • Only one version is in the new port's versions file.
  • Only one version is added to each modified port's versions file.

@Urfoex
Copy link
Contributor Author

Urfoex commented May 23, 2024

@microsoft-github-policy-service agree company="Code17 GmbH"

@jimwang118 jimwang118 added the category:new-port The issue is requesting a new library to be added; consider making a PR! label May 24, 2024
Copy link
Member

@BillyONeal BillyONeal left a comment

Choose a reason for hiding this comment

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

This port vendors dependencies which causes it to conflict with libraries already available in vcpkg. Please declare these as dependencies and use the versions provided by the corresponding ports.

PS D:\vcpkg> .\vcpkg.exe install reflectcpp
Computing installation plan...
The following packages will be built and installed:
    reflectcpp:x64-windows@0.10.0
Detecting compiler hash for triplet x64-windows...
Compiler found: C:/Program Files/Microsoft Visual Studio/2022/Enterprise/VC/Tools/MSVC/14.40.33807/bin/Hostx64/x64/cl.exe
Restored 0 package(s) from C:\Users\bion\AppData\Local\vcpkg\archives in 84.6 us. Use --debug to see more details.
Installing 1/1 reflectcpp:x64-windows@0.10.0...
Building reflectcpp:x64-windows@0.10.0...
-- Using cached getml-reflect-cpp-v0.10.0.tar.gz.
-- Cleaning sources at D:/vcpkg/buildtrees/reflectcpp/src/v0.10.0-7d3f399a13.clean. Use --editable to skip cleaning for the packages you specify.
-- Extracting source D:/vcpkg-downloads/getml-reflect-cpp-v0.10.0.tar.gz
-- Using source at D:/vcpkg/buildtrees/reflectcpp/src/v0.10.0-7d3f399a13.clean
-- Configuring x64-windows
-- Building x64-windows-dbg
-- Building x64-windows-rel
-- Installing: D:/vcpkg/packages/reflectcpp_x64-windows/share/reflectcpp/copyright
-- Performing post-build validation
error: The following files are already installed in D:/vcpkg/installed/x64-windows and are in conflict with reflectcpp:x64-windows
Installed by ctre:x64-windows  
include/ctre.hpp

Installed by yyjson:x64-windows  
include/yyjson.h

Stored binaries in 1 destinations in 131 ms.
Elapsed time to handle reflectcpp:x64-windows: 6.7 

@BillyONeal BillyONeal marked this pull request as draft June 11, 2024 00:24
@Urfoex
Copy link
Contributor Author

Urfoex commented Jun 12, 2024

This port vendors dependencies which causes it to conflict with libraries already available in vcpkg. Please declare these as dependencies and use the versions provided by the corresponding ports.

PS D:\vcpkg> .\vcpkg.exe install reflectcpp
Computing installation plan...
The following packages will be built and installed:
    reflectcpp:x64-windows@0.10.0
Detecting compiler hash for triplet x64-windows...
Compiler found: C:/Program Files/Microsoft Visual Studio/2022/Enterprise/VC/Tools/MSVC/14.40.33807/bin/Hostx64/x64/cl.exe
Restored 0 package(s) from C:\Users\bion\AppData\Local\vcpkg\archives in 84.6 us. Use --debug to see more details.
Installing 1/1 reflectcpp:x64-windows@0.10.0...
Building reflectcpp:x64-windows@0.10.0...
-- Using cached getml-reflect-cpp-v0.10.0.tar.gz.
-- Cleaning sources at D:/vcpkg/buildtrees/reflectcpp/src/v0.10.0-7d3f399a13.clean. Use --editable to skip cleaning for the packages you specify.
-- Extracting source D:/vcpkg-downloads/getml-reflect-cpp-v0.10.0.tar.gz
-- Using source at D:/vcpkg/buildtrees/reflectcpp/src/v0.10.0-7d3f399a13.clean
-- Configuring x64-windows
-- Building x64-windows-dbg
-- Building x64-windows-rel
-- Installing: D:/vcpkg/packages/reflectcpp_x64-windows/share/reflectcpp/copyright
-- Performing post-build validation
error: The following files are already installed in D:/vcpkg/installed/x64-windows and are in conflict with reflectcpp:x64-windows
Installed by ctre:x64-windows  
include/ctre.hpp

Installed by yyjson:x64-windows  
include/yyjson.h

Stored binaries in 1 destinations in 131 ms.
Elapsed time to handle reflectcpp:x64-windows: 6.7 

We'll do upstream changes via: getml/reflect-cpp#79
And update this PR afterwards.

@BillyONeal BillyONeal added the depends:upstream-changes Waiting on a change to the upstream project label Jun 12, 2024
@Urfoex Urfoex requested a review from BillyONeal June 17, 2024 07:51
@Urfoex
Copy link
Contributor Author

Urfoex commented Jun 18, 2024

This port vendors dependencies which causes it to conflict with libraries already available in vcpkg. Please declare these as dependencies and use the versions provided by the corresponding ports.

PS D:\vcpkg> .\vcpkg.exe install reflectcpp
Computing installation plan...
The following packages will be built and installed:
    reflectcpp:x64-windows@0.10.0
Detecting compiler hash for triplet x64-windows...
Compiler found: C:/Program Files/Microsoft Visual Studio/2022/Enterprise/VC/Tools/MSVC/14.40.33807/bin/Hostx64/x64/cl.exe
Restored 0 package(s) from C:\Users\bion\AppData\Local\vcpkg\archives in 84.6 us. Use --debug to see more details.
Installing 1/1 reflectcpp:x64-windows@0.10.0...
Building reflectcpp:x64-windows@0.10.0...
-- Using cached getml-reflect-cpp-v0.10.0.tar.gz.
-- Cleaning sources at D:/vcpkg/buildtrees/reflectcpp/src/v0.10.0-7d3f399a13.clean. Use --editable to skip cleaning for the packages you specify.
-- Extracting source D:/vcpkg-downloads/getml-reflect-cpp-v0.10.0.tar.gz
-- Using source at D:/vcpkg/buildtrees/reflectcpp/src/v0.10.0-7d3f399a13.clean
-- Configuring x64-windows
-- Building x64-windows-dbg
-- Building x64-windows-rel
-- Installing: D:/vcpkg/packages/reflectcpp_x64-windows/share/reflectcpp/copyright
-- Performing post-build validation
error: The following files are already installed in D:/vcpkg/installed/x64-windows and are in conflict with reflectcpp:x64-windows
Installed by ctre:x64-windows  
include/ctre.hpp

Installed by yyjson:x64-windows  
include/yyjson.h

Stored binaries in 1 destinations in 131 ms.
Elapsed time to handle reflectcpp:x64-windows: 6.7 

We'll do upstream changes via: getml/reflect-cpp#79 And update this PR afterwards.

Changed.

Should be ready to review again.

@Urfoex Urfoex requested review from dg0yt and jimwang118 June 18, 2024 14:27
ports/reflectcpp/portfile.cmake Outdated Show resolved Hide resolved
ports/reflectcpp/reflectcpp.0.11.1.patch Outdated Show resolved Hide resolved
jimwang118
jimwang118 previously approved these changes Jul 4, 2024
@Urfoex Urfoex marked this pull request as ready for review July 4, 2024 10:07
@Urfoex
Copy link
Contributor Author

Urfoex commented Jul 4, 2024

This port vendors dependencies which causes it to conflict with libraries already available in vcpkg. Please declare these as dependencies and use the versions provided by the corresponding ports.

PS D:\vcpkg> .\vcpkg.exe install reflectcpp
Computing installation plan...
The following packages will be built and installed:
    reflectcpp:x64-windows@0.10.0
Detecting compiler hash for triplet x64-windows...
Compiler found: C:/Program Files/Microsoft Visual Studio/2022/Enterprise/VC/Tools/MSVC/14.40.33807/bin/Hostx64/x64/cl.exe
Restored 0 package(s) from C:\Users\bion\AppData\Local\vcpkg\archives in 84.6 us. Use --debug to see more details.
Installing 1/1 reflectcpp:x64-windows@0.10.0...
Building reflectcpp:x64-windows@0.10.0...
-- Using cached getml-reflect-cpp-v0.10.0.tar.gz.
-- Cleaning sources at D:/vcpkg/buildtrees/reflectcpp/src/v0.10.0-7d3f399a13.clean. Use --editable to skip cleaning for the packages you specify.
-- Extracting source D:/vcpkg-downloads/getml-reflect-cpp-v0.10.0.tar.gz
-- Using source at D:/vcpkg/buildtrees/reflectcpp/src/v0.10.0-7d3f399a13.clean
-- Configuring x64-windows
-- Building x64-windows-dbg
-- Building x64-windows-rel
-- Installing: D:/vcpkg/packages/reflectcpp_x64-windows/share/reflectcpp/copyright
-- Performing post-build validation
error: The following files are already installed in D:/vcpkg/installed/x64-windows and are in conflict with reflectcpp:x64-windows
Installed by ctre:x64-windows  
include/ctre.hpp

Installed by yyjson:x64-windows  
include/yyjson.h

Stored binaries in 1 destinations in 131 ms.
Elapsed time to handle reflectcpp:x64-windows: 6.7 

We'll do upstream changes via: getml/reflect-cpp#79 And update this PR afterwards.

Changes are upstreamed and integrated.

@jimwang118
Copy link
Contributor

@BillyONeal Do you have any other modification requests for this PR?

@Urfoex
Copy link
Contributor Author

Urfoex commented Jul 30, 2024

@BillyONeal Do you have any other modification requests for this PR?

Any news?

@BillyONeal BillyONeal added info:reviewed Pull Request changes follow basic guidelines and removed depends:upstream-changes Waiting on a change to the upstream project labels Nov 28, 2024
@BillyONeal
Copy link
Member

Sorry I lost track of this.

@BillyONeal BillyONeal closed this Nov 28, 2024
@BillyONeal BillyONeal reopened this Nov 28, 2024
@BillyONeal
Copy link
Member

Closed and reopened to trigger a remerge/retest given that it's been a while

@BillyONeal BillyONeal dismissed their stale review November 28, 2024 20:01

The problems I pointed out appear resolved

@BillyONeal BillyONeal merged commit 65d5e13 into microsoft:master Nov 28, 2024
19 checks passed
@BillyONeal
Copy link
Member

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
category:new-port The issue is requesting a new library to be added; consider making a PR! info:reviewed Pull Request changes follow basic guidelines
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants