[yoctolib] 2.1.11761 Update#49802
Conversation
Signed-off-by: Yoctopuce <dev@yoctopuce.com>
Signed-off-by: Yoctopuce <dev@yoctopuce.com>
Signed-off-by: Yoctopuce <dev@yoctopuce.com>
Signed-off-by: Yoctopuce <dev@yoctopuce.com>
|
@microsoft-github-policy-service agree company="Yoctopuce" |
|
Nice :) Linux job failure is due to the |
| file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include") | ||
| file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share") | ||
|
|
||
| vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/README.md") |
There was a problem hiding this comment.
this needs to be changed to instead install the copyright file that was added in this PR
I noticed that the previous port was handling this, but in my opinion, this approach is incorrect. |
Signed-off-by: Yoctopuce <dev@yoctopuce.com>
|
| @@ -0,0 +1,28 @@ | |||
| Copyright (C) 2011 and beyond by Yoctopuce Sarl, Switzerland. | |||
There was a problem hiding this comment.
AFAICT copyright files shall not be added to the vcpkg repo.
There was a problem hiding this comment.
I followed the official documentation (https://learn.microsoft.com/en-us/vcpkg/reference/vcpkg-json#license) and used the strtk package (https://github.com/microsoft/vcpkg/tree/master/ports/strtk) as a reference for implementation.
However, if needed, I can revert to the previous version and simply copy the README.md from our library.
There was a problem hiding this comment.
We usually require that the license come out of the actual upstream repo rather than trying to cough up the text ourselves so that updates that change the license don't end up making us install lies about what the license is.
There was a problem hiding this comment.
I followed the official documentation (https://learn.microsoft.com/en-us/vcpkg/reference/vcpkg-json#license) and used the strtk package (https://github.com/microsoft/vcpkg/tree/master/ports/strtk) as a reference for implementation.
The documentation is not for the copyright file but for the license manifest field.
strtk is an old port with few updates.
But there is this: https://learn.microsoft.com/en-us/vcpkg/contributing/maintainer-guide#install-copyright-file
In some ports, we use regex pattern matching to extract the licensing part from source files. I admit this needs some extra care during port updates.
|
Is there a vendored mbedtls? |
I will add a patch to fix this for vcpkg, but we are not changing our code since we never had any issue with this include |
Signed-off-by: Yoctopuce <dev@yoctopuce.com>
|
@microsoft-github-policy-service agree company="Yoctopuce" |
| @@ -0,0 +1,28 @@ | |||
| Copyright (C) 2011 and beyond by Yoctopuce Sarl, Switzerland. | |||
There was a problem hiding this comment.
We usually require that the license come out of the actual upstream repo rather than trying to cough up the text ourselves so that updates that change the license don't end up making us install lies about what the license is.
I don't know the extent for "never" here. The current approach would typically include the "right" header in native builds, due to typical installation layouts. It might also often include the "wrong" header in cross builds without the user noticing, subject to sysroot and default search paths. IMHO it is simply wrong to use pkgconfig while not using the paths provided by pkgconfig. FTR here is a code example from official documentation: |
Signed-off-by: Yoctopuce <dev@yoctopuce.com>
|
Repeating my question:
|
I investigated de-vendoring when I created this port a few months back. Didn't seem possible... |
|
So it is not used? (But it is also not removed.) |
Not used. Portfile sets |
./vcpkg x-add-version --alland committing the result.