Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 410395

Summary: media-sound/alsa-firmware always installs hdsp/hdspm firmware
Product: Gentoo Linux Reporter: Maxim Kammerer <mk>
Component: New packagesAssignee: Gentoo ALSA team <alsa-bugs>
Status: CONFIRMED ---    
Severity: normal CC: pacho
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

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