[Bug 268652] Qt5: Some apps fails to start after upgrading to 5.15.8

From: <bugzilla-noreply_at_freebsd.org>
Date: Sun, 08 Oct 2023 04:42:11 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=268652

--- Comment #69 from Tatsuki Makino <tatsuki_makino@hotmail.com> ---
(In reply to Tomoaki AOKI from comment #68)
>    ${PORTSDIR} is manually set as /ports/build (otherwise, basically, /usr/ports is used)
>    ${.CURDIR} is expanded as /ports/build/FOO/qt5-BAR

This means that if the value set in PORTSDIR is the same as the value at the
beginning of .CURDIR, there is no problem.
It was a check to see if the patch file shown in "make -C
/usr/ports/devel/qt5-qmake/ -V EXTRA_PATCHES" result could be reached.

... I have had a number of people here confirm what I have come up with
regarding possible matters.
So I tried to reproduce the procedure for updating from the old version to the
new version :)
The procedure is roughly as follows (but that may be wrong :) )

git revert --no-commit 2a5c778173f13a057551b4284269b82f6faa077f
poudriere bulk -j ... multimedia/vlc multimedia/audacious-plugin
ports-mgmt/pkg_replace
poudriere jail -s -j ...
jexec jailname-porttree-n env -i "TERM=$TERM" /usr/bin/login -f -p root
make -C /usr/ports/multimedia/vlc pkg-depends install-package
make -C /usr/ports/multimedia/audacious-plugin install-package
make -C /usr/ports/ports-mgmt/pkg_replace install-package
exit
git restore --source=HEAD --worktree --staged :/
jexec jailname-porttree-n env -i "TERM=$TERM" /usr/bin/login -f -p root
pkg_replace -B -a

This completed audacious, which did not start well :)
Errors like this.
ERROR ../src/libaudcore/plugin-load.cc:70 [plugin_load]:
/usr/local/lib/audaciou
s/General/albumart-qt.so could not be loaded: /usr/local/lib/libaudqt.so.2:
Undefined symbol "_ZN11QToolButton13checkStateSetEv@Qt_5"

This operation led to one clear difference between the package created by
poudriere and the update by pkg_replace.
The following unified diff.

--- /usr/local/lib/qt5/mkspecs/qmodule.pri      2023-09-25 23:38:37.000000000
+0000
+++
/usr/local/poudriere/data/.m/src-null-1/ref/usr/local/lib/qt5/mkspecs/qmodule.pri
  2023-10-07 09:56:52.000000000 +0000
@@ -1,11 +1,13 @@
 QT_CPU_FEATURES.x86_64 = mmx sse sse2
-QT.global_private.enabled_features = sse2 alloca_malloc_h alloca avx2 dlopen
network posix_fallocate reduce_exports reduce_relocations relocatable sql
system-zlib testlib xml
-QT.global_private.disabled_features = alloca_h android-style-assets
private_tests dbus dbus-linked gc_binaries gui intelcet libudev release_tools
stack-protector-strong widgets zstd
+QT.global_private.enabled_features = sse2 alloca_malloc_h alloca avx2 dlopen
libudev network posix_fallocate reduce_exports reduce_relocations relocatable
sql system-zlib testlib xml zstd
+QT.global_private.disabled_features = alloca_h android-style-assets
private_tests dbus dbus-linked gc_binaries gui intelcet release_tools
stack-protector-strong widgets
 PKG_CONFIG_EXECUTABLE = pkgconf
 QMAKE_LIBS_LIBDL = 
+QMAKE_LIBS_LIBUDEV = -L/usr/local/lib -ludev
 QT_COORD_TYPE = double
 QMAKE_LIBS_ZLIB = -lz
+QMAKE_LIBS_ZSTD = -L/usr/local/lib -lzstd
 CONFIG -= precompile_header
 CONFIG += sse2 aesni sse3 ssse3 sse4_1 sse4_2 avx avx2 avx512f avx512bw
avx512cd avx512dq avx512er avx512ifma avx512pf avx512vbmi avx512vl
compile_examples f16c largefile rdrnd rdseed shani x86SimdAlways
 QT_BUILD_PARTS += libs tools
-QT_HOST_CFLAGS_DBUS += 
+QT_HOST_CFLAGS_DBUS += -I/usr/local/include/dbus-1.0
-I/usr/local/lib/dbus-1.0/include

It seems that this is a file installed by qt5-qmake, but it looks like there
may be ports that should not be installed when it is built.

-- 
You are receiving this mail because:
You are on the CC list for the bug.