Diff rocm-comgr-5.1.3-r3 with a rocm-comgr-5.3.3-r2

/usr/portage/dev-libs/rocm-comgr/rocm-comgr-5.3.3-r2.ebuild 2023-10-09 14:52:29.760368357 +0300
17 17
	KEYWORDS="~amd64"
18 18
fi
19 19

  
20
IUSE="test"
21
RESTRICT="!test? ( test )"
22

  
20 23
PATCHES=(
21
	"${FILESDIR}/${PN}-4.5.2-dependencies.patch"
22
	"${FILESDIR}/${PN}-5.1.3-Find-CLANG_RESOURCE_DIR.patch"
23
	"${FILESDIR}/${PN}-5.1.3-clang-link.patch"
24 24
	"${FILESDIR}/${PN}-5.1.3-clang-fix-include.patch"
25 25
	"${FILESDIR}/${PN}-5.1.3-rocm-path.patch"
26
	"${FILESDIR}/0001-COMGR-changes-needed-for-upstream-llvm.patch"
27 26
	"${FILESDIR}/${PN}-5.1.3-llvm-15-remove-zlib-gnu"
28
	"${FILESDIR}/${PN}-5.1.3-llvm-15-args-changed"
27
	"${FILESDIR}/0001-Specify-clang-exe-path-in-Driver-Creation.patch"
28
	"${FILESDIR}/0001-Find-CLANG_RESOURCE_DIR-using-clang-print-resource-d.patch"
29
	"${FILESDIR}/${PN}-5.3.3-HIPIncludePath-not-needed.patch"
30
	"${FILESDIR}/${PN}-5.3.3-fix-tests.patch"
29 31
	"${FILESDIR}/${PN}-5.3.3-fno-stack-protector.patch"
32
	"${FILESDIR}/${PN}-5.3.3-remove-h-option.patch"
30 33
)
31 34

  
32 35
DESCRIPTION="Radeon Open Compute Code Object Manager"
......
45 48
src_prepare() {
46 49
	sed '/sys::path::append(HIPPath/s,"hip","",' -i src/comgr-env.cpp || die
47 50
	sed "/return LLVMPath;/s,LLVMPath,llvm::SmallString<128>(\"$(get_llvm_prefix ${LLVM_MAX_SLOT})\")," -i src/comgr-env.cpp || die
48
	sed '/Args.push_back(HIPIncludePath/,+1d' -i src/comgr-compiler.cpp || die
49
	sed '/Args.push_back(ROCMIncludePath/,+1d' -i src/comgr-compiler.cpp || die # ROCM and HIPIncludePath is now /usr, which disturb the include order
50 51
	eapply $(prefixify_ro "${FILESDIR}"/${PN}-5.0-rocm_path.patch)
51 52
	cmake_src_prepare
52 53
}
......
55 56
	local mycmakeargs=(
56 57
		-DLLVM_DIR="$(get_llvm_prefix ${LLVM_MAX_SLOT})"
57 58
		-DCMAKE_STRIP=""  # disable stripping defined at lib/comgr/CMakeLists.txt:58
59
		-DBUILD_TESTING=$(usex test ON OFF)
58 60
	)
59 61
	cmake_src_configure
60 62
}
Thank you!