Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Beginner
867 Views

patch for spec file for out of tree i40 driver - 1.5.16

Hi,

The sed pattern to determine the kernel version is broken. It will end up stripping too much off.

for example /lib/modules/2.6.32-504.16.2.el6.x86_64 will get stripped back to 2.6.32

This is not the intent of the sed pattern and causes install problems as /lib/modules/2.6.32 doesn't exist

Patch

--- i40e.spec.orig2016-08-16 16:19:01.808859847 +0000+++ i40e.spec2016-08-16 16:15:00.031131141 +0000

@@ -69,7 +69,7 @@

if [ "%{pcitable}" != "/dev/null" ]; then

echo "original pcitable saved in /usr/local/share/%{name}";

fi

-for k in $(sed 's/\/lib\/modules\/\([0-9a-zA-Z_\.\-\+]*\).*/\1/' $FL) ;

+for k in $(sed 's/\/lib\/modules\/\([0-9a-zA-Z_\.\+-]*\).*/\1/' $FL) ;

do

d_drivers=/lib/modules/$k d_usr=/usr/local/share/%{name}/$k

@@ -90,7 +90,7 @@

done

# Check if kernel version rpm was built on IS the same as running kernel

-BK_LIST=$(sed 's/\/lib\/modules\/\([0-9a-zA-Z_\.\-\+]*\).*/\1/' $FL)

+BK_LIST=$(sed 's/\/lib\/modules\/\([0-9a-zA-Z_\.\+-]*\).*/\1/' $FL)

MATCH=no

for i in $BK_LIST

do

0 Kudos
2 Replies
Highlighted
Community Manager
8 Views

Hi atp,

 

 

Thank you for posting your query in Wired Ethernet Communities.

 

 

Please try out the latest 1.5.19 driver available in the link below.

 

 

https://sourceforge.net/projects/e1000/files/i40e%20stable/

 

 

regards,

 

Vince
0 Kudos
Highlighted
Community Manager
8 Views

Hi atp,

 

 

We'd like to check if you still need assistance regarding i40.

 

 

 

regards,

 

Vince
0 Kudos