Quantcast
Channel: Intel Communities : Discussion List - Wired Ethernet
Viewing all articles
Browse latest Browse all 4405

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

$
0
0

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


Viewing all articles
Browse latest Browse all 4405

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>