Compare commits
No commits in common. "c9-beta" and "a9-test" have entirely different histories.
@ -1 +1 @@
|
|||||||
04bd763fa8c4f56257018c21f9825043de70669d SOURCES/ddiskit-d857c7726fd55e613bbd7af6c842ddfc80a9fdc8.tar.bz2
|
dd79ea8e15423eac54793ed027343a05fff932ff SOURCES/ddiskit-de1f6847223085dcdd177e02a7298c835fae12a3.tar.gz
|
||||||
|
2
.gitignore
vendored
2
.gitignore
vendored
@ -1 +1 @@
|
|||||||
SOURCES/ddiskit-d857c7726fd55e613bbd7af6c842ddfc80a9fdc8.tar.bz2
|
SOURCES/ddiskit-de1f6847223085dcdd177e02a7298c835fae12a3.tar.gz
|
||||||
|
42
SOURCES/0001-kabi-stablelists.patch
Normal file
42
SOURCES/0001-kabi-stablelists.patch
Normal file
@ -0,0 +1,42 @@
|
|||||||
|
Index: ddiskit-de1f6847223085dcdd177e02a7298c835fae12a3/templates/spec
|
||||||
|
===================================================================
|
||||||
|
--- ddiskit-de1f6847223085dcdd177e02a7298c835fae12a3.orig/templates/spec 2019-07-11 06:00:36.000000000 +0200
|
||||||
|
+++ ddiskit-de1f6847223085dcdd177e02a7298c835fae12a3/templates/spec 2022-02-15 01:18:40.875578229 +0100
|
||||||
|
@@ -21,12 +21,19 @@
|
||||||
|
%endif
|
||||||
|
|
||||||
|
%if "%{kmod_dist_build_deps}" == ""
|
||||||
|
+%if (0%{?rhel} > 8) || (0%{?centos} > 8)
|
||||||
|
+%define abi_list stablelist
|
||||||
|
+%define kmod_dist_build_deps redhat-rpm-config kernel-abi-stablelists elfutils-libelf-devel kernel-rpm-macros kmod
|
||||||
|
+%else
|
||||||
|
%if (0%{?rhel} > 7) || (0%{?centos} > 7)
|
||||||
|
+%define abi_list whitelist
|
||||||
|
%define kmod_dist_build_deps redhat-rpm-config kernel-abi-whitelists elfutils-libelf-devel kernel-rpm-macros kmod
|
||||||
|
%else
|
||||||
|
+%define abi_list whitelist
|
||||||
|
%define kmod_dist_build_deps redhat-rpm-config kernel-abi-whitelists
|
||||||
|
%endif
|
||||||
|
%endif
|
||||||
|
+%endif
|
||||||
|
|
||||||
|
Source0: %{kmod_name}-%{kmod_vendor}-%{kmod_driver_version}.tar.bz2
|
||||||
|
%{SOURCE_PATCHES}
|
||||||
|
@@ -210,7 +217,7 @@
|
||||||
|
# mark modules executable so that strip-to-file can strip them
|
||||||
|
find obj/%{kmod_kbuild_dir} -name "*.ko" -type f -exec chmod u+x '{}' +
|
||||||
|
|
||||||
|
-whitelist="/lib/modules/kabi-current/kabi_whitelist_%{_target_cpu}"
|
||||||
|
+kabilist="/lib/modules/kabi-current/kabi_%{abi_list}_%{_target_cpu}"
|
||||||
|
for modules in $( find obj/%{kmod_kbuild_dir} -name "*.ko" -type f -printf "%{findpat}\n" | sed 's|\.ko$||' | sort -u ) ; do
|
||||||
|
# update depmod.conf
|
||||||
|
module_weak_path=$(echo "$modules" | sed 's/[\/]*[^\/]*$//')
|
||||||
|
@@ -227,7 +234,7 @@
|
||||||
|
|
||||||
|
# update greylist
|
||||||
|
nm -u obj/%{kmod_kbuild_dir}/$modules.ko | sed 's/.*U //' | sed 's/^\.//' | sort -u | while read -r symbol; do
|
||||||
|
- grep -q "^\s*$symbol\$" $whitelist || echo "$symbol" >> source/greylist
|
||||||
|
+ grep -q "^\s*$symbol\$" $kabilist || echo "$symbol" >> source/greylist
|
||||||
|
done
|
||||||
|
done
|
||||||
|
sort -u source/greylist | uniq > source/greylist.txt
|
@ -1,14 +0,0 @@
|
|||||||
Index: ddiskit-de1f6847223085dcdd177e02a7298c835fae12a3/ddiskit.config
|
|
||||||
===================================================================
|
|
||||||
--- ddiskit-de1f6847223085dcdd177e02a7298c835fae12a3.orig/ddiskit.config 2022-07-12 02:04:24.700230196 +0200
|
|
||||||
+++ ddiskit-de1f6847223085dcdd177e02a7298c835fae12a3/ddiskit.config 2022-07-12 02:07:27.444095264 +0200
|
|
||||||
@@ -4,6 +4,9 @@
|
|
||||||
major = 7
|
|
||||||
minor = 0
|
|
||||||
|
|
||||||
+kernel_dist_re = (?P<rpm_dist>\.el([6-9]|[1-9][0-9])(_(0|[1-9][0-9]*))?)
|
|
||||||
+kernel_flex_version_re = {kernel_nvr_re}(?P<rpm_release_aux>(\.[0-9]{1,3})*){kernel_dist_re}
|
|
||||||
+
|
|
||||||
## Path to the spec file
|
|
||||||
spec_path = rpm/SPECS/{spec_file.rpm_name}.spec
|
|
||||||
|
|
@ -1,28 +1,24 @@
|
|||||||
# Use the forge macros to simplify packaging.
|
# Use the forge macros to simplify packaging.
|
||||||
# See https://fedoraproject.org/wiki/Forge-hosted_projects_packaging_automation
|
# See https://fedoraproject.org/wiki/Forge-hosted_projects_packaging_automation
|
||||||
%global forgeurl https://gitlab.com/redhat/centos-stream/src/dup/ddiskit
|
%global forgeurl https://github.com/orosp/ddiskit
|
||||||
# When we no longer need to build against a git commit,
|
# When we no longer need to build against a git commit,
|
||||||
# Simply remove the commit variable and update the Version
|
# Simply remove the commit variable and update the Version
|
||||||
# Then forge will pick up the release
|
# Then forge will pick up the release
|
||||||
%global commit d857c7726fd55e613bbd7af6c842ddfc80a9fdc8
|
%global commit de1f6847223085dcdd177e02a7298c835fae12a3
|
||||||
# Old versions of forge.lua incorrectly generate source archive name
|
|
||||||
# for the nested project URLs.
|
|
||||||
%global forgesource ddiskit-%{commit}.tar.bz2
|
|
||||||
%global topdir ddiskit-%{commit}
|
|
||||||
|
|
||||||
Name: ddiskit
|
Name: ddiskit
|
||||||
Version: 3.6
|
Version: 3.6
|
||||||
|
|
||||||
%forgemeta
|
%forgemeta -i
|
||||||
|
|
||||||
Release: 17%{?dist}
|
Release: 15%{?dist}
|
||||||
Summary: Tool for Red Hat Enterprise Linux Driver Update Disk creation
|
Summary: Tool for Red Hat Enterprise Linux Driver Update Disk creation
|
||||||
|
|
||||||
License: GPLv3
|
License: GPLv3
|
||||||
URL: %{forgeurl}
|
URL: %{forgeurl}
|
||||||
Source0: %{forgesource}
|
Source0: %{forgesource}
|
||||||
|
|
||||||
Patch0002: 0002-kernel-version-re-fix.patch
|
Patch0001: 0001-kabi-stablelists.patch
|
||||||
|
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
BuildRequires: python3-devel
|
BuildRequires: python3-devel
|
||||||
@ -42,7 +38,7 @@ kernel modules.
|
|||||||
%prep
|
%prep
|
||||||
%forgesetup
|
%forgesetup
|
||||||
|
|
||||||
%patch0002 -p1
|
%patch0001 -p1
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%py3_build
|
%py3_build
|
||||||
@ -51,6 +47,9 @@ kernel modules.
|
|||||||
%py3_install
|
%py3_install
|
||||||
find %{buildroot} -size 0 -delete
|
find %{buildroot} -size 0 -delete
|
||||||
|
|
||||||
|
%check
|
||||||
|
%{__python3} setup.py test
|
||||||
|
|
||||||
%files -n %{name}
|
%files -n %{name}
|
||||||
%doc README
|
%doc README
|
||||||
%license COPYING
|
%license COPYING
|
||||||
@ -73,12 +72,6 @@ find %{buildroot} -size 0 -delete
|
|||||||
%config(noreplace) /etc/ddiskit.config
|
%config(noreplace) /etc/ddiskit.config
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
* Thu Feb 06 2025 Eugene Syromiatnikov <esyr@redhat.com> - 3.6-17
|
|
||||||
- Update to the latest version (RHEL-77191).
|
|
||||||
|
|
||||||
* Mon Jul 11 2022 Eugene Syromiatnikov <esyr@redhat.com> - 3.6-16
|
|
||||||
- Update kernel version RE for RHEL 9 idiosyncrasies (#2101634).
|
|
||||||
|
|
||||||
* Mon Feb 14 2022 Eugene Syromiatnikov <esyr@redhat.com> - 3.6-15
|
* Mon Feb 14 2022 Eugene Syromiatnikov <esyr@redhat.com> - 3.6-15
|
||||||
- Support kernel-abi-stablelists package usage in RHEL 9 (#1990207).
|
- Support kernel-abi-stablelists package usage in RHEL 9 (#1990207).
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user