Diff crash-8.0.3-r1 with a crash-9999

/usr/portage/dev-util/crash/crash-9999.ebuild 2023-10-09 14:52:30.956368387 +0300
1
# Copyright 1999-2023 Gentoo Authors
1
# Copyright 1999-2022 Gentoo Authors
2 2
# Distributed under the terms of the GNU General Public License v2
3 3

  
4 4
EAPI=8
......
6 6
inherit toolchain-funcs
7 7

  
8 8
GDB_VERSION=10.2
9
UPSTREAM_VER=
10
EXTRA_VER=0
11

  
12 9
if [[ ${PV} == "9999" ]] ; then
13 10
	EGIT_REPO_URI="https://github.com/crash-utility/crash.git"
14 11
	SRC_URI="mirror://gnu/gdb/gdb-${GDB_VERSION}.tar.gz"
15 12
	EGIT_BRANCH="master"
16 13
	inherit git-r3
17 14
else
18
	[[ -n ${UPSTREAM_VER} ]] && \
19
		UPSTREAM_PATCHSET_URI="https://dev.gentoo.org/~dlan/distfiles/${CATEGORY}/${PN}/${P}-patches-${UPSTREAM_VER}.tar.xz"
20

  
21
	[[ -n ${EXTRA_VER} ]] && \
22
		EXTRA_PATCHSET_URI="https://dev.gentoo.org/~dlan/distfiles/${CATEGORY}/${PN}/${P}-extra-${EXTRA_VER}.tar.xz"
23

  
24 15
	SRC_URI="https://github.com/crash-utility/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz
25
		${UPSTREAM_PATCHSET_URI} ${EXTRA_PATCHSET_URI}
26
		mirror://gnu/gdb/gdb-${GDB_VERSION}.tar.gz"
27
	KEYWORDS="-* ~alpha ~amd64 ~arm ~ia64 ~ppc64 ~riscv ~s390 ~x86"
16
		mirror://gnu/gdb/gdb-${GDB_VERSION}.tar.xz"
17
	KEYWORDS="-* ~alpha ~amd64 ~arm ~ia64 ~ppc64 ~s390 ~x86"
28 18
fi
29 19

  
30 20
DESCRIPTION="Red Hat crash utility; used for analyzing kernel core dumps"
......
37 27
# make rules catch it and tests fail
38 28
RESTRICT="test"
39 29

  
40
PATCHES=(
41
	# bug 911929, patch already in upstream, drop in next version bump
42
	"${FILESDIR}/${P}-strlcpy.patch"
43
)
44

  
45 30
src_prepare() {
46 31
	default
47

  
48
	if [[ -n ${UPSTREAM_VER} ]]; then
49
		einfo "Try to apply Crash's Upstream patch set"
50
		eapply "${WORKDIR}"/patches-upstream
51
	fi
52

  
53
	if [[ -n ${EXTRA_VER} ]]; then
54
		einfo "Try to apply Crash's Extra patch set"
55
		eapply "${WORKDIR}"/patches-extra
56
	fi
57

  
58 32
	sed -i -e "s|ar -rs|\${AR} -rs|g" Makefile || die
59 33
	ln -s "${DISTDIR}"/gdb-10.2.tar.gz . || die
60 34
}
Thank you!