Packages

  • Status Closed
  • Percent Complete
    100%
  • Task Type Bug Report
  • Category Stable
  • Assigned To
    Emulatorman
  • Operating System All
  • Severity Critical
  • Priority High
  • Reported Version Any
  • Due in Version Undecided
  • Due Date Undecided
  • Votes
  • Private
Attached to Project: Packages
Opened by fablamar78 - 01/05/2018
Last edited by Emulatorman - 02/05/2018

FS#718 - [alsa-tools] create missing firmware folder since firmware packages are optional dependencies

### Some context ###

I use hdajackretask on my G41M-ES2L motherboard (Libreboot)

Alsamixer doesn’t offer automute feature so every time I plug my headphones, the sound is playing by my speakers.
So to work around this, I use hdajackretask from alsa-tools package.

It allows to install a boot override to solve the issue.

Yesterday, I reinstalled Hyperbola on my system and the boot override because of missing /lib/firmware directory. (Although it was present before, something changed ?)

The error message was (I translate)

/mv: can't move '/tmp/hda-jack-retask-VH3KIZ/hda-jack-retask.fw' to /lib/firmware/hda-jack-retask.fw' No file or folder of this type

So I created a folder “firmware” in /lib/
and copied hda-jack-retask.fw in it.

Then I rebooted, 100% working.

I don’t know if the fix should apply to the PKGBUILD of alsa-tools (to create a /lib/firmware directory) or something else ?

Closed by  Emulatorman
02.05.2018 14:58
Reason for closing:  Fixed

" Yesterday, I reinstalled Hyperbola on my system and the boot override because of missing /lib/firmware directory. (Although it was present before, something changed ?)"

→ " Yesterday, I reinstalled Hyperbola on my system and the boot override "CAN'T BE INSTALLED" because of missing /lib/firmware directory. (Although it was present before, something changed ?) "

Admin
" Yesterday, I reinstalled Hyperbola on my system and the boot override "CAN'T BE INSTALLED" because of missing /lib/firmware directory. (Although it was present before, something changed ?)

Now, our firmware packages are optional dependencies of our kernels through kernel-firmware group, not mandatory since were split out in different packages to support minimalism and users choose which one of them would install of their machines. If you would/need install some of them, run:

# pacman -S kernel-firmware

Otherwise, i've added kernel-firmware group as optdepends in linux-libre-lts and linux-libre-lts-unofficial-grsec-knock packages:

$ pacman -Si linux-libre-lts
Repository      : core
Name            : linux-libre-lts
Version         : 4.9.96_gnu-1
Description     : The Linux-libre-lts kernel and modules
Architecture    : x86_64
URL             : https://linux-libre.fsfla.org/
Licenses        : GPL2
Groups          : base
Provides        : linux-lts=4.9.96  kernel=4.9.96  linux
Depends On      : coreutils  kmod  mkinitcpio>=0.7
Optional Deps   : kernel-firmware: firmware files for Linux-libre
                  crda: to set the correct wireless channels of your country
Conflicts With  : linux-lts  linux
Replaces        : linux-lts  linux
Download Size   : 59.63 MiB
Installed Size  : 82.47 MiB
Packager        : André Silva <emulatorman@hyperbola.info>
Build Date      : Thu 26 Apr 2018 07:29:04 AM -03
Validated By    : MD5 Sum  SHA-256 Sum  Signature
$ pacman -Si linux-libre-lts-unofficial-grsec-knock
Repository      : community
Name            : linux-libre-lts-unofficial-grsec-knock
Version         : 4.9.74_gnu.r20180103130648-2
Description     : The Linux-libre-lts-unofficial-grsec-knock kernel and modules with unofficial grsecurity/PaX patches and support for stealth TCP sockets
Architecture    : x86_64
URL             : https://linux-libre.fsfla.org/
Licenses        : GPL2
Groups          : None
Provides        : linux-lts-unofficial-grsec-knock=4.9.74.r20180103130648  linux-grsec  kernel=4.9.74.r20180103130648
Depends On      : coreutils  kmod  mkinitcpio>=0.7  grsec-common
Optional Deps   : kernel-firmware: firmware files for Linux-libre
                  crda: to set the correct wireless channels of your country
                  gradm: to configure and enable Role Based Access Control (RBAC)
                  paxd-libre: to enable PaX exploit mitigations and apply exceptions automatically
                  openssh-knock: to use SSH with TCP Stealth support
Conflicts With  : linux-lts-unofficial-grsec-knock  linux-grsec
Replaces        : linux-lts-unofficial-grsec-knock  linux-grsec
Download Size   : 87.98 MiB
Installed Size  : 115.35 MiB
Packager        : André Silva <emulatorman@hyperbola.info>
Build Date      : Tue 24 Apr 2018 05:14:45 AM -03
Validated By    : MD5 Sum  SHA-256 Sum  Signature
Admin
I don’t know if the fix should apply to the PKGBUILD of alsa-tools (to create a /lib/firmware directory) or something else ?

Yes, seems i should create a firmware directory inside alsa-tools to solve it, since our firmware packages are optional dependencies of our kernels and decentralized, not mandatory and all-in-one similar than a bloatware package like before.

Thanks. Ok now I understand better.

Updated package cannot be installed (alsa-tools : /lib is already in filesystem)

Admin

I've pushed a new revision that fixes that.

Thanks. It works fine now ! :)

Date User Effort (H:M)
watch my effort tracking timers

Loading...

Available keyboard shortcuts

Tasklist

Task Details

Task Editing