Skip to content

[vcpkg_configure_make] Report warning when unresolved arguments are passed in#22567

Merged
vicroms merged 11 commits intomicrosoft:masterfrom
JackBoosY:dev/jack/22535
Mar 2, 2022
Merged

[vcpkg_configure_make] Report warning when unresolved arguments are passed in#22567
vicroms merged 11 commits intomicrosoft:masterfrom
JackBoosY:dev/jack/22535

Conversation

@JackBoosY
Copy link
Contributor

In #22321, I wrote a typo keyword OPTIOS and it was not recoginzed or report warnign message, that's not good.

Fix that.

Fixes #22535.

@JackBoosY JackBoosY added the category:vcpkg-feature The issue is a new capability of the tool that doesn’t already exist and we haven’t committed label Jan 17, 2022
@JackBoosY
Copy link
Contributor Author

Depends on #22534

@JackBoosY JackBoosY added depends:different-pr This PR or Issue depends on a PR which has been filed and removed depends:different-pr This PR or Issue depends on a PR which has been filed labels Jan 18, 2022
@JackBoosY JackBoosY requested a review from LilyWangLL January 19, 2022 03:18
# parse parameters such that semicolons in options arguments to COMMAND don't get erased
cmake_parse_arguments(PARSE_ARGV 0 arg
"AUTOCONFIG;SKIP_CONFIGURE;COPY_SOURCE;DISABLE_VERBOSE_FLAGS;NO_ADDITIONAL_PATHS;ADD_BIN_TO_PATH;USE_WRAPPERS;DETERMINE_BUILD_TRIPLET"
"AUTOCONFIG;SKIP_CONFIGURE;COPY_SOURCE;DISABLE_VERBOSE_FLAGS;NO_ADDITIONAL_PATHS;ADD_BIN_TO_PATH;NO_DEBUG;USE_WRAPPERS;DETERMINE_BUILD_TRIPLET"
Copy link
Contributor Author

Choose a reason for hiding this comment

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

NO_DEBUG is used below but is not declare here.

Copy link
Contributor

Choose a reason for hiding this comment

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

And it is not documented.

Copy link
Contributor

Choose a reason for hiding this comment

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

is NO_DEBUG used anywhere ? Couldn't the same be achieved by setting VCPKG_BUILD_TYPE before the command?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@Neumann-A See

vcpkg_configure_make(
SOURCE_PATH ${SOURCE_PATH}
COPY_SOURCE
NO_DEBUG
)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yeah I suddenly realized that this option has no effect now unless the makefile doesn't support debug mode.

@LilyWangLL LilyWangLL added the info:needs-maintainer-attention Lets the current 'on rotation' vcpkg maintainer know they need to look at this. label Jan 19, 2022
@JackBoosY JackBoosY removed the info:needs-maintainer-attention Lets the current 'on rotation' vcpkg maintainer know they need to look at this. label Jan 19, 2022
@JackBoosY
Copy link
Contributor Author

CMake Error at scripts/cmake/vcpkg_execute_build_process.cmake:85 (file):
  file failed to open for reading (No such file or directory):

    /mnt/vcpkg-ci/buildtrees/liburing/build-x64-linux-dbg-out.log
Call Stack (most recent call first):
  scripts/cmake/vcpkg_build_make.cmake:187 (vcpkg_execute_build_process)
  scripts/cmake/vcpkg_install_make.cmake:26 (vcpkg_build_make)
  ports/liburing/portfile.cmake:20 (vcpkg_install_make)
  scripts/ports.cmake:142 (include)

No idea why it happened.

@JackBoosY
Copy link
Contributor Author

vcpkg_configure_make does not match vcpkg_build_make when NO_DEBUG is enabled.

@JackBoosY JackBoosY added the category:tool-update The issue is with build tool or build script, which requires update or should be executed correctly label Feb 17, 2022
Copy link

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

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

This is a new experimental fast check for PR issues. Please let us know if this bot is helpful!

PRs must add only one version and must not modify any published versions

When making any changes to a library, the version or port-version in vcpkg.json or CONTROL must be modified.

Error: Local changes detected for liburing but no changes to version or port version.
-- Version: 2.0#1
-- Old SHA: e193d537e05887e8efeae8ab1328dc7e33499e01
-- New SHA: c55a2eac95d3a562676486733be22dbac100f5a5
-- Did you remember to update the version or port version?
-- Pass `--overwrite-version` to bypass this check.
***No files were updated.***
After committing all other changes, the version database must be updated
git add -u && git commit
git checkout f54a7b00130e54a398e9c852d200616b670e991c -- versions
./vcpkg x-add-version --all
Diff
diff --git a/versions/l-/liburing.json b/versions/l-/liburing.json
index 495253e..3ebb4cd 100644
--- a/versions/l-/liburing.json
+++ b/versions/l-/liburing.json
@@ -1,7 +1,7 @@
 {
   "versions": [
     {
-      "git-tree": "c55a2eac95d3a562676486733be22dbac100f5a5",
+      "git-tree": "e193d537e05887e8efeae8ab1328dc7e33499e01",
       "version": "2.0",
       "port-version": 1
     },

You have modified or added at least one vcpkg.json where a "license" field is missing.

Details

If you feel able to do so, please consider adding a "license" field to the following files:

  • ports/apr-util/vcpkg.json
  • ports/apr/vcpkg.json

Valid values for the license field can be found in the documentation

Copy link

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

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

You have modified or added at least one vcpkg.json where a "license" field is missing.

Details

If you feel able to do so, please consider adding a "license" field to the following files:

  • ports/apr-util/vcpkg.json
  • ports/apr/vcpkg.json
  • ports/liburing/vcpkg.json

Valid values for the license field can be found in the documentation

@JackBoosY JackBoosY added the info:needs-maintainer-attention Lets the current 'on rotation' vcpkg maintainer know they need to look at this. label Feb 25, 2022
@vicroms vicroms merged commit e86ed50 into microsoft:master Mar 2, 2022
ekilmer added a commit to ekilmer/vcpkg that referenced this pull request Mar 2, 2022
* master: (108 commits)
  [calceph] update to version 3.5.1 (microsoft#23325)
  [SpeexDSP] Missing windows definitions (microsoft#23296)
  [triton] Fix usage (microsoft#23250)
  [vcpkg_configure_make] Report warning when unresolved arguments are passed in (microsoft#22567)
  [openmvg] no absolute paths (microsoft#22342)
  [python2] no absolute paths (microsoft#22329)
  [libcpplocate] New port (microsoft#23173)
  [Intelrdfpmathlib] Fix post build error (microsoft#23286)
  [docs] Update maintainer guide to include CMAKE_REQUIRE_FIND_PACKAGE. (microsoft#23321)
  [new-port-template] Remove deprecated cmake (microsoft#23283)
  [xtensor] Update to 0.24.0 (microsoft#23238)
  [pcl/soil2] Disable optimizations for individual function (microsoft#23252)
  [cnats] Add new port (C client for the NATS messaging system). (microsoft#23258)
  [nanobench] Update to 4.3.6 (microsoft#23262)
  [elfio] Update elfio to 3.10 (microsoft#23263)
  [tomlplusplus] Update to 3.0.1 (microsoft#23268)
  [shaderc] Fix CMake export target files (microsoft#23269)
  [PCL] Fix namespace and  VS2022 error C3052 (microsoft#23273)
  [libressl] update to 3.4.2 (microsoft#23276)
  [asio-grpc] Update to 1.4.0 (microsoft#23277)
  ...
@JackBoosY JackBoosY deleted the dev/jack/22535 branch March 3, 2022 02:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

category:tool-update The issue is with build tool or build script, which requires update or should be executed correctly category:vcpkg-feature The issue is a new capability of the tool that doesn’t already exist and we haven’t committed info:needs-maintainer-attention Lets the current 'on rotation' vcpkg maintainer know they need to look at this.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

vcpkg_configure_make should warn/error on unparsed arguments

5 participants