import dpdk-22.11-1.el9

This commit is contained in:
CentOS Sources 2023-03-28 09:59:37 +00:00 committed by root
parent 9c9458f97c
commit 10ee2bcb15
3 changed files with 38 additions and 17 deletions

View File

@ -1,2 +1,2 @@
a8f700e3a4e2f4657a9d05bfdccce5789a5c5f35 SOURCES/dpdk-21.11.1.tar.xz 920fad3e24b62e92d9f8c5192ceed74fbb2e1c5a SOURCES/dpdk-22.11.tar.xz
3cc45b133677fbff08e89e65a2120be52ebb27a5 SOURCES/pyelftools-0.27.tar.gz 3cc45b133677fbff08e89e65a2120be52ebb27a5 SOURCES/pyelftools-0.27.tar.gz

2
.gitignore vendored
View File

@ -1,2 +1,2 @@
SOURCES/dpdk-21.11.1.tar.xz SOURCES/dpdk-22.11.tar.xz
SOURCES/pyelftools-0.27.tar.gz SOURCES/pyelftools-0.27.tar.gz

View File

@ -8,7 +8,7 @@
#% define date 20191128 #% define date 20191128
#% define shortcommit0 %(c=%{commit0}; echo ${c:0:7}) #% define shortcommit0 %(c=%{commit0}; echo ${c:0:7})
%define ver 21.11.1 %define ver 22.11
%define rel 1 %define rel 1
%define srcname dpdk%(awk -F. '{ if (NF > 2) print "-stable" }' <<<%{version}) %define srcname dpdk%(awk -F. '{ if (NF > 2) print "-stable" }' <<<%{version})
@ -31,9 +31,6 @@ Source: http://fast.dpdk.org/rel/dpdk-%{ver}.tar.xz
# Only needed for creating snapshot tarballs, not used in build itself # Only needed for creating snapshot tarballs, not used in build itself
Source100: dpdk-snapshot.sh Source100: dpdk-snapshot.sh
# Patches only in dpdk package
Summary: Set of libraries and drivers for fast packet processing Summary: Set of libraries and drivers for fast packet processing
# #
@ -126,6 +123,14 @@ as L2 and L3 forwarding.
export PYTHONPATH=$(pwd)/pyelftools-%{pyelftoolsver} export PYTHONPATH=$(pwd)/pyelftools-%{pyelftoolsver}
%endif %endif
ENABLED_APPS=(
test-pmd
)
for app in "${ENABLED_APPS[@]}"; do
enable_apps="${enable_apps:+$enable_apps,}"$app
done
ENABLED_DRIVERS=( ENABLED_DRIVERS=(
bus/pci bus/pci
bus/vdev bus/vdev
@ -164,13 +169,15 @@ ENABLED_DRIVERS+=(
) )
%endif %endif
for driver in ${ENABLED_DRIVERS[@]}; do for driver in "${ENABLED_DRIVERS[@]}"; do
enable_drivers="${enable_drivers:+$enable_drivers,}"$driver enable_drivers="${enable_drivers:+$enable_drivers,}"$driver
done done
# As of 21.11-rc3, following libraries can be disabled: # As of 22.11, following libraries can be disabled:
# optional_libs = [ # optional_libs = [
# 'bitratestats', # 'bitratestats',
# 'cfgfile',
# 'flow_classify',
# 'gpudev', # 'gpudev',
# 'gro', # 'gro',
# 'gso', # 'gso',
@ -178,17 +185,27 @@ done
# 'jobstats', # 'jobstats',
# 'latencystats', # 'latencystats',
# 'metrics', # 'metrics',
# 'node',
# 'pdump', # 'pdump',
# 'pipeline',
# 'port',
# 'power', # 'power',
# 'table',
# 'vhost', # 'vhost',
# ] # ]
# If doing any updates, this must be aligned with: # If doing any updates, this must be aligned with:
# https://access.redhat.com/articles/3538141 # https://access.redhat.com/articles/3538141
DISABLED_LIBS=( DISABLED_LIBS=(
cfgfile
flow_classify
gpudev gpudev
kni kni
jobstats jobstats
node
pipeline
port
power power
table
) )
for lib in "${DISABLED_LIBS[@]}"; do for lib in "${DISABLED_LIBS[@]}"; do
@ -199,6 +216,7 @@ done
--default-library=shared \ --default-library=shared \
-Ddisable_libs="$disable_libs" \ -Ddisable_libs="$disable_libs" \
-Ddrivers_install_subdir=dpdk-pmds \ -Ddrivers_install_subdir=dpdk-pmds \
-Denable_apps="$enable_apps" \
-Denable_docs=true \ -Denable_docs=true \
-Denable_drivers="$enable_drivers" \ -Denable_drivers="$enable_drivers" \
-Dplatform=generic \ -Dplatform=generic \
@ -208,14 +226,14 @@ done
# Check drivers and libraries # Check drivers and libraries
for driver in "${ENABLED_DRIVERS[@]}"; do for driver in "${ENABLED_DRIVERS[@]}"; do
config_token=RTE_$(echo $driver | tr [a-z/] [A-Z_]) config_token="RTE_$(echo "$driver" | tr [a-z/] [A-Z_])"
! grep -q $config_token */rte_build_config.h || continue ! grep -Fqw "$config_token" */rte_build_config.h || continue
echo "!!! Could not find $driver in rte_build_config.h, please check dependencies. !!!" echo "!!! Could not find $driver in rte_build_config.h, please check dependencies. !!!"
false false
done done
for lib in "${DISABLED_LIBS[@]}"; do for lib in "${DISABLED_LIBS[@]}"; do
config_token=RTE_LIB_$(echo $lib | tr [a-z/] [A-Z_]) config_token="RTE_LIB_$(echo "$lib" | tr [a-z/] [A-Z_])"
grep -q $config_token */rte_build_config.h || continue grep -Fqw "$config_token" */rte_build_config.h || continue
echo "!!! Found $lib in rte_build_config.h. !!!" echo "!!! Found $lib in rte_build_config.h. !!!"
false false
done done
@ -224,12 +242,8 @@ done
%install %install
%meson_install %meson_install
rm -f %{buildroot}%{_bindir}/dpdk-dumpcap
rm -f %{buildroot}%{_bindir}/dpdk-pdump
rm -f %{buildroot}%{_bindir}/dpdk-proc-info
rm -f %{buildroot}%{_bindir}/dpdk-test{,-acl,-bbdev,-cmdline,-compress-perf,-crypto-perf,-eventdev,-pipeline,-sad,-fib,-flow-perf,-regex}
rm -f %{buildroot}%{_libdir}/*.a rm -f %{buildroot}%{_libdir}/*.a
# Taked from debian/rules # Taken from debian/rules
rm -f %{docdir}/html/.buildinfo rm -f %{docdir}/html/.buildinfo
rm -f %{docdir}/html/objects.inv rm -f %{docdir}/html/objects.inv
rm -rf %{docdir}/html/.doctrees rm -rf %{docdir}/html/.doctrees
@ -274,6 +288,13 @@ rm -rf %{docdir}/html/.doctrees
%endif %endif
%changelog %changelog
* Mon Jan 23 2023 Timothy Redaelli <tredaelli@redhat.com> - 22.11-1
- Rebase to 22.11 (#2129066)
* Mon Sep 12 2022 Timothy Redaelli <tredaelli@redhat.com> - 21.11.2-1
- Rebase to 21.11.2 (#2126159)
- Includes fixes for CVE-2022-2132 (#2107173) and CVE-2022-28199 (#2123616)
* Wed Jul 13 2022 Timothy Redaelli <tredaelli@redhat.com> - 21.11.1-1 * Wed Jul 13 2022 Timothy Redaelli <tredaelli@redhat.com> - 21.11.1-1
- Rebase to 21.11.1 (#2106856) - Rebase to 21.11.1 (#2106856)
- Includes fix for CVE-2021-3839 (#2026642) - Includes fix for CVE-2021-3839 (#2026642)