From nobody Thu Feb 10 07:59:26 2022 X-Original-To: dev-commits-ports-main@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 8E03D19B93FD; Thu, 10 Feb 2022 07:59:26 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4JvTfk3VQYz3tNk; Thu, 10 Feb 2022 07:59:26 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1644479966; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=qWU1G13GhQ+Um+JuX9pEW/vmLKPJjSzR2HCJCVprMHQ=; b=XBx4R7ieybr6PqkKmQEXp3NKmK9F87lFc4uOVGTTT69uowqFin5Y5vdhUr+BL3FeqggRqA 9/cTCWTQU7RFtGO4U4592/CH9JN/MF8+qoI65ykOks3kHck3DJiHNB9IMHp3YxHTwosAS6 /9ZtvHxH8gfmSwZFpbNjJDrdBvSUi7OAHld4RHL+Oaxeiod2mh9nt/ugOoPzwzvFKqhdjH KuGSNufBkP0c3fLSIm9xnOV0NLt4Uxo6ow4BDL6PcWnsFfgyEe0V2itpDrx+TiPD3MdgZg FAWoiJ9lzvV/sWWsidRTzfhIlmRGwVO3QyXFiotKWlwiNAf4ZxvXIRI4Z9NTbw== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 58BF81CD14; Thu, 10 Feb 2022 07:59:26 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 21A7xQ73081600; Thu, 10 Feb 2022 07:59:26 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 21A7xQoO081599; Thu, 10 Feb 2022 07:59:26 GMT (envelope-from git) Date: Thu, 10 Feb 2022 07:59:26 GMT Message-Id: <202202100759.21A7xQoO081599@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Jan Beich Subject: git: 8240af3d530b - main - emulators/yuzu: unbreak under Plasma after 4021ff7b85d9 List-Id: Commits to the main branch of the FreeBSD ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-main@freebsd.org X-BeenThere: dev-commits-ports-main@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: jbeich X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 8240af3d530bd4210f7739b6303e663ca21a441d Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1644479966; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=qWU1G13GhQ+Um+JuX9pEW/vmLKPJjSzR2HCJCVprMHQ=; b=YME2IfMYp1OXEwOBmn+wB0ydOIP3qPGQXKaNnjQ13W9Mf3b1ekCPphA13jmuC5Vlg9663R NdIUU1KeRgAfT36nLBqHAwvlD5k0sfDvbKrLwzvWOy0IFQgw+x9XX2VpKBKR6/gQ33p4J3 FMz5LyilrK8Z2eEq3nfAh8heKyjskspF3ZKc+SUnpG8knM/VIcdq6yhMI8mziGcswk2Mdu avxihhJ5FuAwuhOSvjnaX7H40NL7k7tKFPex6j5SueH9NgCjrTVX5bDNBZTie6/yX7ltG7 n42FWLl0RpCC42IcCrL/6IUW1/+F7+rFdjYMzwpQEw+hdRqPLsQdj5QDCE8irA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1644479966; a=rsa-sha256; cv=none; b=bQpoAdqIKwM02R8N9sTzKra3+Ioz3zCOLvSrhqJ8HVCg4QOW0aMm0G010dcity6NgesJIm 7EQy69ml3khsO7VLIP6Blq+b+5WDshEHvMa9J/po3B3MtaAKCdhIknk+TP1uEM+0gqY5cO cFBR3h2p7TOj5kkJlc0top+J9puV5TtsIX/fWejn/no/ch/54n7anFk7oLv1v4B8u30hAB pgQE1z7PMjM7WiXiKXlfgm75ZkdV9dpAC4Yuq25T5ak8O7MscrqaAbyiqULy+gwzLa1Oa0 YRPjVHq4tf9sicqO+Fr7UzgbxIgnHxQNs+Wib96GzJ2dx1z6rSfcy4gNcm42Tw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by jbeich: URL: https://cgit.FreeBSD.org/ports/commit/?id=8240af3d530bd4210f7739b6303e663ca21a441d commit 8240af3d530bd4210f7739b6303e663ca21a441d Author: Jan Beich AuthorDate: 2022-02-10 06:54:13 +0000 Commit: Jan Beich CommitDate: 2022-02-10 07:59:18 +0000 emulators/yuzu: unbreak under Plasma after 4021ff7b85d9 $ yuzu Unhandled SIGSEGV at rip 0x0000083a532c18 PR: 256914 Reported by: jkim Submitted by: Loic (based on) --- emulators/yuzu/Makefile | 1 + emulators/yuzu/files/patch-kde | 71 ++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 72 insertions(+) diff --git a/emulators/yuzu/Makefile b/emulators/yuzu/Makefile index e1767ff1113b..9a1a03fc37c7 100644 --- a/emulators/yuzu/Makefile +++ b/emulators/yuzu/Makefile @@ -1,5 +1,6 @@ PORTNAME= yuzu PORTVERSION= s20220209 +PORTREVISION= 1 CATEGORIES= emulators .if make(makesum) MASTER_SITES= https://api.yuzu-emu.org/gamedb/?dummy=/:gamedb diff --git a/emulators/yuzu/files/patch-kde b/emulators/yuzu/files/patch-kde new file mode 100644 index 000000000000..32c9c04d74e7 --- /dev/null +++ b/emulators/yuzu/files/patch-kde @@ -0,0 +1,71 @@ +$ pkg install yuzu plasma5-plasma-integration +$ export XDG_CURRENT_DESKTOP=KDE KDE_FULL_SESSION=true +$ yuzu +[...] +* thread #1, name = 'yuzu', stop reason = signal SIGSEGV: address access protected (fault address: 0x83c1ccc18) + frame #0: 0x000000083c1ccc18 libcxxrt.so.1`vtable for __cxxabiv1::__si_class_type_info + 16 +libcxxrt.so.1`vtable for __cxxabiv1::__si_class_type_info: +-> 0x83c1ccc18 <+16>: nop + 0x83c1ccc19 <+17>: xchgl %ecx, %eax + 0x83c1ccc1a <+18>: imull $0x0, (%rcx), %eax + 0x83c1ccc1d <+21>: addb %al, (%rax) +(lldb) bt +* thread #1, name = 'yuzu', stop reason = signal SIGSEGV: address access protected (fault address: 0x83c1ccc18) + * frame #0: 0x000000083c1ccc18 libcxxrt.so.1`vtable for __cxxabiv1::__si_class_type_info + 16 + frame #1: 0x0000000822adcf48 + frame #2: 0x000000089c992d16 libKF5ConfigCore.so.5`KConfigGroupPrivate::create(master=0x0000000822adcf48, name=0x0000000822adceb0, isImmutable=false, isConst=false) at kconfiggroup.cpp:114:13 + frame #3: 0x000000089c98bc2a libKF5ConfigCore.so.5`KConfigGroup::KConfigGroup(this=0x0000000822adcf38, master=0x0000000822adcf48, _group="Inactive") at kconfiggroup.cpp:476:9 + frame #4: 0x00000008964fc32f libKF5ConfigWidgets.so.5`KColorSchemePrivate::KColorSchemePrivate(this=0x0000000875c8b3c0, config=0x0000000822add248, state=Inactive, group="Colors:View", defaults=0x00000008964c84b0) at kcolorscheme.cpp:313:38 + frame #5: 0x00000008964fe613 libKF5ConfigWidgets.so.5`KColorScheme::KColorScheme(this=0x0000000822add250, state=Inactive, set=View, config=KSharedConfigPtr @ 0x0000000822add248) at kcolorscheme.cpp:552:17 + frame #6: 0x00000008964ff40c libKF5ConfigWidgets.so.5`KColorScheme::createApplicationPalette(config=0x000000088d3a7160) at kcolorscheme.cpp:702:22 + frame #7: 0x000000088ef1fb6d KDEPlasmaPlatformTheme.so`KHintsSettings::loadPalettes(this=0x000000088d3a7140) at khintssettings.cpp:423:66 + frame #8: 0x000000088ef1e242 KDEPlasmaPlatformTheme.so`KHintsSettings::KHintsSettings(this=0x000000088d3a7140, kdeglobals=KSharedConfig::Ptr @ 0x0000000822addd10) at khintssettings.cpp:144:5 + frame #9: 0x000000088ef183e8 KDEPlasmaPlatformTheme.so`KdePlatformTheme::loadSettings(this=0x000000088d3b19c0) at kdeplatformtheme.cpp:179:19 + frame #10: 0x000000088ef182a2 KDEPlasmaPlatformTheme.so`KdePlatformTheme::KdePlatformTheme(this=0x000000088d3b19c0) at kdeplatformtheme.cpp:62:5 + frame #11: 0x000000088ef4544a KDEPlasmaPlatformTheme.so`KdePlatformThemePlugin::create(this=0x000000088d38a750, key=0x0000000822adde40, paramList=0x0000000822adde60) at main.cpp:25:20 + frame #12: 0x000000083710e720 libQt5Gui.so.5`QPlatformTheme* qLoadPlugin(loader=0x00000008376e6358, key=0x0000000822adde40, args=0x0000000822adde60) at qfactoryloader_p.h:108:52 + frame #13: 0x000000083710e016 libQt5Gui.so.5`QPlatformThemeFactory::create(key=0x0000000875bc4bb0, platformPluginPath=0x0000000822ade300) at qplatformthemefactory.cpp:73:12 + frame #14: 0x000000083711adaf libQt5Gui.so.5`init_platform(pluginNamesWithArguments=0x0000000822ade1c8, platformPluginPath=0x0000000822ade300, platformThemeName=0x0000000822ade220, argc=0x0000000822ade6bc, argv=0x0000000822ade9d8) at qguiapplication.cpp:1282:50 + frame #15: 0x000000083711a111 libQt5Gui.so.5`QGuiApplicationPrivate::createPlatformIntegration(this=0x0000000875c56000) at qguiapplication.cpp:1481:5 + frame #16: 0x000000083711b22c libQt5Gui.so.5`QGuiApplicationPrivate::createEventDispatcher(this=0x0000000875c56000) at qguiapplication.cpp:1498:9 + frame #17: 0x000000083573cb75 libQt5Widgets.so.5`QApplicationPrivate::createEventDispatcher(this=0x0000000875c56000) at qapplication.cpp:167:29 + frame #18: 0x0000000838c2ffc6 libQt5Core.so.5`QCoreApplicationPrivate::init(this=0x0000000875c56000) at qcoreapplication.cpp:835:9 + frame #19: 0x00000008371157f3 libQt5Gui.so.5`QGuiApplicationPrivate::init(this=0x0000000875c56000) at qguiapplication.cpp:1527:30 + frame #20: 0x000000083573d129 libQt5Widgets.so.5`QApplicationPrivate::init(this=0x0000000875c56000) at qapplication.cpp:513:29 + frame #21: 0x000000083573d105 libQt5Widgets.so.5`QApplication::QApplication(this=0x0000000822ade6d0, argc=0x0000000822ade6bc, argv=0x0000000822ade9d8, _internal=331522) at qapplication.cpp:501:8 + frame #22: 0x00000000006447c1 yuzu`main(argc=1, argv=0x0000000822ade9d8) at main.cpp:3697:32 + frame #23: 0x0000000000445890 yuzu`_start(ap=, cleanup=) at crt1_c.c:73:7 +(lldb) f 2 +frame #2: 0x000000089bdbad16 libKF5ConfigCore.so.5`KConfigGroupPrivate::create(master=0x000000082359a8a8, name=0x000000082359a810, isImmutable=false, isConst=false) at kconfiggroup.cpp:114:13 + 111 static QExplicitlySharedDataPointer create(KConfigBase *master, const QByteArray &name, bool isImmutable, bool isConst) + 112 { + 113 QExplicitlySharedDataPointer data; +-> 114 if (dynamic_cast(master)) { + 115 data = new KConfigGroupPrivate(static_cast(master), isImmutable, isConst, name); + 116 } else { + 117 data = new KConfigGroupPrivate(dynamic_cast(master), isImmutable, isConst, name); +(lldb) f 22 +frame #22: 0x00000000006447c1 yuzu`main(argc=1, argv=0x0000000822ade9d8) at main.cpp:3697:32 + 3694 + 3695 // Enables the core to make the qt created contexts current on std::threads + 3696 QCoreApplication::setAttribute(Qt::AA_DontCheckOpenGLContextThreadAffinity); +-> 3697 QApplication app(argc, argv); + 3698 + 3699 // Qt changes the locale and causes issues in float conversion using std::to_string() when + 3700 // generating shaders + +--- src/yuzu/main.cpp.orig 2022-02-09 18:29:32 UTC ++++ src/yuzu/main.cpp +@@ -3692,6 +3692,12 @@ int main(int argc, char* argv[]) { + } + #endif + ++#if (defined(__FreeBSD__) || defined(__OpenBSD__)) && !defined(_LIBCPP_VERSION) ++ // -static-libstdc++ is fragile on libc++ systems ++ qunsetenv("XDG_CURRENT_DESKTOP"); ++ qunsetenv("KDE_FULL_SESSION"); ++#endif ++ + // Enables the core to make the qt created contexts current on std::threads + QCoreApplication::setAttribute(Qt::AA_DontCheckOpenGLContextThreadAffinity); + QApplication app(argc, argv);