Hack to avoid audit related functionality
audit is not supported in RISC-V (riscv64) kernel for now. Signed-off-by: David Abdurachmanov <david.abdurachmanov@gmail.com>
This commit is contained in:
parent
eabba36833
commit
37b0de6325
|
@ -0,0 +1,13 @@
|
|||
diff --git a/dnf/db/history.py b/dnf/db/history.py
|
||||
index f4158ec..d336046 100644
|
||||
--- a/dnf/db/history.py
|
||||
+++ b/dnf/db/history.py
|
||||
@@ -445,7 +445,7 @@ class SwdbInterface(object):
|
||||
int(calendar.timegm(time.gmtime())),
|
||||
str(rpmdb_version),
|
||||
cmdline or "",
|
||||
- int(misc.getloginuid())
|
||||
+ 0
|
||||
)
|
||||
self.swdb.setReleasever(self.releasever)
|
||||
self._tid = tid
|
9
dnf.spec
9
dnf.spec
|
@ -74,12 +74,16 @@ It supports RPMs, modules and comps groups & environments.
|
|||
|
||||
Name: dnf
|
||||
Version: 3.0.4
|
||||
Release: 1%{?dist}
|
||||
Release: 1.0.riscv64%{?dist}
|
||||
Summary: %{pkg_summary}
|
||||
# For a breakdown of the licensing, see PACKAGE-LICENSING
|
||||
License: GPLv2+ and GPLv2 and GPL
|
||||
URL: https://github.com/rpm-software-management/dnf
|
||||
Source0: %{url}/archive/%{version}/%{name}-%{version}.tar.gz
|
||||
# HACK for RISC-V (riscv64). We cannot use getloginuid() which depends on
|
||||
# audit support in kernel (not available for RISC-V).
|
||||
# See: https://bugzilla.redhat.com/show_bug.cgi?id=1597005
|
||||
Patch0: dnf-riscv64-noaudit-hack.patch
|
||||
# Avoid systemd dependency loop in dnf-makecache.timer
|
||||
# https://bugzilla.redhat.com/show_bug.cgi?id=1600823
|
||||
# https://github.com/rpm-software-management/dnf/commit/4ca1555ab6ffb1b916094802440b84e74aca2eb5
|
||||
|
@ -489,6 +493,9 @@ rm -vf %{buildroot}%{_bindir}/dnf-automatic-*
|
|||
%endif
|
||||
|
||||
%changelog
|
||||
* Fri Aug 03 2018 David Abdurachmanov <david.abdurachmanov@gmail.com> - 3.0.4-1.0.riscv64
|
||||
- Add a hack for RISC-V (riscv64) to avoid using audit related features
|
||||
|
||||
* Sun Jul 22 2018 Daniel Mach <dmach@redhat.com> - 3.0.4-1
|
||||
- [transaction] Fix 'TransactionItem not found for key' error.
|
||||
- [module] Allow removing module profile without specifying a stream.
|
||||
|
|
Loading…
Reference in New Issue