diff options
author | Yixun Lan <dlan@gentoo.org> | 2023-05-12 20:33:42 +0800 |
---|---|---|
committer | Yixun Lan <dlan@gentoo.org> | 2023-05-12 20:36:06 +0800 |
commit | 762ce7166b5b142dafabdd16a7d1398528ed1b77 (patch) | |
tree | 1c2aa18c1d624689e24307303580e95778142760 /dev-util/crash | |
parent | app-emulation/vkd3d-proton: sync live (diff) | |
download | gentoo-762ce7166b5b142dafabdd16a7d1398528ed1b77.tar.gz gentoo-762ce7166b5b142dafabdd16a7d1398528ed1b77.tar.bz2 gentoo-762ce7166b5b142dafabdd16a7d1398528ed1b77.zip |
dev-util/crash: add 8.0.3
Signed-off-by: Yixun Lan <dlan@gentoo.org>
Diffstat (limited to 'dev-util/crash')
-rw-r--r-- | dev-util/crash/Manifest | 2 | ||||
-rw-r--r-- | dev-util/crash/crash-8.0.3.ebuild | 62 |
2 files changed, 64 insertions, 0 deletions
diff --git a/dev-util/crash/Manifest b/dev-util/crash/Manifest index a873838e97da..82c19bb0b791 100644 --- a/dev-util/crash/Manifest +++ b/dev-util/crash/Manifest @@ -5,5 +5,7 @@ DIST crash-8.0.1-extra-0.tar.xz 19152 BLAKE2B 60e40fa646f19fe1c5c120812f25c9b1ca 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 crash-8.0.3-extra-0.tar.xz 696 BLAKE2B 1a90e1b7ba87188cd438e8f9ca17276986b6fdeee00804a3dadf2979bfab0769bcf7df3bedaba75bdf9297eeb013929ba6ea0b98b228fa51d9a7fa09a77c01cf SHA512 c0f29c3b13ccbbc8a0c3366ec75797501c141e3c9c1085dbea1bec89e1b35b837528fabf0fe031e0cb2d725780bffb71e1f27657e75dd9aa2f0c4bc625d251b2 +DIST crash-8.0.3.tar.gz 1330456 BLAKE2B 0e277033ff16f2080af630fded3a2d458d580c9aafe1303e5cc291d39ca33a10fe942eb8f33308b2734494ad83913df45e8c192a2aab47f4473dffad777b57a2 SHA512 1ce7fda89274051cea02a049a674f2ca43fc02e00121f951af0d4c23c7b74cc79949ec376bb6737f82b95fec0cbe495b53a09df7e5f1f31ee5a829c1d53d0ba0 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.3.ebuild b/dev-util/crash/crash-8.0.3.ebuild new file mode 100644 index 000000000000..8255200bc2b3 --- /dev/null +++ b/dev-util/crash/crash-8.0.3.ebuild @@ -0,0 +1,62 @@ +# Copyright 1999-2023 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}" +} |