Diff numad-0.5-r4 with a numad-0.5_p20180531-r2

/usr/portage/sys-process/numad/numad-0.5_p20180531-r2.ebuild 2023-10-09 14:52:35.584368504 +0300
1
# Copyright 1999-2022 Gentoo Authors
1
# Copyright 1999-2023 Gentoo Authors
2 2
# Distributed under the terms of the GNU General Public License v2
3 3

  
4 4
EAPI=8
......
9 9
	EGIT_REPO_URI="https://pagure.io/numad.git"
10 10
	inherit git-r3
11 11
else
12
	EGIT_COMMIT="334278ff3d774d105939743436d7378a189e8693"
13
	SRC_URI="mirror://gentoo/numad-${PV}-${EGIT_COMMIT:0:7}.tar.bz2"
12
	# sync with fedora (as numad upstream) and add couple of commis.
13
	# at time of writing f37 uses 20150602
14
	# git archive --format=tar.gz --prefix="${P}/" -o ${P}.tar.gz ${EGIT_COMMIT}
15
	EGIT_COMMIT="d696d6c413c5b47b4bbae79e29ea132e52095af3"
16
	SRC_URI="https://dev.gentoo.org/~gyakovlev/distfiles/${P}.tar.gz"
14 17
	KEYWORDS="~amd64 -arm ~arm64 ~ppc64 ~s390 ~x86"
15
	S="${WORKDIR}/${PN}-${EGIT_COMMIT:0:7}"
16 18
fi
17 19

  
18 20
DESCRIPTION="The NUMA daemon that manages application locality"
......
24 26
CONFIG_CHECK="~NUMA ~CPUSETS"
25 27

  
26 28
PATCHES=(
27
	"${FILESDIR}/0001-Fix-man-page-directory-creation.patch"
28
	"${FILESDIR}/${PN}-0.5-ldlibs.patch"
29
	"${FILESDIR}/${PN}-0.5-wformat-security.patch"
29
	# https://pagure.io/numad/pull-request/3
30
	"${FILESDIR}/${PN}-0.5-fix-sparse-node-ids.patch"
31

  
32
	# from debian/ubuntu: https://sources.debian.org/patches/numad
33
	"${FILESDIR}/${PN}-0.5-fix-build-for-no-NR-migrate-pages.patch"
34

  
35
	# from fedora: https://src.fedoraproject.org/rpms/numad/c/b9fdb5b1b09611ba164c04cd994e5e9ddf7fb8f4
36
	"${FILESDIR}/0001-numad_log-fix-buffer-overflow.patch"
30 37
)
31 38

  
32
src_prepare() {
33
	default
34
	tc-export CC
39
src_configure() {
40
	tc-export AR CC RANLIB
35 41
}
36 42

  
37 43
src_compile() {
38
	emake CFLAGS="${CFLAGS} -std=gnu99"
44
	emake OPT_CFLAGS="${CFLAGS}"
39 45
}
40 46

  
41 47
src_install() {
......
47 53
	insinto /etc/logrotate.d
48 54
	newins "${FILESDIR}"/numad.logrotated numad
49 55

  
50
	insinto /etc
51
	doins numad.conf
52 56
	systemd_dounit numad.service
53 57
}
Thank you!