!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:
openeuler-ci-bot 2024-10-10 02:55:42 +00:00 committed by Gitee
commit 2088b9623f
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -11,7 +11,7 @@
Name: dpdk
Version: 23.11
Release: 21
Release: 22
URL: http://dpdk.org
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
%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
* 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
- disable _lto_cflags to fix build failed