Diff db-5.3.28-r9 with a db-6.0.35-r4

/usr/portage/sys-libs/db/db-6.0.35-r4.ebuild 2023-10-09 14:52:35.540368503 +0300
27 27
	export SRC_URI="${SRC_URI} http://www.oracle.com/technology/products/berkeley-db/db/update/${MY_PV}/patch.${MY_PV}.${i}"
28 28
done
29 29

  
30
LICENSE="Sleepycat"
30
LICENSE="AGPL-3"
31 31
SLOT="$(ver_cut 1-2)"
32
KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~loong ~m68k ppc ppc64 ~riscv ~s390 sparc x86"
32
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86"
33 33
IUSE="doc cxx tcl test"
34 34

  
35 35
REQUIRED_USE="test? ( tcl )"
......
38 38
DEPEND="tcl? ( >=dev-lang/tcl-8.5.15-r1:0=[${MULTILIB_USEDEP}] )
39 39
	test? ( >=dev-lang/tcl-8.5.15-r1:0=[${MULTILIB_USEDEP}] )"
40 40
RDEPEND="tcl? ( >=dev-lang/tcl-8.5.15-r1:0=[${MULTILIB_USEDEP}] )"
41
# bug #841698
42 41
# Need binutils for tc-ld-force-bfd
43
BDEPEND="
44
	sys-devel/autoconf-archive
45
	sys-devel/binutils:*
46
"
42
BDEPEND="sys-devel/binutils:*"
47 43

  
48 44
MULTILIB_WRAPPED_HEADERS=(
49 45
	/usr/include/db${SLOT}/db.h
......
51 47

  
52 48
PATCHES=(
53 49
	# sqlite configure call has an extra leading ..
54
	# upstreamed:5.2.36, missing in 5.3.x
55
	"${FILESDIR}"/${PN}-5.2.28-sqlite-configure-path.patch
50
	# upstreamed:5.2.36, missing in 5.3.x/6.x
51
	# still needs to be patched in 6.0.20
52
	"${FILESDIR}"/${PN}-6.0.35-sqlite-configure-path.patch
56 53

  
57 54
	# The upstream testsuite copies .lib and the binaries for each parallel test
58 55
	# core, ~300MB each. This patch uses links instead, saves a lot of space.
59 56
	"${FILESDIR}"/${PN}-6.0.20-test-link.patch
60

  
61
	# Needed when compiling with clang
62
	"${FILESDIR}"/${PN}-5.1.29-rename-atomic-compare-exchange.patch
63
	"${FILESDIR}"/${PN}-5.3.28-clang16.patch
64 57
)
65 58

  
66 59
src_prepare() {
......
113 106

  
114 107
multilib_src_configure() {
115 108
	local myconf=(
116
		# sql_compat will cause a collision with sqlite3
117
		#--enable-sql_compat
118
		# Don't --enable-sql* because we don't want to use bundled sqlite.
119
		# See Gentoo bug #605688
120 109
		--enable-compat185
121 110
		--enable-dbm
122 111
		--enable-o_direct
......
136 125

  
137 126
	# compilation with -O0 fails on amd64, see bug #171231
138 127
	if [[ ${ABI} == amd64 ]]; then
139
		local CFLAGS="${CFLAGS}" CXXFLAGS="${CXXFLAGS}"
128
		local CFLAGS=${CFLAGS} CXXFLAGS=${CXXFLAGS}
140 129
		replace-flags -O0 -O2
141 130
		is-flagq -O[s123] || append-flags -O2
142 131
	fi
......
155 144
		myconf+=(--disable-tcl )
156 145
	fi
157 146

  
147
	# sql_compat will cause a collision with sqlite3
148
	# --enable-sql_compat
149
	# Don't --enable-sql* because we don't want to use bundled sqlite.
150
	# See Gentoo bug #605688
158 151
	ECONF_SOURCE="${S_BASE}"/dist \
159 152
	STRIP="true" \
160 153
	econf "${myconf[@]}"
......
205 198
	# db_repsite is used directly in the setup_site_prog,
206 199
	# setup_site_prog is called from open_site_prog
207 200
	# which is called only from tests in the multi_repmgr group.
208
	#sed -ri \
201
	#sed -r \
209 202
	#	-e '/set subs/s,multi_repmgr,,g' \
210
	#	"${S_BASE}/test/testparams.tcl"
203
	#	-i "${S_BASE}/test/testparams.tcl"
211 204
	sed -r \
212 205
		-e '/multi_repmgr/d' \
213 206
		-i "${S_BASE}/test/tcl/test.tcl" || die
Thank you!