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

[ada-url] update to 3.0.1 #43594

Draft
wants to merge 7 commits into
base: master
Choose a base branch
from
Draft

[ada-url] update to 3.0.1 #43594

wants to merge 7 commits into from

Conversation

toge
Copy link
Contributor

@toge toge commented Feb 2, 2025

  • Changes comply with the maintainer guide.
  • SHA512s are updated for each updated download.
  • The "supports" clause reflects platforms that may be fixed by this new version.
  • Any fixed CI baseline entries are removed from that file.
  • Any patches that are no longer applied are deleted from the port's directory.
  • The version database is fixed by rerunning ./vcpkg x-add-version --all and committing the result.
  • Only one version is added to each modified port's versions file.

@toge toge marked this pull request as draft February 2, 2025 16:21
@FrankXie05 FrankXie05 added the category:port-update The issue is with a library, which is requesting update new revision label Feb 5, 2025
@toge
Copy link
Contributor Author

toge commented Feb 7, 2025

@FrankXie05
Could you please help me one if possible?
ada-url is only compatible with gcc12 or higher since 3.0.0.
This seems to cause to compile with an error on x64-linux (which seems to use gcc11)
Is it possible to check the version of gcc etc. and exclude them from the CI environment?

@dg0yt
Copy link
Contributor

dg0yt commented Feb 7, 2025

In that case you can add ada-url:x64-linux=fail to scripts/ci.baseline.txt.

@toge
Copy link
Contributor Author

toge commented Feb 8, 2025

@dg0yt
Thank you!
I will add line later.



add_library(ada::ada ALIAS ada)
+target_compile_features(ada PUBLIC cxx_std_20)
Copy link

Choose a reason for hiding this comment

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

Why is this required? It should work as it is.


if(ADA_TOOLS)
- add_subdirectory(tools)
+# add_subdirectory(tools)
Copy link

Choose a reason for hiding this comment

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

This seems to be unnecessary.

- OPTIONS "CXXOPTS_BUILD_EXAMPLES NO" "CXXOPTS_BUILD_TESTS NO" "CXXOPTS_ENABLE_INSTALL YES"
-)
+find_package(fmt CONFIG REQUIRED)
+find_package(cxxopts CONFIG REQUIRED)
Copy link

Choose a reason for hiding this comment

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

These changes are unnecessary. If you pass the correct build flag, CPM will never install a new package and only use the existing packages.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thank you for review.
I agree wiyh you.
These modifications are my trials for CI fails.
Now I undestand how to fix CI fails, I will revert these modifications.
Please wait a moment.

@toge toge marked this pull request as ready for review February 9, 2025 15:44
@FrankXie05 FrankXie05 added the info:reviewed Pull Request changes follow basic guidelines label Feb 12, 2025
- VERSION 3.2.0
- OPTIONS "CXXOPTS_BUILD_EXAMPLES NO" "CXXOPTS_BUILD_TESTS NO" "CXXOPTS_ENABLE_INSTALL YES"
-)
+find_package(fmt CONFIG REQUIRED)
Copy link
Member

Choose a reason for hiding this comment

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

I believe this patch needs to be restored to ensure these come from their associated ports rather than being effectively vendored. @anonrig I believe you are mistaken. In particular, CPM is not given the find_package'd name of these packages, so I don't understand how it could ever resolve them correctly.

Building ada-url:[email protected]...
Trying to download ada-url-ada-v3.0.1.tar.gz using asset cache https://vcpkgassetcachewus.blob.core.windows.net/cache/3a81da352ad47395d83172f1477e8165483c5dc30923ba4387463a03aa01df5d6718dd54d22f568a654300e777b3eafce7f266504a27bfeb1f8de57503670dc4?*** SECRET ***
Download successful! Asset cache hit, did not try authoritative source https://github.com/ada-url/ada/archive/v3.0.1.tar.gz
-- Extracting source D:/downloads/ada-url-ada-v3.0.1.tar.gz
-- Using source at D:/b/ada-url/src/v3.0.1-d5321571b6.clean
-- Found external ninja('1.12.1').
-- Configuring x64-windows
CMake Warning at D:/installed/x64-windows/share/vcpkg-cmake/vcpkg_cmake_configure.cmake:344 (message):
  The following variables are not used in CMakeLists.txt:

      CPM_USE_LOCAL_PACKAGES

  Please recheck them and remove the unnecessary options from the
  `vcpkg_cmake_configure` call.

  If these options should still be passed for whatever reason, please use the
  `MAYBE_UNUSED_VARIABLES` argument.
Call Stack (most recent call first):
  ports/ada-url/portfile.cmake:19 (vcpkg_cmake_configure)
  scripts/ports.cmake:196 (include)


-- Building x64-windows-dbg
-- Building x64-windows-rel
-- Performing post-build validation
Store success

@BillyONeal BillyONeal marked this pull request as draft February 13, 2025 02:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
category:port-update The issue is with a library, which is requesting update new revision info:reviewed Pull Request changes follow basic guidelines
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants