Created attachment 241317 [details] Patch for qt6-base Backport commit 3f45905953d57e0174059d7d9d6bc75c3c1c406c as without this patch QT pulls in static library of (lib)zstd when CMake files are available which causes build failure and is inconsistent with behaviour using pkgconfig Reference: https://github.com/qt/qtbase/commit/3f45905953d57e0174059d7d9d6bc75c3c1c406c Poudriere testport OK 12.4-RELEASE (amd64) Additional info: Fixes build after https://cgit.freebsd.org/ports/commit/?id=72ad532057c9f9fb6fa370c80f663c005e9dd021
Thanks a lot for the fast patch! I'm running it with success here. Hope this can be approved and committed soon!
BTW, with zstd fully converted to cmake this issue didn't rise up at all. This is an autocrap tools failure not a qt of zstd itself
I can confirm the patch works on 13.2 stable amd64 using poudriere here as well. Thanks for the quick patch.
It should be fixed in ports 454e3c91ae9105a9af1939c9632424083ed3bbdb.
According to upstream the commited fix (adding -fPIC) is not recommended, https://github.com/facebook/zstd/issues/2233#issuecomment-655600389
Friendly ping kde@ Team
Ship it. mfg Tobias
A commit in branch main references this bug: URL: https://cgit.FreeBSD.org/ports/commit/?id=93865c964d29fb5d49b7b2651735f955ead4d019 commit 93865c964d29fb5d49b7b2651735f955ead4d019 Author: Daniel Engberg <diizzy@FreeBSD.org> AuthorDate: 2023-04-15 17:57:41 +0000 Commit: Daniel Engberg <diizzy@FreeBSD.org> CommitDate: 2023-04-15 18:03:57 +0000 devel/qt6-base: Prefer shared library for libzstd Backport upstream commit 3f45905953d57e0174059d7d9d6bc75c3c1c406c as without this patch QT by default pulls in (lib)zstd's static library when CMake files are available which causes build failure unless (lib)zstd is compiled with -fPIC (non standard option) and is inconsistent with behaviour using pkgconfig PR: 270664 Approved by: kde (tcberner) devel/qt6-base/Makefile | 3 +++ devel/qt6-base/distinfo | 4 +++- 2 files changed, 6 insertions(+), 1 deletion(-)
Thanks