-
Notifications
You must be signed in to change notification settings - Fork 7.2k
[libunistring] fix iconv dependency on windows (solution copied from gettext port) #47347
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
Conversation
|
@microsoft-github-policy-service agree |
930ea85 to
e5e40da
Compare
|
I am curious to see the iconv check from the config.log for a debug build before this change. There must be a reason why this fails.
mpir does not declare a dependency on iconv. |
|
There's |
|
Ok, got it - was obviously wrong about linking part, I cut out, actual programs, as they are not important, the issue is clearly visible: I'm not sure if this is issue on my end, or should the dll be copied during the tests to a dir where the tests are made? |
ports/libunistring/portfile.cmake
Outdated
|
|
||
| if(VCPKG_TARGET_IS_WINDOWS) | ||
| list(APPEND OPTIONS | ||
| # Avoid unnecessary tests. |
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.
Can you fix this to explain more clearly what the fix is? I see you described it well in the PR but it really should be here for the next person trying to figure out why this is here. As written it looks like this is a perf fix someone may choose to omit but here it's actually load bearing.
It may be helpful if you can show which particular test it does not like...
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.
added comment, hopefully ok
versions/l-/libunistring.json
Outdated
| "port-version": 2 | ||
| }, | ||
| { | ||
| "git-tree": "70d16d271eb087c5a92ce320b8329b740494edcb", |
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.
This is damaged. Please
git checkout origin/master -- versions
vcpkg x-add-version libunistring
or similar to restore the value for 1.2#1
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.
rebased on master and fixed
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.
it seems CI is still complaining, although I'm not quite sure why :|
e5e40da to
fa42419
Compare
…ort) (trying to bump version for the third time)
fa42419 to
ce60525
Compare
|
microsoft/vcpkg-tool#1817 bug fix |
|
Thanks and sorry for the mess! |
Libunistring package on windows is built without iconv support - which renders it a bit useless.
Unfortunatelly, iconv is not a required for the libunistring build to succeed.
Fragment of build log without the patch:
With patch:
Imported libs (without patch):
Imported libs (with patch):
Example affected function (without patch)
Example affected function (with patch)
./vcpkg x-add-version --alland committing the result.P.S. The other two packages that might have similar issue (I only did some grepping, haven't verified it), might be mpir and openmpi.