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

[qtbase] make double-conversion a hard dependency #28245

Merged

Conversation

autoantwort
Copy link
Contributor

double-conversion is needed at all major platforms (linux, osx, windows), otherwise the configure step will fail

github-actions[bot]
github-actions bot previously approved these changes Dec 8, 2022
@Neumann-A
Copy link
Contributor

@Neumann-A
Copy link
Contributor

https://nxmnpg.lemoda.net/3/sscanf_l
https://nxmnpg.lemoda.net/3/snprintf_l

These functions first appeared in Darwin and were first implemented in FreeBSD 9.1 .

So it seems like they should be available on OSX. Maybe the configure check for xlocalescanprint is broken.

ports/qtbase/vcpkg.json Outdated Show resolved Hide resolved
@autoantwort
Copy link
Contributor Author

So it seems like they should be available on OSX. Maybe the configure check for xlocalescanprint is broken.

Hm they are available, but when I try to build qtbase[core] I get

ERROR: Your C library does not provide sscanf_l or snprintf_l. You need to use libdouble-conversion for double/string conversion.

@autoantwort
Copy link
Contributor Author

autoantwort commented Dec 8, 2022

Maybe the configure check for xlocalescanprint is broken.

Probably, the code is marked with FIXME

@autoantwort
Copy link
Contributor Author

So I can leave the feature but make it a hard dependency until the qt folks fixed their configure checks.

github-actions[bot]
github-actions bot previously approved these changes Dec 8, 2022
@Neumann-A
Copy link
Contributor

qt folks fixed their configure checks.

you could probably fix it faster ;)

@@ -22,8 +22,7 @@
"default-features": false,
"features": [
"doubleconversion"
],
"platform": "windows"
Copy link
Contributor

Choose a reason for hiding this comment

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

"platform": "!osx & !freebsd" ? That is what upstream claims indirectly. I think that should be reflected here. I know that it is annoying for osx but if it is not annoying nobody will fix it ;)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yeah we can use that if the config check is fixed.

@LilyWangLL LilyWangLL added the category:port-bug The issue is with a library, which is something the port should already support label Dec 9, 2022
@autoantwort
Copy link
Contributor Author

autoantwort commented Dec 9, 2022

It seems that thread is also a required feature on macos:

[410/412] /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++ -DGL_SILENCE_DEPRECATION -DQT_CORE_LIB -DQT_LEAN_HEADERS=1 -DQT_NO_EXCEPTIONS -DQT_NO_JAVA_STYLE_ITERATORS -DQT_NO_NARROWING_CONVERSIONS_IN_CONNECT -DQT_USE_QSTRINGBUILDER -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -I/Users/leanderSchulten/git_projekte/Lichtsteuerung/vcpkg/buildtrees/qtbase/arm64-osx-dbg/src/tools/macdeployqt/macdeployqt/macdeployqt_autogen/include -I/Users/leanderSchulten/git_projekte/Lichtsteuerung/vcpkg/buildtrees/qtbase/src/here-src-6-9a900bf8dd.clean/src/tools/macdeployqt/macdeployqt -I/Users/leanderSchulten/git_projekte/Lichtsteuerung/vcpkg/buildtrees/qtbase/arm64-osx-dbg/src/tools/macdeployqt/macdeployqt -I/Users/leanderSchulten/git_projekte/Lichtsteuerung/vcpkg/buildtrees/qtbase/arm64-osx-dbg/include -I/Users/leanderSchulten/git_projekte/Lichtsteuerung/vcpkg/buildtrees/qtbase/arm64-osx-dbg/include/QtCore -I/Users/leanderSchulten/git_projekte/Lichtsteuerung/vcpkg/buildtrees/qtbase/src/here-src-6-9a900bf8dd.clean/mkspecs/macx-clang -fPIC -g -arch arm64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk -fPIE -fvisibility=hidden -fvisibility-inlines-hidden -Wall -Wextra -fno-exceptions -ffunction-sections -fdata-sections -std=c++17 -MD -MT src/tools/macdeployqt/macdeployqt/CMakeFiles/macdeployqt.dir/__/shared/shared.cpp.o -MF src/tools/macdeployqt/macdeployqt/CMakeFiles/macdeployqt.dir/__/shared/shared.cpp.o.d -o src/tools/macdeployqt/macdeployqt/CMakeFiles/macdeployqt.dir/__/shared/shared.cpp.o -c /Users/leanderSchulten/git_projekte/Lichtsteuerung/vcpkg/buildtrees/qtbase/src/here-src-6-9a900bf8dd.clean/src/tools/macdeployqt/shared/shared.cpp
FAILED: src/tools/macdeployqt/macdeployqt/CMakeFiles/macdeployqt.dir/__/shared/shared.cpp.o 
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++ -DGL_SILENCE_DEPRECATION -DQT_CORE_LIB -DQT_LEAN_HEADERS=1 -DQT_NO_EXCEPTIONS -DQT_NO_JAVA_STYLE_ITERATORS -DQT_NO_NARROWING_CONVERSIONS_IN_CONNECT -DQT_USE_QSTRINGBUILDER -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -I/Users/leanderSchulten/git_projekte/Lichtsteuerung/vcpkg/buildtrees/qtbase/arm64-osx-dbg/src/tools/macdeployqt/macdeployqt/macdeployqt_autogen/include -I/Users/leanderSchulten/git_projekte/Lichtsteuerung/vcpkg/buildtrees/qtbase/src/here-src-6-9a900bf8dd.clean/src/tools/macdeployqt/macdeployqt -I/Users/leanderSchulten/git_projekte/Lichtsteuerung/vcpkg/buildtrees/qtbase/arm64-osx-dbg/src/tools/macdeployqt/macdeployqt -I/Users/leanderSchulten/git_projekte/Lichtsteuerung/vcpkg/buildtrees/qtbase/arm64-osx-dbg/include -I/Users/leanderSchulten/git_projekte/Lichtsteuerung/vcpkg/buildtrees/qtbase/arm64-osx-dbg/include/QtCore -I/Users/leanderSchulten/git_projekte/Lichtsteuerung/vcpkg/buildtrees/qtbase/src/here-src-6-9a900bf8dd.clean/mkspecs/macx-clang -fPIC -g -arch arm64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk -fPIE -fvisibility=hidden -fvisibility-inlines-hidden -Wall -Wextra -fno-exceptions -ffunction-sections -fdata-sections -std=c++17 -MD -MT src/tools/macdeployqt/macdeployqt/CMakeFiles/macdeployqt.dir/__/shared/shared.cpp.o -MF src/tools/macdeployqt/macdeployqt/CMakeFiles/macdeployqt.dir/__/shared/shared.cpp.o.d -o src/tools/macdeployqt/macdeployqt/CMakeFiles/macdeployqt.dir/__/shared/shared.cpp.o -c /Users/leanderSchulten/git_projekte/Lichtsteuerung/vcpkg/buildtrees/qtbase/src/here-src-6-9a900bf8dd.clean/src/tools/macdeployqt/shared/shared.cpp
/Users/leanderSchulten/git_projekte/Lichtsteuerung/vcpkg/buildtrees/qtbase/src/here-src-6-9a900bf8dd.clean/src/tools/macdeployqt/shared/shared.cpp:153:5: error: unknown type name 'QProcess'
    QProcess otool;
    ^

The config check in qtbase is currently broken so that double-conversion is always required
@LilyWangLL LilyWangLL added the info:reviewed Pull Request changes follow basic guidelines label Dec 14, 2022
@dan-shaw dan-shaw merged commit 4825c62 into microsoft:master Dec 14, 2022
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:reviewed Pull Request changes follow basic guidelines
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants