Bug 1219312 - alsa-tools/hwmixvolume requires python2 (/usr/bin/python)
Summary: alsa-tools/hwmixvolume requires python2 (/usr/bin/python)
Status: RESOLVED FIXED
Alias: None
Product: openSUSE Tumbleweed
Classification: openSUSE
Component: Sound (show other bugs)
Version: Current
Hardware: Other Other
: P5 - None : Normal (vote)
Target Milestone: ---
Assignee: Takashi Iwai
QA Contact: E-mail List
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 1219306
  Show dependency treegraph
 
Reported: 2024-01-29 16:17 UTC by Dominique Leuenberger
Modified: 2024-01-30 12:08 UTC (History)
0 users

See Also:
Found By: ---
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Dominique Leuenberger 2024-01-29 16:17:16 UTC
the subpackage hwmoxvolume has a runtime dependency on /usr/bin/python (aka python2)

But it also reuiqres pyalsa (provided by python{39,310,311}-alsa

To make matters worse, on my TW install, installing hwmixvolume would also dragin pythohn310 (not opting of python311)

> sudo zypper in hwmixvolume
Retrieving repository 'GNOME:Next' metadata .....................................................................................[done]
Building repository 'GNOME:Next' cache ..........................................................................................[done]
Loading repository data...
Reading installed packages...
Resolving package dependencies...

The following 4 recommended packages were automatically selected:
  python310 python310-curses python310-dbm python310-pip

The following 15 NEW packages are going to be installed:
  hwmixvolume libpython2_7-1_0 libpython3_10-1_0 python310 python310-alsa python310-base python310-curses python310-dbm
  python310-gobject python310-gobject-cairo python310-gobject-Gdk python310-pip python310-pycairo python310-setuptools python-base

15 new packages to install.
Overall download size: 21.6 MiB. Already cached: 0 B. After the operation, additional 80.6 MiB will be used


So it seems like this package needs quite some cleanup
Comment 1 Dominique Leuenberger 2024-01-29 16:20:28 UTC
1142590  State:new        By:dimstar      When:2024-01-29T16:20:07
        Created by: dimstar
        submit:          home:dimstar:Factory/alsa-tools@2 ->               multimedia:libs
        Descr: - hwmixvolume: replace the unversioned python shebang to point to
               python3 (alsa-project/alsa-tools@fb04384 claims it is compatible
               to python3). - Change hwmixvolume's dependency on pyalso to
               python3-alsa: ensure   we get the main python interpreters' alsa
               module (matching the   /usr/bin/python3 shebang) (boo#1219312).
Comment 2 Dominique Leuenberger 2024-01-29 16:21:08 UTC
(In reply to Dominique Leuenberger from comment #1)
> 1142590  State:new        By:dimstar      When:2024-01-29T16:20:07
>         Created by: dimstar
>         submit:          home:dimstar:Factory/alsa-tools@2 ->              
> multimedia:libs
>         Descr: - hwmixvolume: replace the unversioned python shebang to
> point to
>                python3 (alsa-project/alsa-tools@fb04384 claims it is
> compatible
>                to python3). - Change hwmixvolume's dependency on pyalso to
>                python3-alsa: ensure   we get the main python interpreters'
> alsa
>                module (matching the   /usr/bin/python3 shebang)
> (boo#1219312).

with this diff, zypper install now reports:

> sudo zypper in /var/tmp/build-root/openSUSE_Factory-x86_64/.mount/home/abuild/rpmbuild/RPMS/x86_64/hwmixvolume-0.9-0.x86_64.rpm
Loading repository data...
Reading installed packages...
Resolving package dependencies...

The following 2 NEW packages are going to be installed:
  hwmixvolume python311-alsa

2 new packages to install.
Overall download size: 104.0 KiB. Already cached: 0 B. After the operation, additional 302.7 KiB will be used.
Comment 3 Takashi Iwai 2024-01-30 12:08:21 UTC
So it looks good with your PR, right?  Let's close the bug.  Thanks!