Diff tcc-0.9.27_p20230223 with a tcc-9999

/usr/portage/dev-lang/tcc/tcc-9999.ebuild 2026-05-27 19:17:04.538971080 +0300
1
# Copyright 1999-2024 Gentoo Authors
1
# Copyright 1999-2026 Gentoo Authors
2 2
# Distributed under the terms of the GNU General Public License v2
3 3

  
4 4
EAPI=8
5 5

  
6 6
inherit flag-o-matic toolchain-funcs
7 7

  
8
MY_COMMIT="29ae3ed4d5b83eec43598d6cd7949bccb41c8083"
8
MY_COMMIT="16456168430c9e185dd94b8215aa77d02bbb8a2c"
9 9
DESCRIPTION="A very small C compiler for ix86/amd64"
10 10
HOMEPAGE="https://bellard.org/tcc/ https://repo.or.cz/tinycc.git/"
11 11

  
......
14 14
	inherit git-r3
15 15
elif [[ ${PV} == *_p* ]] ; then
16 16
	SRC_URI="https://repo.or.cz/tinycc.git/snapshot/${MY_COMMIT}.tar.gz -> ${P}.tar.gz"
17
	S="${WORKDIR}"/tinycc-29ae3ed
17
	S="${WORKDIR}"/tinycc-1645616
18 18
else
19 19
	SRC_URI="https://download.savannah.gnu.org/releases/tinycc/${P}.tar.bz2"
20 20
fi
......
26 26
fi
27 27

  
28 28
BDEPEND="dev-lang/perl" # doc generation
29
IUSE="test"
29
IUSE="hardened test"
30 30
RESTRICT="!test? ( test )"
31 31

  
32 32
src_prepare() {
......
69 69
	use elibc_musl && libc=musl
70 70

  
71 71
	# not autotools, so call configure directly
72
	#
73
	# --with-selinux actually controls using mmap vs malloc for
74
	# executable memory with -run, so gate it on USE=hardened instead.
72 75
	./configure --cc="$(tc-getCC)" \
73 76
		${libc:+--config-${libc}} \
74 77
		--prefix="${EPREFIX}/usr" \
75 78
		--libdir="${EPREFIX}/usr/$(get_libdir)" \
76
		--docdir="${EPREFIX}/usr/share/doc/${PF}"
79
		--docdir="${EPREFIX}/usr/share/doc/${PF}" \
80
		$(usev hardened '--with-selinux')
77 81
}
78 82

  
79 83
src_compile() {
Thank you!