From 24952bd83d8a03bcf6d656ed14b65913123eb5aa Mon Sep 17 00:00:00 2001 From: Aaron Conole Date: Tue, 29 Sep 2015 15:50:52 -0400 Subject: [PATCH] dpdk.spec: Do not honor environmental IDs for RTE_SDK, etc. As part of the dpdk solution, we include an extensible profile option which automatically configures the dpdk 'RTE' environment variables. However, these will create build issues if we attempt to build packages on a machine which has these packages installed. To combat this, we undefine these variables in the build environment. Signed-off-by: Aaron Conole Acked-by: Neil Horman Acked-by: Panu Matilainen --- dpdk.spec | 3 +++ 1 file changed, 3 insertions(+) diff --git a/dpdk.spec b/dpdk.spec index 3e61761..fc23e14 100644 --- a/dpdk.spec +++ b/dpdk.spec @@ -91,6 +91,9 @@ sed -i 's:^CONFIG_RTE_BUILD_SHARED_LIB=n$:CONFIG_RTE_BUILD_SHARED_LIB=y:g' confi %build +# In case dpdk-devel is installed, we should ignore its hints about the SDK directories +unset RTE_SDK RTE_INCLUDE RTE_TARGET + # For the release, '-Wno-error=array-bounds' is done to prevent a spurious error # generated by gcc 5.X against the 2.1 branch export EXTRA_CFLAGS="%{optflags} -Wformat -fPIC -Wno-error=array-bounds"