From 457cb5d9622361955019eceb1319c2de6498db40 Mon Sep 17 00:00:00 2001 From: Panu Matilainen Date: Wed, 20 Jan 2016 15:44:04 +0200 Subject: [PATCH] Make option matching stricter in spec setconf Previously commented-out and/or similar entries could mistakenly match the grep (but fail the sed-part). Doesn't affect current config so its just future-proofing. --- dpdk.spec | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/dpdk.spec b/dpdk.spec index d15ae41..06d44f1 100644 --- a/dpdk.spec +++ b/dpdk.spec @@ -106,7 +106,7 @@ as L2 and L3 forwarding. %build # set up a method for modifying the resulting .config file function setconf() { - if grep -q $1 %{target}/.config; then + if grep -q ^$1= %{target}/.config; then sed -i "s:^$1=.*$:$1=$2:g" %{target}/.config else echo $1=$2 >> %{target}/.config @@ -299,6 +299,7 @@ install -m 644 ${comblib} %{buildroot}/%{_libdir}/${comblib} - Update to 2.2.0 - Establish a driver directory for automatic driver loading - Move the unversioned pmd symlinks from libdir -devel +- Make option matching stricter in spec setconf * Thu Oct 22 2015 Aaron Conole - 2.1.0-3 - Include examples binaries