public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Georgy Yakovlev" <gyakovlev@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-process/minicoredumper/, sys-process/minicoredumper/files/
Date: Wed,  4 Jan 2023 00:31:11 +0000 (UTC)	[thread overview]
Message-ID: <1672792232.15860b1c3ff8962cd6e3b835572cfd042110aa41.gyakovlev@gentoo> (raw)

commit:     15860b1c3ff8962cd6e3b835572cfd042110aa41
Author:     Georgy Yakovlev <gyakovlev <AT> gentoo <DOT> org>
AuthorDate: Wed Jan  4 00:29:47 2023 +0000
Commit:     Georgy Yakovlev <gyakovlev <AT> gentoo <DOT> org>
CommitDate: Wed Jan  4 00:30:32 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=15860b1c

sys-process/minicoredumper: add 2.0.2

update sysctl file with recommendations.
EAPI 7>8
misc cleanup

Signed-off-by: Georgy Yakovlev <gyakovlev <AT> gentoo.org>

 sys-process/minicoredumper/Manifest                |  1 +
 .../minicoredumper/files/2.0.2-readme.patch        | 26 ++++++++++
 .../minicoredumper/files/60-minicoredumper.conf-r1 |  3 ++
 .../minicoredumper/minicoredumper-2.0.2.ebuild     | 55 ++++++++++++++++++++++
 4 files changed, 85 insertions(+)

diff --git a/sys-process/minicoredumper/Manifest b/sys-process/minicoredumper/Manifest
index 2654ac98b7c8..66c67036523e 100644
--- a/sys-process/minicoredumper/Manifest
+++ b/sys-process/minicoredumper/Manifest
@@ -1 +1,2 @@
 DIST minicoredumper-2.0.1.tar.xz 292088 BLAKE2B 0286004b707b1c9559ef4078dbd1d39ac82123cf3a6ba194210674dff3462db1b922340705f9b5e30e821b84ed91429f6f86cb680d353363b8b6aac92885cba6 SHA512 1ffc8e763aa653e443b15d49ac229720afc5d7729d6c1edb728bee55a887cad3b780bca2e4ac7f34c2f36756b02bd15002286f65d8a21ba99778d722e5953bb2
+DIST minicoredumper-2.0.2.tar.xz 303764 BLAKE2B 50e57aa2928b36cbade64795a2a721345bda1d5b7c9699ff2415c207f5a286560ff1f83b2d9964c69feca8a16323208945315545441fb54f3aebad91f524583d SHA512 1a511229f0784003a52bd54219a305dad72e97f7e1897f9512e38d443c377928657df6eae7383d9127c307c4098eead19de197327a675137d2962eee3b1ba395

diff --git a/sys-process/minicoredumper/files/2.0.2-readme.patch b/sys-process/minicoredumper/files/2.0.2-readme.patch
new file mode 100644
index 000000000000..ee012da65f74
--- /dev/null
+++ b/sys-process/minicoredumper/files/2.0.2-readme.patch
@@ -0,0 +1,26 @@
+From f5cf83a74dee47625c28f25980a857917faf1282 Mon Sep 17 00:00:00 2001
+From: John Ogness <john.ogness@linutronix.de>
+Date: Wed, 30 Nov 2022 15:23:49 +0106
+Subject: [PATCH] docs: mention setting kernel.core_pipe_limit
+
+It is recommended to set kernel.core_pipe_limit to the maximum
+value. Show that in the documentation.
+
+Signed-off-by: John Ogness <john.ogness@linutronix.de>
+---
+ README                                | 1 +
+ website/src/installation.content.html | 3 ++-
+ 2 files changed, 3 insertions(+), 1 deletion(-)
+
+diff --git a/README b/README
+index aea079d..5a768a0 100644
+--- a/README
++++ b/README
+@@ -39,6 +39,7 @@ Installation
+ 
+       $ echo '|/usr/sbin/minicoredumper %P %u %g %s %t %h %e' | \
+              sudo tee /proc/sys/kernel/core_pattern
++      $ echo 0x7fffffff | sudo tee /proc/sys/kernel/core_pipe_limit
+ 
+ Documentation
+ -------------

diff --git a/sys-process/minicoredumper/files/60-minicoredumper.conf-r1 b/sys-process/minicoredumper/files/60-minicoredumper.conf-r1
new file mode 100644
index 000000000000..c938d64df395
--- /dev/null
+++ b/sys-process/minicoredumper/files/60-minicoredumper.conf-r1
@@ -0,0 +1,3 @@
+kernel.core_pattern = |/usr/sbin/minicoredumper %P %u %g %s %t %h %e
+kernel.core_pipe_limit = 0x7fffffff
+fs.suid_dumpable=2

diff --git a/sys-process/minicoredumper/minicoredumper-2.0.2.ebuild b/sys-process/minicoredumper/minicoredumper-2.0.2.ebuild
new file mode 100644
index 000000000000..abb2db17ff6a
--- /dev/null
+++ b/sys-process/minicoredumper/minicoredumper-2.0.2.ebuild
@@ -0,0 +1,55 @@
+# Copyright 2020-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DESCRIPTION="Core dump file processor"
+HOMEPAGE="https://linutronix.de/minicoredumper"
+SRC_URI="https://linutronix.de/minicoredumper/files/${P}.tar.xz"
+
+LICENSE="BSD BSD-2 LGPL-2.1"
+SLOT="0"
+KEYWORDS="~amd64 ~arm64 ~ppc64 ~x86"
+IUSE=""
+
+DEPEND="
+	dev-libs/json-c:=
+	virtual/libelf
+"
+
+RDEPEND="${DEPEND}"
+BDEPEND="virtual/pkgconfig"
+
+PATCHES=( ${FILESDIR}/${PV}-readme.patch )
+
+src_configure() {
+	# regd daemon is disabled as there are no known consumers
+	local myconf=(
+		--runstatedir="${EPREFIX}/run"
+		--with-coreinject
+		--with-libminicoredumper
+		--with-minicoredumper
+		--without-minicoredumper_demo
+		--without-minicoredumper_regd
+		--without-minicoredumper_trigger
+		--without-werror
+		MCD_DUMP_PATH="${EPREFIX}/var/lib/${PN}"
+	)
+	econf ${myconf[@]}
+}
+
+src_install() {
+	default
+
+	keepdir /var/lib/minicoredumper
+
+	# systemd-coredump uses /usr/lib/sysctl.d/50-coredump.conf
+	insinto /usr/lib/sysctl.d
+	newins "${FILESDIR}"/60-minicoredumper.conf-r1 60-minicoredumper.conf
+
+	# some files/dirs we don't want
+	rmdir -v "${ED}/run" || die
+	rm -rv "${ED}"/etc/{init.d,default} || die
+
+	find "${ED}" -name '*.la' -delete || die
+}


             reply	other threads:[~2023-01-04  0:31 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-01-04  0:31 Georgy Yakovlev [this message]
  -- strict thread matches above, loose matches on Subject: below --
2024-03-21  2:41 [gentoo-commits] repo/gentoo:master commit in: sys-process/minicoredumper/, sys-process/minicoredumper/files/ Sam James
2020-01-14  3:58 Georgy Yakovlev

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1672792232.15860b1c3ff8962cd6e3b835572cfd042110aa41.gyakovlev@gentoo \
    --to=gyakovlev@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox