Diff ksh-1.0.4 with a ksh-9999

/usr/portage/app-shells/ksh/ksh-9999.ebuild 2024-12-25 14:59:47.731270055 +0300
1
# Copyright 2021-2022 Gentoo Authors
1
# Copyright 2021-2024 Gentoo Authors
2 2
# Distributed under the terms of the GNU General Public License v2
3 3

  
4 4
EAPI=8
......
9 9
	inherit git-r3
10 10
	EGIT_REPO_URI="https://github.com/ksh93/ksh"
11 11
else
12
	KEYWORDS="~alpha amd64 arm arm64 hppa ~loong ~m68k ppc ppc64 ~riscv ~s390 sparc x86"
12
	KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~m68k ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86"
13 13
	MY_PV=$(ver_rs 3 - 4 .)
14 14
	SRC_URI="https://github.com/ksh93/${PN}/archive/v${MY_PV}/ksh-v${MY_PV}.tar.gz"
15 15
	S="${WORKDIR}/${PN}-${MY_PV}"
......
21 21
LICENSE="EPL-1.0"
22 22
SLOT="0"
23 23

  
24
src_prepare() {
25
	default
26

  
27
	# disable register for debugging
28
	sed -i 1i"#define register" src/lib/libast/include/ast.h || die
29
}
30

  
31 24
src_compile() {
32 25
	local extraflags=(
33 26
		"-Wno-unknown-pragmas"
......
40 33
		"-Wno-unused-but-set-variable"
41 34
		"-Wno-cpp"
42 35
		"-Wno-maybe-uninitialized"
43
		"-Wno-lto-type-mismatch"
44
		"-Wno-error=int-conversion"
45
		"-Wno-int-conversion"
46 36
		"-P"
47 37
	)
48 38
	append-cflags $(test-flags-CC ${extraflags[@]})
39
	append-cflags -fno-strict-aliasing
49 40
	filter-flags '-fdiagnostics-color=always' # https://github.com/ksh93/ksh/issues/379
50
	export CCFLAGS="${CFLAGS} -fno-strict-aliasing"
41
	filter-lto
51 42

  
43
	export CCFLAGS="${CFLAGS}"
52 44
	tc-export AR CC LD NM
53 45

  
54
	sh bin/package make SHELL="${BROOT}"/bin/sh || die
46
	sh bin/package make AR="${AR}" CC="${CC}" NM="${NM}" SHELL="${BROOT}"/bin/sh || die
55 47
}
56 48

  
57 49
src_test() {
Thank you!