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

Fix zlib 1.2.12 vcpkg failure #2377

Merged
merged 2 commits into from
Oct 28, 2022
Merged

Fix zlib 1.2.12 vcpkg failure #2377

merged 2 commits into from
Oct 28, 2022

Conversation

antkmsft
Copy link
Member

@antkmsft antkmsft commented Oct 28, 2022

Unfortunately, we can't easily pick same SHA that we picked for updating the C++ SDK (Azure/azure-sdk-for-cpp#4036), because paho-mqtt has a breaking change at that commit SHA (fatal error C1083: Cannot open include file: 'paho-mqtt/MQTTClient.h': No such file or directory).

So, overrides if not the final step, is definitely the first fix.

@antkmsft antkmsft requested a review from RickWinter as a code owner October 28, 2022 00:39
@antkmsft antkmsft self-assigned this Oct 28, 2022
@antkmsft antkmsft requested a review from ahsonkhan October 28, 2022 00:39
@antkmsft antkmsft changed the title Update vcpkg baseline (zlib vcpkg failure fix) Fix zlib 1.2.12 vcpkg failure Oct 28, 2022
@ahsonkhan
Copy link
Member

How come CI has been passing even without this change over the last few weeks?

It makes me wonder if we actually need this change in Embedded C, or if we aren't building the expected configuration in CI to hit the issue.

@ahsonkhan
Copy link
Member

because paho-mqtt has a breaking change at that commit SHA (fatal error C1083: Cannot open include file: 'paho-mqtt/MQTTClient.h': No such file or directory).

FYI @danewalton, @CIPop - luckily this should only impact samples

@ahsonkhan ahsonkhan added this to the 2022-11 milestone Oct 28, 2022
Copy link
Member

@ahsonkhan ahsonkhan left a comment

Choose a reason for hiding this comment

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

Looks good (as long as it is actually needed to build the SDK, following our steps/CI to pass).

P.S. I just noticed our SDK version in the vcpkg.json file is out-dated (1.0.0), but we don't actually ship on vcpkg, but rather use it to get our dependencies, so it isn't crucial to keep in sync.

@antkmsft
Copy link
Member Author

@ahsonkhan, we do also have versions in the C++ sdk, but we have two sets of files - first are the ones that are used for vcpkg export. Those should have version updated. But they keep it updated by using a placeholder, and then the script inserts the release version. Second set of vcpkg.json files is for "vcpkg manifest mode" - and there, version number is not important at all.

@antkmsft antkmsft merged commit 9f97d65 into Azure:main Oct 28, 2022
@LarryOsterman
Copy link
Member

Do we still need this change given that it appears that the fix is available in vcpkg?

@ahsonkhan
Copy link
Member

That's what I am wondering too. @antkmsft do we actually need this change?

@antkmsft
Copy link
Member Author

Yes, we need the fix, because baseline is at f0aa678b7471497f1adedcc99f40e1599ad22f69 vcpkg commit:

"builtin-baseline": "f0aa678b7471497f1adedcc99f40e1599ad22f69",

And at that commit, 1.2.12#2 (the version uses link that does not 404 + security patch) or 1.2.13 does not exist.

@LarryOsterman
Copy link
Member

Why not move C to a newer baseline? That baseline is back in April.

@antkmsft
Copy link
Member Author

@LarryOsterman, one of the dependencies, paho-mqtt appears to have a breaking change at that SHA :(

@LarryOsterman
Copy link
Member

What is the plan to move the baseline forward? We can't remain stuck on a 6 month old package baseline for all packages.

@CIPop
Copy link
Member

CIPop commented Nov 1, 2022

because paho-mqtt has a breaking change at that commit SHA (fatal error C1083: Cannot open include file: 'paho-mqtt/MQTTClient.h': No such file or directory).

FYI @danewalton, @CIPop - luckily this should only impact samples

Was this already fixed? They've just changed the include paths (which was incorrect initially).
I have all of these fixed in my investigation branch here: https://github.com/CIPop/azure-sdk-for-c/tree/hfsm using a VCPKG from sometime in June/July.

@antkmsft antkmsft deleted the vcpkg-zlib-fix branch October 9, 2023 18:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants