On Sunday 06 June 2021, Larry Finger wrote:
Installation of kernel 5.12.9 resulted in the following links in /lib/modules/5.12.9-1-default/:
build -> ../../../usr/src/linux-5.12.9-1-obj/x86_64/default source -> ../../../usr/src/linux-5.12.9-1
In each case, the target should be the absolute path /usr/src/.... not the relative path given.
This bug prevents the building of external modules such as the nvidia drivers.
The problem was also present for kernel 5.12.4, and probably in older kernels; however, I no longer have any of those on my system.
This is reported as boo#1186899.
Larry
Rather than fixing the links after things break, you could follow one of the suggestions in the bugzilla discussion and put in place a work-around: # Check the /usr/usr does not already exist and then do cd /usr ln -s . /usr/usr This will allow dup's to work properly while kernels with the bad links are still being used/distributed. Once clear of this bug the sym-link can be removed. I just now used this approach to dup painlessly to TW 20210603, 5.12.9-1-default, with nvidia 460.80. Michael