!651 [sync] PR-649: create weak dependency for ko files
From: @openeuler-sync-bot Reviewed-by: @jiangheng12 Signed-off-by: @jiangheng12
This commit is contained in:
commit
2088b9623f
19
dpdk.spec
19
dpdk.spec
@ -11,7 +11,7 @@
|
|||||||
|
|
||||||
Name: dpdk
|
Name: dpdk
|
||||||
Version: 23.11
|
Version: 23.11
|
||||||
Release: 21
|
Release: 22
|
||||||
URL: http://dpdk.org
|
URL: http://dpdk.org
|
||||||
Source: https://fast.dpdk.org/rel/dpdk-%{version}.tar.xz
|
Source: https://fast.dpdk.org/rel/dpdk-%{version}.tar.xz
|
||||||
|
|
||||||
@ -260,7 +260,24 @@ strip -g $RPM_BUILD_ROOT/lib/modules/%{kern_devel_ver}/extra/dpdk/igb_uio.ko
|
|||||||
%doc %{sdkdir}/examples
|
%doc %{sdkdir}/examples
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
|
%post
|
||||||
|
if [ -e /sbin/weak-modules ]; then
|
||||||
|
echo "/lib/modules/%{kern_devel_ver}/extra/dpdk/igb_uio.ko" | /sbin/weak-modules --add-modules --no-initramfs
|
||||||
|
fi
|
||||||
|
/sbin/ldconfig
|
||||||
|
/usr/sbin/depmod
|
||||||
|
|
||||||
|
%postun
|
||||||
|
if [ -e /sbin/weak-modules ]; then
|
||||||
|
echo "/lib/modules/%{kern_devel_ver}/extra/dpdk/igb_uio.ko" | /sbin/weak-modules --remove-modules --no-initramfs > /dev/null 2>&1
|
||||||
|
fi
|
||||||
|
/sbin/ldconfig
|
||||||
|
/usr/sbin/depmod
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Wed Oct 09 2024 lifeifei <lifeifei@kylinos.cn> - 23.11-22
|
||||||
|
create weak dependency for ko files
|
||||||
|
|
||||||
* Wed Oct 09 2024 jiangheng <jiangheng14@huawei.com> - 23.11-21
|
* Wed Oct 09 2024 jiangheng <jiangheng14@huawei.com> - 23.11-21
|
||||||
- disable _lto_cflags to fix build failed
|
- disable _lto_cflags to fix build failed
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user