Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 915472 - media-libs/libcanberra should set GTK*_MODULES env vars per USE flags
Summary: media-libs/libcanberra should set GTK*_MODULES env vars per USE flags
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo Linux Gnome Desktop Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-10-09 11:44 UTC by Robin Bankhead
Modified: 2023-10-11 19:58 UTC (History)
2 users (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 Robin Bankhead 2023-10-09 11:44:38 UTC
media-libs/libcanberra ebuild installs this file

/etc/X11/xinit/xinitrc.d/40-libcanberra-gtk-module

to set GTK_MODULES="canberra-gtk-module" env var.

However this takes no note of libcanberra's own USE flags gtk2/gtk3.

I don't know if this is authoritative and current info on the subject, but it appears from

https://developer-old.gnome.org/gtk2/stable/gtk-running.html

that there are GTK-version-specific envvars available, so it would be better for this file to be generated on merge to define the appropriate envvar according to the USE flags:

USE="gtk2 gtk3" : set GTK_MODULES
USE="gtk2 -gtk3" : set GTK2_MODULES
USE="-gtk2 gtk3" : set GTK3_MODULES

Without this specificity, you get e.g. GTK2 apps complaining of not finding the module if USE="-gtk2".