diff options
author | V3n3RiX <venerix@koprulu.sector> | 2023-06-15 13:38:09 +0100 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2023-06-15 13:38:09 +0100 |
commit | db70871b2044b9bfde346d6f4027dafb0a013c4c (patch) | |
tree | 34548aee54e5458d3754bd8c8f987acdb5ee444c /app-admin/mcelog | |
parent | 1c382dc5dbc52576ac2300fee0498af8af44e7b4 (diff) |
gentoo auto-resync : 15:06:2023 - 13:38:09
Diffstat (limited to 'app-admin/mcelog')
-rw-r--r-- | app-admin/mcelog/Manifest | 2 | ||||
-rw-r--r-- | app-admin/mcelog/files/mcelog-194-musl-fix.patch | 21 | ||||
-rw-r--r-- | app-admin/mcelog/mcelog-194-r1.ebuild | 55 |
3 files changed, 78 insertions, 0 deletions
diff --git a/app-admin/mcelog/Manifest b/app-admin/mcelog/Manifest index 338cf5bdb54c..795917100902 100644 --- a/app-admin/mcelog/Manifest +++ b/app-admin/mcelog/Manifest @@ -1,6 +1,8 @@ AUX mcelog-0.8_pre1-timestamp-mcelog.patch 425 BLAKE2B 5952e26c668fb71f712fc70b3419dbb7b3e418f8903f3104fcf8d525cb117ce278f4669551a6cbeadd7f03d3bd022781a88c335c6ac84600d3bdf02a3d8277d3 SHA512 77312f9346c7e16141a57a5e44964d0b2cab77a428403d19cfc9558af55b250be7c9fadaecf87c8d78075251a7fc3ab309e0cbbdbb30ddc4423717cb3979a1db AUX mcelog-129-debugflags.patch 416 BLAKE2B 97aa6da3146380b40013966bb109de41215890cb4b6431ad694c2684f498d13287e385119304a816270f470ff26529967701c92bfc845a8aac698a0aa0f67271 SHA512 cda86c3e74f56fcd9d8771b26ca91c32ccc33e6bcd6dd0fcf856c14096daa619257d237e1e187e7820d6a0a0553ae6fd9ec160ea59e237b4e05ebca4e6656e20 +AUX mcelog-194-musl-fix.patch 531 BLAKE2B 011d06596a0f74078547701bfe0215ed96a027b4f3450b6bd14d2ddb29444f81c1776e1c968a56b1b7d64999a9ea6185d44d17cd876db9f64595d1b22337bfb9 SHA512 aff5916df652c33489c2af9631fcc3441554e64cf053d1d9b8e456fb6e2d5b5b6e3814e57518fe19963a0be65b3a38679343b7e620eb1c91a3ea0bfe3033747e AUX mcelog.init-r1 349 BLAKE2B 17f8a28dc1174fa62d50cb0d6dcae7bf4755ea99ff380d42a5beb16ab6ca07f1dbfcf7783ecb3b8f85f714357c39b0a333630c69e0bef5af32ba602686117cfd SHA512 a43f0efe7eb5007e9422ca2eba43b666d5110696c8b049b74990849e200b89b99e3d22707803e21e4452b0e75bbacdec0526ed933b234301ebbbb19d700df0d4 DIST mcelog-194.tar.gz 317449 BLAKE2B 68124209247ab0545d2f33c703bc6c10a6225275b929fe035cdad49f30d0ed2e8e5b30968b29f95c537a406b6aaca322adeaa22f1dc33c5f6dc92526f707b003 SHA512 b253b96bac2b6abe6c112f26b0b2d7cfc7720235fa0eec85bd60b1670d36d4032c8c9b27b9e0e22d77b4247ac661bf9278cf0bd43f196fd446ca3e04a41b65ed +EBUILD mcelog-194-r1.ebuild 1170 BLAKE2B 484e5cc88b12f6c23803eb0552bbe46d31caa16110229d382d9bbe94f29819952652d8c2408c6a83e079e51c3162ad6bf47409b9d377fd116cd6740998f0cf48 SHA512 e32023c4c569b6d6022a578fcbc43859f2015269c9ac425601c2bc3c095eb9d806a32288b2a30951c10de0a27710e3a530c318611cd0dae86a063e8677592858 EBUILD mcelog-194.ebuild 1129 BLAKE2B 5dcdcbf6d07baca3a81624ffa61d9bb083713c399abd04ffaa1c6c0c8bb21855e8cbfdf969c2f03bd78f3aa03196ca22059f2dc3ee5c5bc8ae7ec5a067d85b11 SHA512 1af01c906c6110b9fffbfe0e564a31b4b2bff60cd321b622ffdd04ea1d6eb4782e7b0a5ff25018c5d72af98f534b0a1c80e08619f11244472251a08fee872330 MISC metadata.xml 538 BLAKE2B 02cb85b3717b287e5e6a02db8c5485d52d1a5f7c9f927fad728ea8c313a93ebdb1aac5ac070cb852f18aae2cfebf5096ddb2c298948bc60180e4093c532aa899 SHA512 865e9e806a9fcf1d21ae7cd15c0e65196b3ccf7f866dc69237594908f020e224eca35d2d49fe70bef1e4d38b084ec8558e849148e470d3e22959f85177545bdc diff --git a/app-admin/mcelog/files/mcelog-194-musl-fix.patch b/app-admin/mcelog/files/mcelog-194-musl-fix.patch new file mode 100644 index 000000000000..6ea3c1f79303 --- /dev/null +++ b/app-admin/mcelog/files/mcelog-194-musl-fix.patch @@ -0,0 +1,21 @@ +https://github.com/andikleen/mcelog/pull/115 +From: Brahmajit Das <brahmajit.xyz@gmail.com> +Date: Mon, 12 Jun 2023 10:56:44 +0000 +Subject: [PATCH] client: Fix build w/ musl libc + +Refer: https://github.com/andikleen/mcelog/pull/115 +Bug: https://bugs.gentoo.org/894316 +Signed-off-by: Brahmajit Das <brahmajit.xyz@gmail.com> +--- a/client.c ++++ b/client.c +@@ -19,6 +19,7 @@ + #include <sys/socket.h> + #include <sys/un.h> + #include <unistd.h> ++#include <string.h> + #include "mcelog.h" + #include "client.h" + #include "paths.h" +-- +2.41.0 + diff --git a/app-admin/mcelog/mcelog-194-r1.ebuild b/app-admin/mcelog/mcelog-194-r1.ebuild new file mode 100644 index 000000000000..07ee8eae7fe6 --- /dev/null +++ b/app-admin/mcelog/mcelog-194-r1.ebuild @@ -0,0 +1,55 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +PYTHON_COMPAT=( python3_{9..11} ) + +inherit linux-info python-any-r1 systemd toolchain-funcs + +DESCRIPTION="A tool to log and decode Machine Check Exceptions" +HOMEPAGE="http://mcelog.org/" +SRC_URI="https://github.com/andikleen/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="selinux" + +RDEPEND="selinux? ( sec-policy/selinux-mcelog )" +DEPEND="${PYTHON_DEPS}" + +# TODO: add mce-inject to the tree to support test phase +RESTRICT="test" + +PATCHES=( + "${FILESDIR}"/${PN}-194-musl-fix.patch + "${FILESDIR}"/${PN}-0.8_pre1-timestamp-${PN}.patch + "${FILESDIR}"/${PN}-129-debugflags.patch +) + +pkg_pretend() { + if [[ ${MERGE_TYPE} != buildonly ]]; then + local CONFIG_CHECK="~X86_MCE" + kernel_is -ge 4 12 && CONFIG_CHECK+=" ~X86_MCELOG_LEGACY" + check_extra_config + fi +} + +src_prepare() { + default + tc-export CC + python_fix_shebang genconfig.py +} + +src_install() { + default + + insinto /etc/logrotate.d/ + newins ${PN}.logrotate ${PN} + + newinitd "${FILESDIR}"/${PN}.init-r1 ${PN} + systemd_dounit ${PN}.service + + dodoc *.pdf +} |