Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 807985 - app-misc/tracker, app-misc/tracker-miners: Pass -DG_DISABLE_CAST_CHECKS on next bump
Summary: app-misc/tracker, app-misc/tracker-miners: Pass -DG_DISABLE_CAST_CHECKS on ne...
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Linux Gnome Desktop Team
Depends on:
Reported: 2021-08-13 12:55 UTC by Mart Raudsepp
Modified: 2021-08-13 12:55 UTC (History)
0 users

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


Note You need to log in before you can comment on or make changes to this bug.
Description Mart Raudsepp gentoo-dev 2021-08-13 12:55:43 UTC
tracker and tracker-miners are applying some things in release build types only, but we use plain type out of necessity (release type appends -O2 style stuff or something).

* -DG_DISABLE_CAST_CHECKS is added to CFLAGS for release builds
* TRACKER_DEBUG debug support is not enabled in release builds, but are force-enabled on plain builds

TRACKER_DEBUG should be enabled for us, so that our users can provide better debug information to upstream or us when something is going on. It's a bit of a mess that upstream is still figuring out. Currently it looks like it's a candidate for a dedicated meson_option instead, which is default enabled and disabling is strongly discouraged.
So we are fine with that being forced on us, because that's what we should have.

However due to this, -DG_DISABLE_CAST_CHECKS isn't passed, which means a bit slower code. It's not worth revbumping for this, so hence this ticket to remember to add this via append-cflags upon next proper full bump instead. pango has an example of this pattern.