From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 656F4158020 for ; Mon, 19 Dec 2022 02:40:06 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 80D0FE0B0A; Mon, 19 Dec 2022 02:40:05 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 57370E0B0A for ; Mon, 19 Dec 2022 02:40:05 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id ED5B43412A9 for ; Mon, 19 Dec 2022 02:40:02 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 4066C477 for ; Mon, 19 Dec 2022 02:40:00 +0000 (UTC) From: "Yixun Lan" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Yixun Lan" Message-ID: <1671417334.79b1ca7a87db37bd57412bb82a192afe4264d7fc.dlan@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-util/crash/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-util/crash/Manifest dev-util/crash/crash-8.0.2.ebuild dev-util/crash/metadata.xml X-VCS-Directories: dev-util/crash/ X-VCS-Committer: dlan X-VCS-Committer-Name: Yixun Lan X-VCS-Revision: 79b1ca7a87db37bd57412bb82a192afe4264d7fc X-VCS-Branch: master Date: Mon, 19 Dec 2022 02:40:00 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: af6852e2-fac2-4fbc-acbc-becee1b4f01a X-Archives-Hash: 3bdbff2d421d7281618a1bde0eca38f2 commit: 79b1ca7a87db37bd57412bb82a192afe4264d7fc Author: Yixun Lan gentoo org> AuthorDate: Mon Dec 19 02:24:45 2022 +0000 Commit: Yixun Lan gentoo org> CommitDate: Mon Dec 19 02:35:34 2022 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=79b1ca7a dev-util/crash: Version bump 8.0.2 also pull RISCV64 patch Signed-off-by: Yixun Lan gentoo.org> dev-util/crash/Manifest | 2 ++ dev-util/crash/crash-8.0.2.ebuild | 62 +++++++++++++++++++++++++++++++++++++++ dev-util/crash/metadata.xml | 3 ++ 3 files changed, 67 insertions(+) diff --git a/dev-util/crash/Manifest b/dev-util/crash/Manifest index 7bd03a228de9..a873838e97da 100644 --- a/dev-util/crash/Manifest +++ b/dev-util/crash/Manifest @@ -3,5 +3,7 @@ DIST crash-8.0.0-patches-1.tar.xz 38880 BLAKE2B b1b22a55f07e7c23c90d13769cdf0db9 DIST crash-8.0.0.tar.gz 1281026 BLAKE2B bb86bc64d04ce136295bf57097674e96d29e5c934b2fc55f2bd5fa331f2d0086929e1fc7ce60b75b4df1ded128e71048e555bffc3321f6f860d00a8fae8bc09e SHA512 c52afab6c8187dc0c44a13b2a5b33bd7df33d9ee12bcecc6b7e94e8bc98d9470c134cb0fbe941b750f36a66028aad718bfd6f1a00524ad38ce43d1f278048a3b DIST crash-8.0.1-extra-0.tar.xz 19152 BLAKE2B 60e40fa646f19fe1c5c120812f25c9b1ca3ace975decdeda3c4914ee730a15faf374c6400419ec5d2923c6c79a13d4c63b03fbc4410b2bef5b166015560e63e6 SHA512 1797f6200b7ef9c9bd1e3c1efe499f5d9c5fe70213f0adac55a763f3b8675e4eccf04a62223e321c5d23a426e214860205222e78ce6f36c0dab2f7bafc141824 DIST crash-8.0.1.tar.gz 1293336 BLAKE2B 97c2e6e9f8407d6f310afb120c9609f845fb4395543634dfca5bf1278aecacb2fb30ead890f72ac476674ffd9df189e26e4261f09c577e0fcaaaacfe120fe6f1 SHA512 ef9fe84dd5efa1b0570f71a8dd7af398a2ff35e9dc9fbcbeafd0f5ff503c7c4da93a33ffddfbac672fe12788dd3712808d6726ba9161ce282a7c76c3e2dc0793 +DIST crash-8.0.2-extra-0.tar.xz 19716 BLAKE2B a87e499314f80babb249c45e613f890b7d157e40ffb42a728cc96913b46c81deee91b79b296b1153ce6c69bb96d22123ad5c54481153ed5bc6be74965a76b298 SHA512 00eeab3fa73e2cc4283d6263fd3d743832dc66a705207a3cb347d1c4735d9f2ba8bcbd3e9739a20878d3b8438cec9d12742049186a9f1d4ac0bfb7a27b4c31bd +DIST crash-8.0.2.tar.gz 1298881 BLAKE2B 120b68cfd0ae07b9f1e302a549f2095c2d9cd83cd5281b55b7d3e96242c6ce85db94afb6980f89ee14dc395d5d48dec0514349142e7dd33665ef331ed2bd987b SHA512 9ff24d1206e9376e83690f76c817a48a68ff6adce677fad70335a73550a59c9af6e4753c1199f22eafa60c137156313244bbf98ed01bc2b066f41d324738ef6b DIST gdb-10.2.tar.gz 40267550 BLAKE2B cee3ab45a52ed378fc718e49c4d153393200fd1b85306888e4085919ab27277bb85d66f9297e6d0aaa1fb47d65fc31d4b97a2fc476e2ccedd4dba0fbec778ab4 SHA512 aa89caf47c1c84366020377d47e7c51ddbc48e5b7686f244e38797c8eb88411cf57fcdc37eb669961efb41ceeac4181747f429625fd1acce7712cb9a1fea9c41 DIST gdb-7.6.tar.gz 31437633 BLAKE2B fb8cb9f0c33f360c864c5776c3dd0233ad534d376a9df8157c7bc9f1c4ccfc8698933409561700f134705c0107038d8bfa23844e512cd3a08e24925d37a1ce58 SHA512 02d9c62fa73bcb79138d14c7fc182443f0ca82d4545b4d260b67d3f0074ed75f899a657814a56727e601032a668b0ddd7b48aabd49215fc012eeea6077bca368 diff --git a/dev-util/crash/crash-8.0.2.ebuild b/dev-util/crash/crash-8.0.2.ebuild new file mode 100644 index 000000000000..eea9dfb346d1 --- /dev/null +++ b/dev-util/crash/crash-8.0.2.ebuild @@ -0,0 +1,62 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit toolchain-funcs + +GDB_VERSION=10.2 +UPSTREAM_VER= +EXTRA_VER=0 + +if [[ ${PV} == "9999" ]] ; then + EGIT_REPO_URI="https://github.com/crash-utility/crash.git" + SRC_URI="mirror://gnu/gdb/gdb-${GDB_VERSION}.tar.gz" + EGIT_BRANCH="master" + inherit git-r3 +else + [[ -n ${UPSTREAM_VER} ]] && \ + UPSTREAM_PATCHSET_URI="https://dev.gentoo.org/~dlan/distfiles/${CATEGORY}/${PN}/${P}-patches-${UPSTREAM_VER}.tar.xz" + + [[ -n ${EXTRA_VER} ]] && \ + EXTRA_PATCHSET_URI="https://dev.gentoo.org/~dlan/distfiles/${CATEGORY}/${PN}/${P}-extra-${EXTRA_VER}.tar.xz" + + SRC_URI="https://github.com/crash-utility/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz + ${UPSTREAM_PATCHSET_URI} ${EXTRA_PATCHSET_URI} + mirror://gnu/gdb/gdb-${GDB_VERSION}.tar.gz" + KEYWORDS="-* ~alpha ~amd64 ~arm ~ia64 ~ppc64 ~riscv ~s390 ~x86" +fi + +DESCRIPTION="Red Hat crash utility; used for analyzing kernel core dumps" +HOMEPAGE="https://crash-utility.github.io/" + +LICENSE="GPL-3" +SLOT="0" +IUSE="" +# there is no "make test" target, but there is a test.c so the automatic +# make rules catch it and tests fail +RESTRICT="test" + +src_prepare() { + default + + if [[ -n ${UPSTREAM_VER} ]]; then + einfo "Try to apply Crash's Upstream patch set" + eapply "${WORKDIR}"/patches-upstream + fi + + if [[ -n ${EXTRA_VER} ]]; then + einfo "Try to apply Crash's Extra patch set" + eapply "${WORKDIR}"/patches-extra + fi + + sed -i -e "s|ar -rs|\${AR} -rs|g" Makefile || die + ln -s "${DISTDIR}"/gdb-10.2.tar.gz . || die +} + +src_compile() { + emake \ + CC="$(tc-getCC)" \ + AR="$(tc-getAR)" \ + CFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}" +} diff --git a/dev-util/crash/metadata.xml b/dev-util/crash/metadata.xml index 31bbffaa9268..733de0aacc7f 100644 --- a/dev-util/crash/metadata.xml +++ b/dev-util/crash/metadata.xml @@ -12,4 +12,7 @@ combines the kernel-specific nature of the traditional UNIX crash utility with the source code level debugging capabilities of gdb. + + crash-utility/crash +