-
Notifications
You must be signed in to change notification settings - Fork 72
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
RPM: Use kernel build directory corresponding to kernel-devel
- Loading branch information
Showing
2 changed files
with
15 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,12 +5,12 @@ | |
Summary: Linux Kernel Runtime Guard (LKRG) | ||
Name: lkrg | ||
Version: 0.9.7 | ||
Release: 1%{?dist} | ||
Release: 2%{?dist} | ||
License: GPLv2 | ||
URL: https://lkrg.org | ||
Source: https://lkrg.org/download/%name-%version.tar.gz | ||
ExclusiveArch: %ix86 x86_64 %arm32 %arm64 | ||
BuildRequires: make, gcc, kernel-devel | ||
BuildRequires: make, gcc, elfutils-libelf-devel, kernel, kernel-devel | ||
BuildRoot: /override/%name-%version | ||
|
||
%description | ||
|
@@ -28,7 +28,7 @@ as open a file) based on the unauthorized credentials. | |
%setup -q | ||
|
||
%build | ||
make %{?_smp_mflags} | ||
make %{?_smp_mflags} KERNELRELEASE=%kmod_headers_version | ||
|
||
%install | ||
rm -rf %buildroot | ||
|
@@ -55,6 +55,12 @@ echo 'To enable LKRG on bootup please use: systemctl enable lkrg' | |
%_sysconfdir/sysctl.d/* | ||
|
||
%changelog | ||
* Thu Sep 14 2023 Solar Designer <[email protected]> 0.9.7-2 | ||
- Use kernel build directory corresponding to the kernel-devel package, not to | ||
the currently running kernel | ||
- "BuildRequires: kernel" for the /lib/modules/* directory | ||
- "BuildRequires: elfutils-libelf-devel" to support CONFIG_UNWINDER_ORC=y | ||
|
||
* Thu Sep 14 2023 Solar Designer <[email protected]> 0.9.7-1 | ||
- Wrote this rough RPM spec file for Red Hat'ish distros, seems to work fine on | ||
RHEL 7, 8, 9 rebuilds, but is only reliable when there's exactly one | ||
|