commit:     63fe3437848939eac302bf1f8a5edf726d2bf347
Author:     Rahul Sandhu <nvraxn <AT> posteo <DOT> uk>
AuthorDate: Mon Feb  2 04:51:06 2026 +0000
Commit:     Eli Schwartz <eschwartz <AT> gentoo <DOT> org>
CommitDate: Mon Feb  2 05:46:05 2026 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=63fe3437

media-sound/alsa-tools: gatekeep hwmixvolume behind USE="gtk"

hwmixvolume requires gtk, as per both the README[1] and attempting to
run it on a system without the required dependencies:

  $ hwmixvolume
  Traceback (most recent call last):
    File "/usr/bin/hwmixvolume", line 21, in <module>
      gi.require_version('Gtk', '3.0')
      ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^
    File "/usr/lib/python3.13/site-packages/gi/__init__.py", line 125, in 
require_version
      raise ValueError('Namespace %s not available for version %s' %
                       (namespace, version))
  ValueError: Namespace Gtk not available for version 3.0

Hence, as it is ineffective without gtk, gatekeep its installation
behind the already existing gtk USE flag.

[1] 
https://github.com/alsa-project/alsa-tools/blob/d444519df40d52de3903513a14085a0619f688db/hwmixvolume/README

Signed-off-by: Rahul Sandhu <nvraxn <AT> posteo.uk>
Merges: https://codeberg.org/gentoo/gentoo/pulls/27
Signed-off-by: Eli Schwartz <eschwartz <AT> gentoo.org>

 .../{alsa-tools-1.2.11-r1.ebuild => alsa-tools-1.2.11-r2.ebuild}      | 4 ++--
 .../{alsa-tools-1.2.14.ebuild => alsa-tools-1.2.14-r1.ebuild}         | 4 ++--
 .../{alsa-tools-1.2.15-r1.ebuild => alsa-tools-1.2.15-r2.ebuild}      | 2 +-
 3 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/media-sound/alsa-tools/alsa-tools-1.2.11-r1.ebuild 
b/media-sound/alsa-tools/alsa-tools-1.2.11-r2.ebuild
similarity index 98%
rename from media-sound/alsa-tools/alsa-tools-1.2.11-r1.ebuild
rename to media-sound/alsa-tools/alsa-tools-1.2.11-r2.ebuild
index 960ed7daaedf..d38621be5bbb 100644
--- a/media-sound/alsa-tools/alsa-tools-1.2.11-r1.ebuild
+++ b/media-sound/alsa-tools/alsa-tools-1.2.11-r2.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2025 Gentoo Authors
+# Copyright 1999-2026 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=8
@@ -46,7 +46,6 @@ pkg_setup() {
        ALSA_TOOLS=(
                seq/sbiload
                us428control
-               hwmixvolume
                hda-verb
                $(usev alsa_cards_mixart mixartloader)
                $(usev alsa_cards_vx222 vxloader)
@@ -59,6 +58,7 @@ pkg_setup() {
                ALSA_TOOLS+=(
                        echomixer
                        hdajackretask
+                       hwmixvolume
                        $(usev alsa_cards_ice1712 envy24control)
                )
                # Perhaps a typo the following && logic?

diff --git a/media-sound/alsa-tools/alsa-tools-1.2.14.ebuild 
b/media-sound/alsa-tools/alsa-tools-1.2.14-r1.ebuild
similarity index 98%
rename from media-sound/alsa-tools/alsa-tools-1.2.14.ebuild
rename to media-sound/alsa-tools/alsa-tools-1.2.14-r1.ebuild
index ecf79dbd9473..079b04d0dfa4 100644
--- a/media-sound/alsa-tools/alsa-tools-1.2.14.ebuild
+++ b/media-sound/alsa-tools/alsa-tools-1.2.14-r1.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2025 Gentoo Authors
+# Copyright 1999-2026 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=8
@@ -46,7 +46,6 @@ pkg_setup() {
        ALSA_TOOLS=(
                seq/sbiload
                us428control
-               hwmixvolume
                hda-verb
                $(usev alsa_cards_mixart mixartloader)
                $(usev alsa_cards_vx222 vxloader)
@@ -59,6 +58,7 @@ pkg_setup() {
                ALSA_TOOLS+=(
                        echomixer
                        hdajackretask
+                       hwmixvolume
                        $(usev alsa_cards_ice1712 envy24control)
                )
                # Perhaps a typo the following && logic?

diff --git a/media-sound/alsa-tools/alsa-tools-1.2.15-r1.ebuild 
b/media-sound/alsa-tools/alsa-tools-1.2.15-r2.ebuild
similarity index 99%
rename from media-sound/alsa-tools/alsa-tools-1.2.15-r1.ebuild
rename to media-sound/alsa-tools/alsa-tools-1.2.15-r2.ebuild
index 4504feb4e9a8..0d3dc30130c3 100644
--- a/media-sound/alsa-tools/alsa-tools-1.2.15-r1.ebuild
+++ b/media-sound/alsa-tools/alsa-tools-1.2.15-r2.ebuild
@@ -56,7 +56,6 @@ pkg_setup() {
        ALSA_TOOLS=(
                seq/sbiload
                us428control
-               hwmixvolume
                hda-verb
                $(usev alsa_cards_mixart mixartloader)
                $(usev alsa_cards_vx222 vxloader)
@@ -70,6 +69,7 @@ pkg_setup() {
                        echomixer
                        hdajackretask
                        hdajacksensetest
+                       hwmixvolume
                        $(usev alsa_cards_ice1712 envy24control)
                )
                # Perhaps a typo the following && logic?

Reply via email to