Skip to content

Commit

Permalink
app-admin/mcelog: fix logrotate file syntax
Browse files Browse the repository at this point in the history
Signed-off-by: Sam James <[email protected]>
  • Loading branch information
thesamesam committed Nov 12, 2021
1 parent 4aed90b commit 6feb18a
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 1 deletion.
21 changes: 21 additions & 0 deletions app-admin/mcelog/files/mcelog-179-fix-logrotate.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
Should be in the next release:
https://github.com/andikleen/mcelog/commit/2261c74a88f9bc9e87c9ffaae5a98261087730ae.patch

From: Andi Kleen <[email protected]>
Date: Sat, 6 Nov 2021 07:22:24 -0700
Subject: [PATCH] Fix logrotate syntax

Fixes #102

Signed-off-by: Andi Kleen <[email protected]>
--- a/mcelog.logrotate
+++ b/mcelog.logrotate
@@ -3,7 +3,7 @@
dateext
maxage 365
rotate 99
- size=+2048k
+ size +2048k
notifempty
missingok
copytruncate
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@ pkg_pretend() {

src_prepare() {
eapply "${FILESDIR}"/${PN}-0.8_pre1-timestamp-${PN}.patch \
"${FILESDIR}"/${PN}-129-debugflags.patch
"${FILESDIR}"/${PN}-129-debugflags.patch \
"${FILESDIR}"/${PN}-179-fix-logrotate.patch
eapply_user
tc-export CC
}
Expand Down

0 comments on commit 6feb18a

Please sign in to comment.