Diff rocm-opencl-runtime-5.1.3 with a rocm-opencl-runtime-5.3.3-r1

/usr/portage/dev-libs/rocm-opencl-runtime/rocm-opencl-runtime-5.3.3-r1.ebuild 2023-10-09 14:52:29.760368357 +0300
3 3

  
4 4
EAPI=8
5 5

  
6
inherit cmake edo flag-o-matic prefix
6
inherit cmake edo flag-o-matic
7 7

  
8 8
DESCRIPTION="Radeon Open Compute OpenCL Compatible Runtime"
9 9
HOMEPAGE="https://github.com/RadeonOpenCompute/ROCm-OpenCL-Runtime"
......
28 28
	test? ( >=x11-apps/mesa-progs-8.5.0[X] )
29 29
	"
30 30

  
31
PATCHES=(
32
	"${FILESDIR}/${PN}-5.1.3-remove-clinfo.patch"
33
	"${FILESDIR}/${PN}-3.5.0-do-not-install-libopencl.patch"
34
	"${FILESDIR}/${PN}-5.3.3-gcc13.patch"
35
)
36

  
37 31
S="${WORKDIR}/ROCm-OpenCL-Runtime-rocm-${PV}"
38 32
S1="${WORKDIR}/ROCclr-rocm-${PV}"
39 33

  
40
src_prepare() {
41
	# Remove "clinfo" - use "dev-util/clinfo" instead
42
	[ -d tools/clinfo ] && rm -rf tools/clinfo || die
34
PATCHES=( "${FILESDIR}/${PN}-5.3.3-gcc13.patch" )
43 35

  
36
src_prepare() {
44 37
	cmake_src_prepare
45 38

  
46
	hprefixify amdocl/CMakeLists.txt
47

  
48
	sed -e "s/DESTINATION lib/DESTINATION ${CMAKE_INSTALL_LIBDIR}/g" -i packaging/CMakeLists.txt || die
49
	# remove trailing CR or it won't work
50
	sed -e "s/\r$//g" -i tests/ocltst/module/perf/oclperf.exclude || die
51

  
52 39
	pushd ${S1} || die
53 40
	# Bug #753377
54 41
	# patch re-enables accidentally disabled gfx800 family
55 42
	eapply "${FILESDIR}/${PN}-5.0.2-enable-gfx800.patch"
56
	eapply "${FILESDIR}/rocclr-5.3.3-fix-include.patch"
43
	eapply "${FILESDIR}/rocclr-${PV}-fix-include.patch"
57 44
	eapply "${FILESDIR}/rocclr-5.3.3-gcc13.patch"
58 45
	popd || die
59 46
}
......
69 56
		-DROCM_PATH="${EPREFIX}/usr"
70 57
		-DBUILD_TESTS=$(usex test ON OFF)
71 58
		-DEMU_ENV=ON
72
		# -DCMAKE_STRIP=""
59
		-DBUILD_ICD=OFF
60
		-DFILE_REORG_BACKWARD_COMPATIBILITY=OFF
73 61
	)
74 62
	cmake_src_configure
75 63
}
Thank you!