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

[flann] Fix pop_t is not defined under non-gunc platform. #32468

Merged
merged 5 commits into from
Jul 12, 2023
Merged

[flann] Fix pop_t is not defined under non-gunc platform. #32468

merged 5 commits into from
Jul 12, 2023

Conversation

jimwang118
Copy link
Contributor

@jimwang118 jimwang118 commented Jul 10, 2023

Fixes #32448
Add fix_undefined_pop_t.patch.(https://github.com/opencv/opencv/pull/13270)
Usage test pass with following triplets:

x86-windows
x64-windows
x64-windows-static
  • Changes comply with the maintainer guide
  • SHA512s are updated for each updated download
  • The "supports" clause reflects platforms that may be fixed by this new version
  • Any fixed CI baseline entries are removed from that file.
  • Any patches that are no longer applied are deleted from the port's directory.
  • The version database is fixed by rerunning ./vcpkg x-add-version --all and committing the result.
  • Only one version is added to each modified port's versions file.

@jimwang118 jimwang118 added category:port-bug The issue is with a library, which is something the port should already support info:internal This PR or Issue was filed by the vcpkg team. labels Jul 10, 2023
@Osyotr
Copy link
Contributor

Osyotr commented Jul 10, 2023

No, the correct fix is to remove its usage:
opencv/opencv#13270

@jimwang118
Copy link
Contributor Author

No, the correct fix is to remove its usage: opencv/opencv#13270

OK, I'll fix it.

@jimwang118 jimwang118 marked this pull request as ready for review July 11, 2023 07:08
Adela0814
Adela0814 previously approved these changes Jul 11, 2023
@Adela0814 Adela0814 added the info:reviewed Pull Request changes follow basic guidelines label Jul 11, 2023
Copy link
Member

@BillyONeal BillyONeal left a comment

Choose a reason for hiding this comment

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

Please follow up with upstream to ensure the change is correct.

@@ -9,6 +9,7 @@ vcpkg_from_github(
PATCHES
fix-build-error.patch
fix-dependency-hdf5.patch
fix_undefined_pot_t.patch #https://github.com/flann-lib/flann/pull/405
Copy link
Member

Choose a reason for hiding this comment

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

The changes in this patch are not the changes in that PR.

HammingLUT lut;
result = lut(reinterpret_cast<const unsigned char*> (a),
- reinterpret_cast<const unsigned char*> (b), size * sizeof(pop_t));
+ reinterpret_cast<const unsigned char*> (b), size);
Copy link
Member

Choose a reason for hiding this comment

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

This seems broken as the linked PR suggests that pop_t should be either unsigned long or unsigned long long, which means size will be too small with this change.

Copy link
Contributor

Choose a reason for hiding this comment

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

Copy link
Member

Choose a reason for hiding this comment

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

I see, so the patch is correct because the original code was bogus, and the comment is wrong.

@BillyONeal BillyONeal marked this pull request as draft July 11, 2023 18:59
@BillyONeal BillyONeal removed the info:reviewed Pull Request changes follow basic guidelines label Jul 11, 2023
@BillyONeal BillyONeal marked this pull request as ready for review July 11, 2023 19:38
@BillyONeal BillyONeal added the info:reviewed Pull Request changes follow basic guidelines label Jul 11, 2023
@BillyONeal BillyONeal merged commit 5d94ad7 into microsoft:master Jul 12, 2023
15 checks passed
@BillyONeal
Copy link
Member

Thanks!

@jimwang118 jimwang118 deleted the fixflann branch August 30, 2023 10:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
category:port-bug The issue is with a library, which is something the port should already support info:internal This PR or Issue was filed by the vcpkg team. info:reviewed Pull Request changes follow basic guidelines
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[flann] 'pop_t':Undefined type
4 participants