alx_dkms_installer icon indicating copy to clipboard operation
alx_dkms_installer copied to clipboard

patching 5.4 source fails

Open saamc opened this issue 4 years ago • 2 comments

https://github.com/AMV007/alx_dkms_installer/blob/b8ace1d309d876c48c620ce41df2d63a2f505408/setup#L73 is incompatible with "/" prefix in https://github.com/AMV007/alx_dkms_installer/blob/b8ace1d309d876c48c620ce41df2d63a2f505408/000-enable-alx-wol-5.4.x.patch#L1-L2

setup fails with output:

./setup 
Checking dependencies...
Done
Preparing dkms module source...
Using 5.4+ patch...
The text leading up to this was:
--------------------------
|--- a/ethtool.c
|+++ b/ethtool.c
--------------------------
No file to patch.  Skipping patch.
1 out of 1 hunk ignored
...
!!! there is some error

The patch below fixed it

patch.txt

saamc avatar Feb 15 '21 13:02 saamc

Seconded, offset needs to be 1 for it to work here too. I am on kernel 5.4.109 .

durnezj avatar Apr 05 '21 18:04 durnezj

It worked for me as well, with kernel 5.4.0-72-generic.

Thanks a lot.

alvaroreig avatar May 02 '21 16:05 alvaroreig