integ/logging/logrotate/centos/meta_patches/0002-Add-upstream-patches.patch
slin14 7880e6f1a1 refactor logrotate
Package logrotate-config is created to config logrotate.conf
and logrotate.cron for logrotate.

Pass build and basic deploy test. And confirmed logrotate.conf
and logrotate.cron is the same as before.

Story: 2003768
Task: 27598

Change-Id: I4792366018f7c4d4960bf1182c8c2ffee5625676
Signed-off-by: slin14 <shuicheng.lin@intel.com>
2018-11-08 21:07:33 +08:00

37 lines
1.1 KiB
Diff

From dfd8e1c325e43cc8a5eb5ba939e355f89515a1d3 Mon Sep 17 00:00:00 2001
From: Don Penney <don.penney@windriver.com>
Date: Fri, 19 Jan 2018 23:04:46 -0500
Subject: Add upstream patches
---
SPECS/logrotate.spec | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/SPECS/logrotate.spec b/SPECS/logrotate.spec
index 0eac8bf..99a22ac 100644
--- a/SPECS/logrotate.spec
+++ b/SPECS/logrotate.spec
@@ -48,6 +48,9 @@ Patch17: logrotate-3.8.6-config-mode-err.patch
# fix #1483800 - update references to project page
Patch18: logrotate-3.8.6-upstream-url.patch
+Patch10001: 0001-createOutputFile-rename-already-existing-file.patch
+Patch10002: 0002-createOutputFile-eliminate-stat-open-TOCTOU-race.patch
+
Requires: coreutils >= 5.92 popt
BuildRequires: libselinux-devel popt-devel libacl-devel acl
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
@@ -85,6 +88,9 @@ log files on your system.
%patch17 -p1
%patch18 -p1
+%patch10001 -p1
+%patch10002 -p1
+
%build
make %{?_smp_mflags} RPM_OPT_FLAGS="$RPM_OPT_FLAGS" WITH_SELINUX=yes WITH_ACL=yes
--
2.7.4