summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam James <sam@gentoo.org>2021-11-12 05:05:02 +0000
committerSam James <sam@gentoo.org>2021-11-12 05:05:13 +0000
commit6feb18a9349da1ced86faf2e759f6797f74510ff (patch)
tree17276254ff9dbed6d968e7305644ed6599c537de /app-admin/mcelog
parentdev-db/firebird: fix logrotate file syntax (diff)
downloadgentoo-6feb18a9349da1ced86faf2e759f6797f74510ff.tar.gz
gentoo-6feb18a9349da1ced86faf2e759f6797f74510ff.tar.bz2
gentoo-6feb18a9349da1ced86faf2e759f6797f74510ff.zip
app-admin/mcelog: fix logrotate file syntax
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'app-admin/mcelog')
-rw-r--r--app-admin/mcelog/files/mcelog-179-fix-logrotate.patch21
-rw-r--r--app-admin/mcelog/mcelog-179-r1.ebuild (renamed from app-admin/mcelog/mcelog-179.ebuild)3
2 files changed, 23 insertions, 1 deletions
diff --git a/app-admin/mcelog/files/mcelog-179-fix-logrotate.patch b/app-admin/mcelog/files/mcelog-179-fix-logrotate.patch
new file mode 100644
index 000000000000..66978d022475
--- /dev/null
+++ b/app-admin/mcelog/files/mcelog-179-fix-logrotate.patch
@@ -0,0 +1,21 @@
+Should be in the next release:
+https://github.com/andikleen/mcelog/commit/2261c74a88f9bc9e87c9ffaae5a98261087730ae.patch
+
+From: Andi Kleen <andi@firstfloor.org>
+Date: Sat, 6 Nov 2021 07:22:24 -0700
+Subject: [PATCH] Fix logrotate syntax
+
+Fixes #102
+
+Signed-off-by: Andi Kleen <andi@firstfloor.org>
+--- a/mcelog.logrotate
++++ b/mcelog.logrotate
+@@ -3,7 +3,7 @@
+ dateext
+ maxage 365
+ rotate 99
+- size=+2048k
++ size +2048k
+ notifempty
+ missingok
+ copytruncate
diff --git a/app-admin/mcelog/mcelog-179.ebuild b/app-admin/mcelog/mcelog-179-r1.ebuild
index c8833103e6ec..147b65e40b9d 100644
--- a/app-admin/mcelog/mcelog-179.ebuild
+++ b/app-admin/mcelog/mcelog-179-r1.ebuild
@@ -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
}