lwfinger/rtw89

Suggested change to installation instructions

itayjce opened this issue · 1 comments

Hi. I am new to github and hope that this is an acceptable way to suggest a change.

I believe that the current instructions do not cover well the case in which the kernel-headers package change due to kernel change. At least for debian installation.

Therefore I recommend to modify the Requirments sub section of the installation instructions (OPTION 1):

Replace the build-specific linux-headers package with arch-specific meta package. Namely, instead of
apt-get install linux-headers-$(uname -r) use apt-get install linux-headers-<arch> where <arch> is the architecture tag , e.g, amd64, i386, etc., (the last bit of $(uname -r)).
Rationale: the meta package linux-headers-<arch> depends on the latest build-specific package and will automatically pull it whenever the kernel headers change for the latest build.

If for any reason the above suggestion is unacceptable, than at least modify the instructions in "When your kernel changes..." (OPTION 2):

Add before cd ~/rtw89 the line sudo apt-get install linux-headers-$(uname -r)

Note 1: unfortunately I implemented OPTION 1 after the last update to the kernel-headers so it is not fully tested yet.
Note 2: ubunto and other debian-derived distributions may use different names for the kernel headers meta-package.

Hope you will find this suggestion helpful,
Itay

You mean to tell me that Debian is so brain--dead that if the kernel headers are installed and the kernel is updated that the headers are not also updated? My openSUSE installation certainly tracks the interdependency of all packages, and "does the right thing"!!!!!!