Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 893666 - sys-apps/dbus: enable checks (not assertions) by default?
Summary: sys-apps/dbus: enable checks (not assertions) by default?
Status: CONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Freedesktop bugs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-02-09 01:56 UTC by Sam James
Modified: 2023-04-01 16:15 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-02-09 01:56:02 UTC
See bug 893662 regarding upstream recommendations for distros.

Should we pass --enable-checks by default? Or a default-on USE flag? They're lightweight assertions. https://bugs.freedesktop.org/show_bug.cgi?id=92546 describes them as:
"""
* "assertions", analogous to Standard C assert() and GLib g_assert().
  We recommend to distributions that these should be disabled for
  production builds, analogous to Standard C -DNDEBUG. If enabled,
  assertion failures are always fatal.

* "checks", analogous to GLib g_return_if_fail() and g_return_val_if_fail().
  We recommend that these are enabled for production builds.
  If enabled, they are fatal by default; they can be made non-fatal
  by setting the environment variable DBUS_FATAL_WARNINGS to 0,
  or made fatal by setting it to 1.
"""

(That source may be a bit dated though.)