-
Notifications
You must be signed in to change notification settings - Fork 6.2k
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
[audit] new port #39587
[audit] new port #39587
Conversation
@microsoft-github-policy-service agree company="F.A.C.C.T." |
Note: I will be converting your PR to draft status. Please click "Ready for review" after making the fix and modifications. |
Co-authored-by: WangWeiLin-MV <156736127+WangWeiLin-MV@users.noreply.github.com>
Co-authored-by: WangWeiLin-MV <156736127+WangWeiLin-MV@users.noreply.github.com>
Co-authored-by: WangWeiLin-MV <156736127+WangWeiLin-MV@users.noreply.github.com>
Run command |
@WangWeiLin-MV do you have any comments to this PR? |
Co-authored-by: Kai Pastor <dg0yt@darc.de>
Co-authored-by: Kai Pastor <dg0yt@darc.de>
Co-authored-by: WangWeiLin-MV <156736127+WangWeiLin-MV@users.noreply.github.com>
Co-authored-by: Kai Pastor <dg0yt@darc.de>
Co-authored-by: WangWeiLin-MV <156736127+WangWeiLin-MV@users.noreply.github.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The port usage tests pass with the following triplets:
- x64-linux
@WangWeiLin-MV, do you think that removing the usage file is a good idea? It is usually not clear how to link the library and add the include and build flags to a CMake project with vcpkg for a port that is not a CMake target. |
@t43rr7 After installed, vcpkg will give the heuristics usage #39587 (comment) like that:
|
@WangWeiLin-MV Can you explain how does it work? Just for information. Thanks |
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(Community feedback)
ports/libaudit/portfile.cmake
Outdated
vcpkg_check_linkage(ONLY_STATIC_LIBRARY) | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
vcpkg_check_linkage(ONLY_STATIC_LIBRARY) |
Similar to libcgroup, this shouldn't be there if it is not an upstream restriction.
ports/libaudit/portfile.cmake
Outdated
OPTIONS | ||
--with-python3=no | ||
--with-golang=no | ||
--with-io_uring=no |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
FTR there is a liburing
port in vcpkg.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I didn't try to build audit with io_uring
support in this port, but I think that there may be same issues encountered as the were at libcgroup port. So let's keep io_uring
unsupported in this port for now.
As @dg0yt mentioned, it appears that the package is named |
Port renamed: See commit |
ports/audit/vcpkg.json
Outdated
{ | ||
"name": "audit", | ||
"version-semver": "4.0.1", | ||
"description": "Library for working with audit subsystem", | ||
"homepage": "https://github.com/linux-audit/audit-userspace", | ||
"license": "GPL-2.0 OR LGPL-2.0", | ||
"supports": "linux" | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As just noted in another port:
Run vcpkg format-manifest ports/audit/vcpkg.json
. At least the license field uses deprecated identifiers.
Use version-semver
it it can be verified that the project uses semantic versioning.
Everything else LGTM 👍
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Regard semver
, I cannot find any proof that audit uses semver
. Logically I can assume that it keeps backward compatibility through all versions, because commonly it's a system library-wrapper around kernel API. I also haven't found any notes about versioning system it uses. So, seems like you're right, I'll change version-semver
to version
.
Run vcpkg format-manifest ports/audit/vcpkg.json. At least the license field uses deprecated identifiers.
I don't understand, what output should I get from this command, but I got nothing.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Run vcpkg format-manifest ports/audit/vcpkg.json. At least the license field uses deprecated identifiers.
I don't understand, what output should I get from this command, but I got nothing.
It is primary effect is to create a standardized formatting, so it won't do anything to a properly formatted file.
... but I expected it to also check for deprected licence identifies. I see that this isn't implemented in the tool, only in the GH action at .github/workflows/untrustedPR.yml
. You must wait for the workflow, or manually check "Deprecated License Identifiers" at https://spdx.org/licenses/.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The GH action did run, but the output is neither complete nor forwarded...
Warning: You have modified or added at least one vcpkg.json where you should check the "license" field.
If you feel able to do so, please consider replacing the deprecated license identifiers in the following files:
ports/audit/vcpkg.json (has deprecated license "GPL-2.0")
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The GH action did run, but the output is neither complete nor forwarded...
I fixed the licence
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The port usage tests pass with the following triplets:
- x64-linux
- x64-linux-dynamic
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. 👍
find_package
calls are REQUIRED, are satisfied byvcpkg.json
's declared dependencies, or disabled with CMAKE_DISABLE_FIND_PACKAGE_Xxx.vcpkg.json
matches what upstream says.vcpkg.json
matches what upstream says../vcpkg x-add-version --all
and committing the result.