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

[hwinfo] add new port #40637

Merged
merged 7 commits into from
Aug 29, 2024
Merged

[hwinfo] add new port #40637

merged 7 commits into from
Aug 29, 2024

Conversation

Hlongyu
Copy link
Contributor

@Hlongyu Hlongyu commented Aug 26, 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.

@Hlongyu
Copy link
Contributor Author

Hlongyu commented Aug 26, 2024

@microsoft-github-policy-service agree

@Hlongyu
Copy link
Contributor Author

Hlongyu commented Aug 26, 2024

@Hlongyu the command you issued was incorrect. Please try again.

Examples are:

@microsoft-github-policy-service agree

and

@microsoft-github-policy-service agree company="your company"

@microsoft-github-policy-service agree

@jimwang118 jimwang118 added the category:new-port The issue is requesting a new library to be added; consider making a PR! label Aug 26, 2024
@Hlongyu
Copy link
Contributor Author

Hlongyu commented Aug 28, 2024

@jimwang118 Why x86_windows failed? I dont know what happend with ci log.

ports/hwinfo/usage Outdated Show resolved Hide resolved
@Hlongyu Hlongyu requested a review from jimwang118 August 28, 2024 11:46
jimwang118
jimwang118 previously approved these changes Aug 29, 2024
@jimwang118
Copy link
Contributor

Usage test pass with following triplet:

x64-windows

@jimwang118 jimwang118 added the info:reviewed Pull Request changes follow basic guidelines label Aug 29, 2024
Comment on lines 1 to 5
hwinfo provides CMake targets :
# this is heuristically generated, and may not be correct
find_package(hwinfo CONFIG REQUIRED)
target_link_libraries(main PRIVATE hwinfo::hwinfo)

Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
hwinfo provides CMake targets :
# this is heuristically generated, and may not be correct
find_package(hwinfo CONFIG REQUIRED)
target_link_libraries(main PRIVATE hwinfo::hwinfo)
hwinfo provides CMake targets:
find_package(hwinfo CONFIG REQUIRED)
target_link_libraries(main PRIVATE hwinfo::hwinfo)

The heuristical output uses this formatting.
And when you add an explicit usage file, I would expected that you actually validated it. So it doesn't need a hint about being "heuristically generated".
(You don't have to add this file if the heuristics does a good job.)

@vicroms vicroms merged commit dfa8003 into microsoft:master Aug 29, 2024
16 checks passed
@moritz-h
Copy link
Contributor

I think this is the wrong library using the name hwinfo. I think here happened the same as in #35465 which was then reverted in #35993. Therefore may quote @dg0yt here:

@vicroms IMO this port must be immediately renamed to lfreist-hwinfo.

  • 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.

I think this is wrong. All repology references point to https://github.com/opensuse/hwinfo: https://repology.org/project/hwinfo/information

@Hlongyu
Copy link
Contributor Author

Hlongyu commented Aug 29, 2024

Sorry, i search hwinfo in Browse packages and there is not port named hwinfo, so i add it. Should i change name in this pr?

@jimwang118
Copy link
Contributor

Sorry, i search hwinfo in Browse packages and there is not port named hwinfo, so i add it. Should i change name in this pr?

You open a new PR and change the port name.

dg0yt added a commit to dg0yt/vcpkg that referenced this pull request Aug 29, 2024
@anders-wind anders-wind mentioned this pull request Sep 2, 2024
7 tasks
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.

5 participants