Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 410395 - media-sound/alsa-firmware always installs hdsp/hdspm firmware
Summary: media-sound/alsa-firmware always installs hdsp/hdspm firmware
Status: CONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo ALSA team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-03-31 23:08 UTC by Maxim Kammerer
Modified: 2022-12-25 10:07 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 Maxim Kammerer 2012-03-31 23:08:40 UTC
The firmware is (correctly) installed into top-level <image>/lib/firmware, but the ebuild does not remove it:

    use alsa_cards_hdsp || use alsa_cards_hdspm || rm -rf "${D}/usr/share/alsa/firmware/hdsploader"

This results in:

-rw-r--r-- 1 root root 97652 Mar 31 22:46 /lib/firmware/digiface_firmware.bin
-rw-r--r-- 1 root root 97652 Mar 31 22:46 /lib/firmware/digiface_firmware_rev11.bin
-rw-r--r-- 1 root root 97652 Mar 31 22:46 /lib/firmware/multiface_firmware.bin
-rw-r--r-- 1 root root 97652 Mar 31 22:46 /lib/firmware/multiface_firmware_rev11.bin
-rw-r--r-- 1 root root 97652 Mar 31 22:46 /lib/firmware/rpm_firmware.bin
Comment 1 Martin Mokrejš 2021-04-10 20:32:14 UTC
Incidentally I found your í years old issue. Did you want to say that the ebuild removes the hdsp files by mistake?

Maybe try the following:

ALSA_CARDS="hdspm" emerge sys-firmware/alsa-firmware
Comment 2 Niklāvs Koļesņikovs 2021-04-12 12:05:19 UTC
Looking at the paths involved, my understanding is that the issue at hand is that the ebuild executes:

`rm -rf "${ED}"/usr/share/alsa/firmware/hdsploader`

to remove undesired firmware files during src_install. But, since those particular files are actually found at:

"${ED}"/lib/firmware/{digiface_firmware{,_rev11}.bin,multiface_firmware{,_rev11}.bin,rpm_firmware.bin}

it becomes effectively a NOOP and they always get installed.

I observed that "${ED}"/lib/firmware/{ctefx-desktop,ctefx-r3di}.bin also slip through - perhaps a missing IUSE?
Comment 3 Pacho Ramos gentoo-dev 2022-12-25 10:07:50 UTC
(In reply to Maxim Kammerer from comment #0)
> The firmware is (correctly) installed into top-level <image>/lib/firmware,
> but the ebuild does not remove it:
> 
>     use alsa_cards_hdsp || use alsa_cards_hdspm || rm -rf
> "${D}/usr/share/alsa/firmware/hdsploader"
> 
> This results in:
> 
> -rw-r--r-- 1 root root 97652 Mar 31 22:46 /lib/firmware/digiface_firmware.bin
> -rw-r--r-- 1 root root 97652 Mar 31 22:46
> /lib/firmware/digiface_firmware_rev11.bin
> -rw-r--r-- 1 root root 97652 Mar 31 22:46
> /lib/firmware/multiface_firmware.bin
> -rw-r--r-- 1 root root 97652 Mar 31 22:46
> /lib/firmware/multiface_firmware_rev11.bin
> -rw-r--r-- 1 root root 97652 Mar 31 22:46 /lib/firmware/rpm_firmware.bin

But, are those firmwares related with hdsp ans hdspm cards or a different USE should be used/added?

(In reply to Niklāvs Koļesņikovs from comment #2)
> I observed that "${ED}"/lib/firmware/{ctefx-desktop,ctefx-r3di}.bin also
> slip through - perhaps a missing IUSE?

The same for that... which ALSA_CARDS value fits for those firmwares?

Thanks