Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 7 Feb 2026 09:04:00 -0800
From:      Yuri Victorovich <yuri@freebsd.org>
To:        Gleb Popov <arrowd@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:  <cdbe3be5-1da4-40bb-9612-5d2e03874793@freebsd.org>
In-Reply-To: <CALH631m_jio=jtOavUZuXkMgBBTUx%2BHsP=P_RWQLms0r=6dH5Q@mail.gmail.com>
References:  <698760ce.47a7f.ec239b3@gitrepo.freebsd.org> <CALH631m_jio=jtOavUZuXkMgBBTUx%2BHsP=P_RWQLms0r=6dH5Q@mail.gmail.com>

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

[-- Attachment #1 --]
Hi Gleb,



On 2/7/26 08:30, Gleb Popov wrote:
> 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

Sure. But the downside is only that the package would be larger for a 
few weeks until Qt6 is fixed.

This IMO doesn't justify spending more time on improving the workaround.

> set_source_files_properties(main.cpp PROPERTIES COMPILE_OPTIONS "-O0")
>
> somewhere in CMakeLists.txt to only compile one file without optimizations.


I am not sure if this is a one file problem. The nature of this problem 
is murky, it affects Qt6 meta-objects of all Qt6-based derived classes.


The right solution is to apply the workaround suggested in the linked 
bug report, but I don't want to apply pressure on people doing this 
since I am sure they are busy.


Other ports with USES=qt:6 might be affected as well.



Thanks,

Yuri


[-- Attachment #2 --]
<!DOCTYPE html>
<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body>
    <div class="moz-cite-prefix">Hi Gleb,</div>
    <div class="moz-cite-prefix"><br>
    </div>
    <div class="moz-cite-prefix"><br>
    </div>
    <div class="moz-cite-prefix"><br>
    </div>
    <div class="moz-cite-prefix">On 2/7/26 08:30, Gleb Popov wrote:<br>
    </div>
    <blockquote type="cite"
cite="mid:CALH631m_jio=jtOavUZuXkMgBBTUx+HsP=P_RWQLms0r=6dH5Q@mail.gmail.com">
      <pre class="moz-quote-pre" wrap="">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</pre>
    </blockquote>
    <p>Sure. But the downside is only that the package would be larger
      for a few weeks until Qt6 is fixed.</p>
    <p>This IMO doesn't justify spending more time on improving the
      workaround.</p>
    <p><span style="white-space: pre-wrap">
</span></p>
    <blockquote type="cite"
cite="mid:CALH631m_jio=jtOavUZuXkMgBBTUx+HsP=P_RWQLms0r=6dH5Q@mail.gmail.com">
      <pre class="moz-quote-pre" wrap="">set_source_files_properties(main.cpp PROPERTIES COMPILE_OPTIONS "-O0")

somewhere in CMakeLists.txt to only compile one file without optimizations.
</pre>
    </blockquote>
    <p><br>
    </p>
    <p>I am not sure if this is a one file problem. The nature of this
      problem is murky, it affects Qt6 meta-objects of all Qt6-based
      derived classes.</p>
    <p><br>
    </p>
    <p>The right solution is to apply the workaround suggested in the
      linked bug report, but I don't want to apply pressure on people
      doing this since I am sure they are busy.</p>
    <p><br>
    </p>
    <p>Other ports with USES=qt:6 might be affected as well.</p>
    <p><br>
    </p>
    <p><br>
    </p>
    <p>Thanks,</p>
    <p>Yuri</p>
    <p><br>
    </p>
  </body>
</html>
home | help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?cdbe3be5-1da4-40bb-9612-5d2e03874793>