From 52a69879eb300cf65b6664924045dcdadf4a09b0 Mon Sep 17 00:00:00 2001 From: Timothy Redaelli Date: Fri, 6 Apr 2018 11:00:06 +0200 Subject: [PATCH] Replace "/usr/bin/env python" with "/usr/bin/python3" Phase 1 of https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3 Resolves: #1564215 --- dpdk.spec | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/dpdk.spec b/dpdk.spec index eeee5f5..b210084 100644 --- a/dpdk.spec +++ b/dpdk.spec @@ -9,7 +9,7 @@ Name: dpdk Version: 18.02 -Release: 5%{?dist} +Release: 6%{?dist} URL: http://dpdk.org Source: http://dpdk.org/browse/dpdk/snapshot/dpdk-%{version}.tar.xz Patch0: dpdk-dpaa-build.patch @@ -216,6 +216,10 @@ for f in %{target}/examples/*/%{target}/app/*; do done %endif +# Replace /usr/bin/env python with /usr/bin/python3 +find %{buildroot}%{sdkdir}/ -name "*.py" -exec \ + sed -i -e 's|#!\s*/usr/bin/env python|#!/usr/bin/python3|' {} + + # Create a driver directory with symlinks to all pmds mkdir -p %{buildroot}/%{pmddir} for f in %{buildroot}/%{_libdir}/*_pmd_*.so.*; do @@ -291,6 +295,9 @@ sed -i -e 's:-%{machine_tmpl}-:-%{machine}-:g' %{buildroot}/%{_sysconfdir}/profi %endif %changelog +* Fri Apr 06 2018 Timothy Redaelli - 18.02 -6 +- Replace "/usr/bin/env python" with "/usr/bin/python3" (bz 1564215) + * Thu Apr 05 2018 Neil Horman - 18.02-5 - Fix compiler flag error (bz 1548404) - Update spec file to switch to python3