Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 7 Feb 2026 19:30:28 +0300
From:      Gleb Popov <arrowd@freebsd.org>
To:        Yuri Victorovich <yuri@freebsd.org>
Cc:        ports-committers@freebsd.org, dev-commits-ports-all@freebsd.org,  dev-commits-ports-main@freebsd.org
Subject:   Re: git: 0799c78f773b - main - multimedia/obs-studio: Add workaround for the crash due to the Qt6 problem
Message-ID:  <CALH631m_jio=jtOavUZuXkMgBBTUx%2BHsP=P_RWQLms0r=6dH5Q@mail.gmail.com>
In-Reply-To: <698760ce.47a7f.ec239b3@gitrepo.freebsd.org>

index | next in thread | previous in thread | raw e-mail

On Sat, Feb 7, 2026 at 6:57 PM Yuri Victorovich <yuri@freebsd.org> wrote:
>
> The branch main has been updated by yuri:
>
> URL: https://cgit.FreeBSD.org/ports/commit/?id=0799c78f773b6a6bec7c3f8f45e7f16ca3f6ab4d
>
> commit 0799c78f773b6a6bec7c3f8f45e7f16ca3f6ab4d
> Author:     Yuri Victorovich <yuri@FreeBSD.org>
> AuthorDate: 2026-02-07 15:53:56 +0000
> Commit:     Yuri Victorovich <yuri@FreeBSD.org>
> CommitDate: 2026-02-07 15:57:00 +0000
>
>     multimedia/obs-studio: Add workaround for the crash due to the Qt6 problem
> ---
>  multimedia/obs-studio/Makefile | 3 +++
>  1 file changed, 3 insertions(+)
>
> diff --git a/multimedia/obs-studio/Makefile b/multimedia/obs-studio/Makefile
> index 9383ea105879..0230659db1c8 100644
> --- a/multimedia/obs-studio/Makefile
> +++ b/multimedia/obs-studio/Makefile
> @@ -1,5 +1,6 @@
>  PORTNAME=      obs-studio
>  DISTVERSION=   32.0.4
> +PORTREVISION=  1
>  CATEGORIES=    multimedia
>  MASTER_SITES=  https://github.com/obsproject/obs-studio/releases/download/${DISTVERSION}/
>  DISTFILES=     OBS-Studio-${DISTVERSION}-Sources${EXTRACT_SUFX}
> @@ -75,6 +76,8 @@ LDFLAGS+=     -fPIC # pending https://github.com/obsproject/obs-studio/issues/3436
>
>  WRKSRC=                ${WRKDIR}/${PORTNAME}-${PORTVERSION}-sources
>
> +WITH_DEBUG=            yes # workaround for https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=292376#c6
> +

That's certainly an overkill. I'm sure you can achieve the same by
simply replacing -O2 with -O0 in compiler's flags.
Even less invasive workaround would be to add

set_source_files_properties(main.cpp PROPERTIES COMPILE_OPTIONS "-O0")

somewhere in CMakeLists.txt to only compile one file without optimizations.


home | help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CALH631m_jio=jtOavUZuXkMgBBTUx%2BHsP=P_RWQLms0r=6dH5Q>