[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#1010575: qt6-base_6.2.4 QLibraryInfo path issue



Package: qt6-base
Severity: normal
Tags: patch
User: ubuntu-devel@lists.ubuntu.com
Usertags: origin-ubuntu kinetic ubuntu-patch
X-Debbugs-Cc: tsteven4@gmail.com

Dear Maintainer,

   * What led up to the situation?
     The situation requires the dynamic loader to use symbolic links, like
     often is done on usr-merged systems.  It was previously fixed in Debian,
     but the required configuration parameter was dropped when converting
     from Qt5 configure to Qt6 cmake.
   * What exactly did you do (or not do) that was effective (or
     ineffective)?
     An effective fix, that is widely used on Linux distributions, is to
     disable the relocatble feature when generating the build system.
   * What was the outcome of this action?
     Disabling the relocatable feature results in the correct paths being
     returned by QLibraryInfo, and Qt WebEngine finding it's resources.
   * What outcome did you expect instead?
     This was the desired outcome.

In Ubuntu, the attached patch was applied to achieve the following:

This patch is needed to fix paths on usr-merged systems like Ubuntu jammy.
Without this patch QLibraryInfo can return incorrect paths.  This can lead to
"Qt WebEngine resources not found", and a loss of functionality.  This patch
was previously applied to the Debain Qt5 package 5.14.2+dfsg-3 to closes:
#961554.  The issue is further discussed in
https://bugs.launchpad.net/ubuntu/+source/qt6-base/+bug/1970057



  * Make QLibraryInfo tolerant of symbolic links in loader search path
    (LP: #1970057).


Thanks for considering the patch.


-- System Information:
Debian Release: bookworm/sid
  APT prefers jammy-updates
  APT policy: (500, 'jammy-updates'), (500, 'jammy-security'), (500, 'jammy')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 5.15.0-27-generic (SMP w/2 CPU threads)
Kernel taint flags: TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled
diff -Nru qt6-base-6.2.4+dfsg/debian/control qt6-base-6.2.4+dfsg/debian/control
--- qt6-base-6.2.4+dfsg/debian/control	2022-04-11 11:33:56.000000000 -0600
+++ qt6-base-6.2.4+dfsg/debian/control	2022-05-02 13:21:10.000000000 -0600
@@ -1,7 +1,6 @@
 Source: qt6-base
 Priority: optional
-Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com>
-XSBC-Original-Maintainer: Debian Qt/KDE Maintainers <debian-qt-kde@lists.debian.org>
+Maintainer: Debian Qt/KDE Maintainers <debian-qt-kde@lists.debian.org>
 Uploaders: Patrick Franz <deltaone@debian.org>
 Build-Depends: cmake (>= 3.18~),
                debhelper-compat (= 13),
diff -Nru qt6-base-6.2.4+dfsg/debian/rules qt6-base-6.2.4+dfsg/debian/rules
--- qt6-base-6.2.4+dfsg/debian/rules	2022-04-11 11:32:44.000000000 -0600
+++ qt6-base-6.2.4+dfsg/debian/rules	2022-05-02 13:20:45.000000000 -0600
@@ -71,6 +71,7 @@
 		-DFEATURE_system_png=ON \
 		-DFEATURE_system_libb2=ON \
 		-DFEATURE_rpath=OFF \
+		-DFEATURE_relocatable=OFF \
 		$(extra_cmake_args)
 
 

Reply to: