From nobody Sat Mar 14 17:23:36 2026 X-Original-To: desktop@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 4fY7Vc4xZYz6V1Hs for ; Sat, 14 Mar 2026 17:23:36 +0000 (UTC) (envelope-from bugzilla-noreply@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 "R12" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 4fY7Vc4Dptz3gTb for ; Sat, 14 Mar 2026 17:23:36 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1773509016; 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: in-reply-to:in-reply-to:references:references; bh=cwtpc5FKvqr1VElYRW9SVDySw1B2CBpdCdCDyuzML8Y=; b=UqUu8enG9aJtK05XHvxqsOYji5yOKBcrX4xkQ8WithiTdj/PiuHuNoTIp9/peuY6Ie09zM af5h2SsLFNKF84ouXseIE9Cdn4vHoVK6dSf9lI1n1towgcfl9uKmkbNbQHUGuqTSGJZGVK K4PTBf0VLmwWBCNbw8WJ5GLy6ckMZm/JTDvaoqDktK89s5wBEJaSzpc/ignnpKtAlkzaeD KIHc88Lz6YdLQhJaKMyFPRYkX4prP3yUfJZji0sCCZS9SxzhQVkmKg3Me6No5IGVAYzKlF nlf0S+D3UKVSqs3173xFhRu7eJJzKu+rFj3F6uxDp/3Fwi1Q6bZbDA2WvoDE0Q== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1773509016; a=rsa-sha256; cv=none; b=vShsl/pJtZ+DLLzy4uuMWXIiqBHniyEe7yr//L+z6qoxYkL1jyzjWmP5C6pJHxolCVOq8d rVe3hkXaxFsh4I7w1i1hBh4Vy7Bx0bsabdbsJ9SoedSswuMqGRIjVYwzljyOyFc1rnMhMO 67SdZFjzNT4uqS22zXPsEX2RX9LYAJLQkYAgNOOB1ghkM0/HxiwbJLjNiC7Nbh466t+3mK RvhggZEjTHD89mVQ7jqkLtsDA+W5LwJqvO4hYyGnDrVU8OE1wGXcnyUdjPD63zfzFrHWvD fJ0NsSpa+zHtc5l0z0+gcWviSXXh9yjnZ5AD/ruu0kNfI8j8QuhmSbapqeiQTA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1773509016; 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: in-reply-to:in-reply-to:references:references; bh=cwtpc5FKvqr1VElYRW9SVDySw1B2CBpdCdCDyuzML8Y=; b=JETeKHxb3wcjjLkd3g9ADmQ9j0fddfXijnQlpN37lbg/x/aRWu4zU8EqOH0eeMgsaIFXSZ qqRor/82StRMQW/gCMpxVb8SLJ820VmZK/yVM3BccO64SIo5CR4hgzQePjSMz3Kfx5cXd5 juH5SpptemLqgboLw2e/8NBtU1wB9TSZCktFNkRQnepWl58T6wWLmoEeyHFCMFOv8E+Xuz CEjYKOaix7wlMIsCJL8CIzg5q4c7+qqFn+uimZEnf3uoy1oYv3tLKJUDbJJcZPPetAPwUH chMHza05eh/QHcIrJyEVoww275HGheRnYP3EjBvwuOyQIhH6JKTcMpYDYu20jQ== Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (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 4fY7Vc3Cdtz1Qrp for ; Sat, 14 Mar 2026 17:23:36 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 62EHNadb044011 for ; Sat, 14 Mar 2026 17:23:36 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 62EHNaQt044010 for desktop@FreeBSD.org; Sat, 14 Mar 2026 17:23:36 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: desktop@FreeBSD.org Subject: [Bug 292636] Mk/Uses/meson.mk: Disable asserts on release builds Date: Sat, 14 Mar 2026 17:23:36 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Individual Port(s) X-Bugzilla-Version: Latest X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: jcfyecrayz@liamekaens.com X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: desktop@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc Message-ID: In-Reply-To: References: Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="UTF-8" X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Using and improving FreeBSD on the desktop List-Archive: https://lists.freebsd.org/archives/freebsd-desktop List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-desktop@FreeBSD.org MIME-Version: 1.0 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D292636 John Hein changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jcfyecrayz@liamekaens.com --- Comment #7 from John Hein --- (In reply to Gleb Popov from comment #5) According to the docs at least (https://mesonbuild.com/Builtin-options.html= ), b_ndebug defaults to false. "Details for buildtype" in that documentation says "debug" should be false = for "release" builds. But that (debug=3Dfalse) doesn't explicitly mean that b_= ndebug gets set to true (at least not anywhere that I could see in the doc). In fact, there is the following statement in that doc: "Note that -Ddebug=3Dfalse does not cause the compiler preprocessor macro N= DEBUG to be defined. The macro can be defined using the base option b_ndebug, described below." Later in that doc in "Base options", the default for b_ndebug is false. And the possible settings are false, true and if-release. Though this is not a direct question to meson upstream, I think this answers Gleb's question in a RTFM context. So assuming that documentation (untested by me for correctness), Daniel's p= atch seems mostly right. Or we could explicitly always set b_ndebug=3Dif-release outside the .if .. = .elif .. .else (rather only explicitly setting b_ndebug in the .else part as in Daniel's patch to meson.mk). Then, b_ndebug will be set according to the intent of the if-release setting - true if a release buildtype or false if = it is one of the WITH_DEBUG* cases (where buildtype is set to debug or debugoptimized). I think if someone is building WITH_DEBUG or WITH_DEBUGINFO, it is appropri= ate and expected (POLA-wise) for assertions to be enabled (i.e., b_ndebug=3Dfal= se).=20 I think using if-release does that for the user automatically. In other words: =3D=3D=3D=3D=3D=3D=3D=3D --- a/Mk/Uses/meson.mk +++ b/Mk/Uses/meson.mk @@ -78,6 +78,7 @@ CONFIGURE_ARGS+=3D --buildtype release \ --optimization plain \ --strip . endif +MESON_ARGS+=3D -Db_ndebug=3Dif-release . for _bool in true false enabled disabled . if defined(MESON_${_bool:tu}) =3D=3D=3D=3D=3D=3D=3D=3D Daniel, do you have a fairly easy (even if contrived) reproduction case for= a particular port that exhibits the problem (not getting built with disabled asserts)? --=20 You are receiving this mail because: You are the assignee for the bug.=