[Bug 2063510] [NEW] "find_java_runtime openjdk" fails to find /usr/lib/jvm/java-21-openjdk-amd64
Public bug reported: # . /usr/lib/java-wrappers/java-wrappers.sh # find_java_runtime openjdk [warning] /bin/bash: No java runtime was found # ls -l /usr/lib/jvm total 4 lrwxrwxrwx 1 root root 25 Oct 4 2023 default-java -> java-1.21.0-openjdk-amd64 lrwxrwxrwx 1 root root 21 Apr 22 19:35 java-1.21.0-openjdk-amd64 -> java-21-openjdk-amd64 drwxr-xr-x 7 root root 4096 Apr 25 15:31 java-21-openjdk-amd64 ProblemType: Bug DistroRelease: Ubuntu 24.04 Package: java-wrappers 0.4 Uname: Linux 5.15.146.1-microsoft-standard-WSL2 x86_64 ApportVersion: 2.28.1-0ubuntu2 Architecture: amd64 CasperMD5CheckResult: unknown CloudBuildName: ubuntu-oci:minimized CloudSerial: 20240407.1 Date: Thu Apr 25 22:17:36 2024 PackageArchitecture: all ProcEnviron: PATH=(custom, no user) TERM=xterm SourcePackage: java-wrappers UpgradeStatus: No upgrade log present (probably fresh install) ** Affects: java-wrappers (Ubuntu) Importance: Undecided Status: New ** Tags: amd64 apport-bug cloud-image noble ** Patch added: "patch to add openjdk21 to jvm-list.sh" https://bugs.launchpad.net/bugs/2063510/+attachment/5770583/+files/jvmlist.patch -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/2063510 Title: "find_java_runtime openjdk" fails to find /usr/lib/jvm/java-21-openjdk-amd64 To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/java-wrappers/+bug/2063510/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1970057] Re: Qt6 QLibraryInfo returns wrong paths
SRU request: Please accept qt6-base 6.2.4+dfsg-8 into jammy. [Impact] 1. QLibraryInfo can return non-existent paths. 2. This results in Qt6 QWebEngine being unusable. [Test Plan] 1. Check the output of qtdiag from qt6-tools-dev-tools, and verify the paths exist. a) Run "qtdiag --no-vulkan --no-rhi --no-gl | grep Path" b) verify that the paths actually exist, in particular DataPath: /share/qt6 does not exist on jammy. 2. Build the Qt supplied simplebrowser example, and verify it launches without error a) apt-get source libqt6webenginecore6 b) cd qt6-webengine-6.2.4+dfsg/examples/webenginewidgets/simplebrowser c) mkdir bld d) cd bld e) cmake -DCMAKE_BUILD_TYPE=Release .. f) cmake --build . g) ./simplebrowser An example of output from a failure is attached as faillog.txt. In particular note the failure to find resources at /share: Qt WebEngine resources not found at /share/qt6/resources. Trying parent directory... Qt WebEngine resources not found at /share/qt6. Trying application directory... and the resulting segmentation fault: Segmentation fault (core dumped) [Where problems could occur] The change in 6.2.4+dfsg-8 restores the configuration settings that were used to build qtbase-opensource-src (5.14.2+dfsg-3) through qtbase- opensource-src (5.15.3+dfsg-2). The setting was lost on the transition from the Qt5 qmake build to the Qt6 cmake build. The change causes QLibraryInfo to use paths known at build time instead of trying to dynamically establish the paths. This will fail if the package is relocated to a different location from that which it is build for. Since the package isn't relocatable this shouldn't be a problem. [Other Info] The change is currently in The Kinetic Kudu (active development). ** Attachment added: "test plan part 2 failure example" https://bugs.launchpad.net/ubuntu/+source/qt6-base/+bug/1970057/+attachment/5592341/+files/faillog.txt -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1970057 Title: Qt6 QLibraryInfo returns wrong paths To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/qt6-base/+bug/1970057/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1970057] Re: Qt6 QLibraryInfo returns wrong paths
A bug has been opened with debian: https://bugs.debian.org/cgi- bin/bugreport.cgi?bug=1010575 ** Bug watch added: Debian Bug tracker #1010575 https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1010575 -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1970057 Title: Qt6 QLibraryInfo returns wrong paths To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/qt6-base/+bug/1970057/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1970057] Re: Qt6 QLibraryInfo returns wrong paths
I note that qtbase-opensource-src-5.15.3+dfsg works correctly on jammy. This is likely because the "-no-feature-relocatable" option is used with configure in debian/rules. 2-qt6-base_6.2.4+dfsg-2ubuntu2.debdiff adds the equivalent cmake option for qt6-base_6.2.4+dfsg. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1970057 Title: Qt6 QLibraryInfo returns wrong paths To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/qt6-base/+bug/1970057/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1970057] Re: Qt6 QLibraryInfo returns wrong paths
This is another way to fix the problem. It was suggested in https://bugreports.qt.io/browse/QTBUG-82589?focusedCommentId=500548=com.atlassian.jira.plugin.system.issuetabpanels:comment- tabpanel#comment-500548: "or disable the relocating feature for your distro". That is what this patch does. This is a debdiff for qt6-base applicable to 6.2.4+dfsg-2ubuntu1. I built this in pbuilder and it builds successfully, and I installed it, the patch works as intended. ** Patch added: "2-qt6-base_6.2.4+dfsg-2ubuntu2.debdiff" https://bugs.launchpad.net/ubuntu/+source/qt6-base/+bug/1970057/+attachment/5585995/+files/2-qt6-base_6.2.4+dfsg-2ubuntu2.debdiff -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1970057 Title: Qt6 QLibraryInfo returns wrong paths To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/qt6-base/+bug/1970057/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1964763] Re: QtChooser doesn't support qt6
This is a debdiff for qtchooser applicable to qtchooser_66-2build1. I built this in pbuilder and it builds successfully, and I installed it, the patch works as intended. ** Patch added: "1-qtchooser_66-2ubuntu1.debdiff" https://bugs.launchpad.net/ubuntu/+source/qtchooser/+bug/1964763/+attachment/5585108/+files/1-qtchooser_66-2ubuntu1.debdiff -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1964763 Title: QtChooser doesn't support qt6 To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/qtchooser/+bug/1964763/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1970057] Re: Qt6 QLibraryInfo returns wrong paths
Here is a more complete patch. The fix is the same, but this includes the updates to changelog, patches/series, as well. ** Patch added: "1-qt6-base_6.2.4+dfsg-2ubuntu2.dsc.debdiff" https://bugs.launchpad.net/ubuntu/+source/qt6-base/+bug/1970057/+attachment/5584085/+files/1-qt6-base_6.2.4+dfsg-2ubuntu2.dsc.debdiff -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1970057 Title: Qt6 QLibraryInfo returns wrong paths To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/qt6-base/+bug/1970057/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1970057] Re: Qt6 QLibraryInfo returns wrong paths
One could imagine a more robust solution where the cmake function file(REAL_PATH [BASE_DIRECTORY ] [EXPAND_TILDE]) was used to guarantee that QtQmakeHelpers.cmake resolved the relative path used to compute QT_CONFIGURE_LIBLOCATION_TO_PREFIX_PATH in the same manner that the supplied patch works at run time. This isn't necessary the way the jammy build is set up, but it might be necessary in general. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1970057 Title: Qt6 QLibraryInfo returns wrong paths To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/qt6-base/+bug/1970057/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1970057] Re: Qt6 QLibraryInfo returns wrong paths
This issue appears on jammy because /lib is a symbolic link, and the /lib/x86_64-linux-gnu entry in the loader search path is used to find libQt6Core. The cmake generated qconfig.cpp contains this line: #define QT_CONFIGURE_LIBLOCATION_TO_PREFIX_PATH "../../" So, prefixFromQtCoreLibraryHelper() computes prefixdir as /lib/x86_64-linux-gnu/../../ and returns /. Note if /usr/lib/x86_64-linux-gnu had been used to find libQt6Core by the loader, then prefixFromQtCoreLibraryHelper() would have computed prefixdir as /usr/lib/x86_64-linux-gnu/../../, and returned /usr, which would have worked. Instead of messing with the loader search path, or messing with cmake to compute QT_CONFIGURE_LIBLOCATION_TO_PREFIX_PATH correctly given the loader search path, the attached patch just resolves any symbolic link so libdir becomes /usr/lib/x86_64-linux-gnu instead of /lib/x86_64-linux-gnu and prefixFromQtCoreLibraryHelper() returns /usr. ** Patch added: "qlibraryinfo_symlink.patch" https://bugs.launchpad.net/ubuntu/+source/qt6-base/+bug/1970057/+attachment/5583206/+files/qlibraryinfo_symlink.patch -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1970057 Title: Qt6 QLibraryInfo returns wrong paths To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/qt6-base/+bug/1970057/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1970057] Re: Qt6 QLibraryInfo returns wrong paths
This seems to be related to the dynamic loader search path, see the comments in https://bugreports.qt.io/browse/QTBUG-82589 -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1970057 Title: Qt6 QLibraryInfo returns wrong paths To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/qt6-base/+bug/1970057/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1970057] [NEW] Qt6 QLibraryInfo returns wrong paths
Public bug reported: The qtdiag program can be used to find the paths returned by QLibraryInfo: qtdiag --no-vulkan --no-rhi --no-gl In this output on jammy (22.04) with qt6-base-dev (6.2.4+dfsg-2ubuntu1) I see: Library info: PrefixPath: / DocumentationPath: /share/qt6/doc HeadersPath: /include/x86_64-linux-gnu/qt6 LibrariesPath: /lib/x86_64-linux-gnu LibraryExecutablesPath: /lib/qt6/libexec BinariesPath: /lib/qt6/bin PluginsPath: /lib/x86_64-linux-gnu/qt6/plugins QmlImportsPath: /lib/x86_64-linux-gnu/qt6/qml ArchDataPath: /lib/x86_64-linux-gnu/qt6 DataPath: /share/qt6 TranslationsPath: /share/qt6/translations ExamplesPath: /lib/x86_64-linux-gnu/qt6/examples TestsPath: /tests SettingsPath: /etc/xdg This is problematic. For example, the DataPath /share/qt6 does not exist. This can lead to various failures. For example a Qt application using the Qt WebEngine might report: Qt WebEngine resources not found at /share/qt6/resources. Trying parent directory... Qt WebEngine resources not found at /share/qt6. Trying application directory... Qt WebEngine resources not found at /app/gpsbabel/gui/GPSBabelFE. Trying fallback directory... The application MAY NOT work. Path override failed for key base::DIR_QT_LIBRARY_DATA and path '/home/tsteven4/.GPSBabel' Installed Qt WebEngine locales directory not found at location /share/qt6/translations/qtwebengine_locales. Trying application directory... Qt WebEngine locales directory not found at location /app/gpsbabel/gui/GPSBabelFE/qtwebengine_locales. Trying fallback directory... Translations MAY NOT not be correct. Path override failed for key ui::DIR_LOCALES and path '/home/tsteven4/.GPSBabel' [0423/194717.040426:ERROR:resource_bundle.cc(911)] Failed to load /home/tsteven4/.GPSBabel/qtwebengine_resources_100p.pak Some features may not be available. [0423/194717.041440:ERROR:resource_bundle.cc(911)] Failed to load /home/tsteven4/.GPSBabel/qtwebengine_resources_200p.pak Some features may not be available. [0423/194717.041481:ERROR:resource_bundle.cc(911)] Failed to load /home/tsteven4/.GPSBabel/qtwebengine_resources.pak Some features may not be available. [0423/194717.042243:WARNING:resource_bundle_qt.cpp(119)] locale_file_path.empty() for locale [3004:3004:0423/194717.389096:ERROR:extension_system_qt.cpp(121)] Failed to parse extension manifest. Segmentation fault (core dumped) I note that qtdiag reports the correct paths on debian sid and qt6-base- dev (6.2.4+dfsg-4): Library info: PrefixPath: /usr DocumentationPath: /usr/share/qt6/doc HeadersPath: /usr/include/x86_64-linux-gnu/qt6 LibrariesPath: /usr/lib/x86_64-linux-gnu LibraryExecutablesPath: /usr/lib/qt6/libexec BinariesPath: /usr/lib/qt6/bin PluginsPath: /usr/lib/x86_64-linux-gnu/qt6/plugins QmlImportsPath: /usr/lib/x86_64-linux-gnu/qt6/qml ArchDataPath: /usr/lib/x86_64-linux-gnu/qt6 DataPath: /usr/share/qt6 TranslationsPath: /usr/share/qt6/translations ExamplesPath: /usr/lib/x86_64-linux-gnu/qt6/examples TestsPath: /usr/tests SettingsPath: /etc/xdg It is not clear to me if this is because of the difference in package versions, or some issue with ubuntu packaging. ProblemType: Bug DistroRelease: Ubuntu 22.04 Package: libqt6core6 6.2.4+dfsg-2ubuntu1 ProcVersionSignature: Ubuntu 5.13.0-40.45~20.04.1-generic 5.13.19 Uname: Linux 5.13.0-40-generic x86_64 ApportVersion: 2.20.11-0ubuntu82 Architecture: amd64 CasperMD5CheckResult: unknown Date: Sat Apr 23 19:40:12 2022 ProcEnviron: TERM=xterm PATH=(custom, no user) LANG=en_US.UTF-8 SourcePackage: qt6-base UpgradeStatus: No upgrade log present (probably fresh install) ** Affects: qt6-base (Ubuntu) Importance: Undecided Status: New ** Tags: amd64 apport-bug jammy -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1970057 Title: Qt6 QLibraryInfo returns wrong paths To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/qt6-base/+bug/1970057/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1938908] Re: Backport the container stack in Impish
This works for me: docker.io/focal-proposed,now 20.10.7-0ubuntu5~20.04.1 amd64 [installed] The original error I had during a 'docker build' was: Errors during downloading metadata for repository 'fedora': - Curl error (6): Couldn't resolve host name for https://mirrors.fedoraproject.org/metalink?repo=fedora-35=x86_64 [getaddrinfo() thread failed to start] Error: Failed to download metadata for repo 'fedora': Cannot prepare internal mirrorlist: Curl error (6): Couldn't resolve host name for https://mirrors.fedoraproject.org/metalink?repo=fedora-35=x86_64 [getaddrinfo() thread failed to start] The command '/bin/sh -c dnf install --assumeyes git make valgrind diffutils which findutils langpacks-en && dnf clean all' returned a non-zero code: 1 -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1938908 Title: Backport the container stack in Impish To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/containerd/+bug/1938908/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1874832] [NEW] QCoreApplications sets QTextCodec::codecForLocale() incorrectly
Public bug reported: With ICU versions >= 61 QTextCodec::codecForLocale() always returns the utf-8 codec with mib 106 regardless of the value of the environmental variable LC_ALL or the available locales. On bionic, which included ICU 60, codecForLocale() returned the correct codec. On eoan and focal, which include ICU 63 and ICU 66, the utf-8 codec is always returned. The change in behavior is expected due to a documented change in ICU https://github.com/unicode-org/icu/commit/d7482c9720b4f71dd9dad0. However, Qt has not accounted for this change in ICU. I note that Qt 5.12.8 from https://download.qt.io/archive/qt/5.12/5.12.8/ is packaged with an older version of ICU so the combination works correctly. But on Ubuntu eoan and focal the included version of ICU is not compatible with the included Qt. The included file localetrouble.tar contains 1) demo: a script that builds two tests cases and runs them 2) focal.log: the results of running the demo script on focal 3) bionic.log: the results of running the demo script on bionic 4) test1.cc: a minimal Qt Core application that tries to use the codec from the current locale. 5) test1.pro: Qt pro file used to build test1.cc 6) test2.cc: a test program that shows why Qt fails to detect the correct locale. These two lines are executed by QCoreApplicationPrivate::initLocale() and *QIcuCodec::defaultCodecUnlocked(). 7) test2.pro: Qt pro file used to build test2.cc The expected results of test1 are that codecForLocale is set based on LC_ALL to en_US.iso88591: env LC_ALL=en_US.iso88591 ./test1 QTextCodec::codecForLocale(): "ISO-8859-1" , mib 4 LC_ALL: en_US.iso88591 The actual results on focal are: env LC_ALL=en_US.iso88591 ./test1 QTextCodec::codecForLocale(): "UTF-8" , mib 106 LC_ALL: en_US.iso88591 ProblemType: Bug DistroRelease: Ubuntu 20.04 Package: qtbase5-dev 5.12.8+dfsg-0ubuntu1 ProcVersionSignature: Ubuntu 4.15.0-96.97-generic 4.15.18 Uname: Linux 4.15.0-96-generic x86_64 ApportVersion: 2.20.11-0ubuntu27 Architecture: amd64 CasperMD5CheckResult: skip Date: Fri Apr 24 14:45:36 2020 ProcEnviron: TERM=xterm PATH=(custom, no user) SourcePackage: qtbase-opensource-src UpgradeStatus: No upgrade log present (probably fresh install) ** Affects: qtbase-opensource-src (Ubuntu) Importance: Undecided Status: New ** Tags: amd64 apport-bug focal ** Attachment added: "bug demonstration and analysis" https://bugs.launchpad.net/bugs/1874832/+attachment/5359537/+files/localetrouble.tar -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1874832 Title: QCoreApplications sets QTextCodec::codecForLocale() incorrectly To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/qtbase-opensource-src/+bug/1874832/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs