* update rocm-cmake to 6.2.4-1
This commit is contained in:
parent
c68c4161bc
commit
d1219700c5
@ -1,6 +1,6 @@
|
||||
pkgbase = rocm-cmake
|
||||
pkgdesc = CMake modules for common build tasks needed for the ROCm software stack
|
||||
pkgver = 6.2.2
|
||||
pkgver = 6.2.4
|
||||
pkgrel = 1
|
||||
url = https://github.com/ROCm/rocm-cmake
|
||||
arch = x86_64
|
||||
@ -12,10 +12,11 @@ pkgbase = rocm-cmake
|
||||
checkdepends = rocm-llvm
|
||||
depends = rocm-core
|
||||
depends = cmake
|
||||
options = !debug
|
||||
source = rocm-cmake-6.2.2.tar.gz::https://github.com/ROCm/rocm-cmake/archive/rocm-6.2.2.tar.gz
|
||||
source = rocm-cmake-6.2.4.tar.gz::https://github.com/ROCm/rocm-cmake/archive/rocm-6.2.4.tar.gz
|
||||
source = rocm-cmake-old-policy-cmp0079.patch
|
||||
sha256sums = 60458eb5a4a3c0d5df4571e891b11fdb462e71e862112987582bb50a4877496a
|
||||
source = cmake-deprecation.patch
|
||||
sha256sums = 76bfac6fba31a9c4ec196d9b9b2d5ec51b8b68840b3fba8686aa42323d76a425
|
||||
sha256sums = 7c8d8351a8e85a0d122421d02ad967c75d4dd8442192662c1a1a68bacdfad67d
|
||||
sha256sums = dc95d690751af7c65c875c50f5d0cea594e50e618e24b33bafc77cced29fec1e
|
||||
|
||||
pkgname = rocm-cmake
|
||||
|
@ -1,11 +1,10 @@
|
||||
# POWER Maintainer: Alexander Baldeck <alex.bldck@gmail.com>
|
||||
# Maintainer: Torsten Keßler <tpkessler at archlinux dot org>
|
||||
# Contributor: Markus Näther <naetherm@cs.uni-freiburg.de>
|
||||
# Contributor: fermyon <antifermion@protonmail.com>
|
||||
# Contributor: Ranieri Althoff <ranisalt+aur at gmail.com>
|
||||
|
||||
pkgname=rocm-cmake
|
||||
pkgver=6.2.2
|
||||
pkgver=6.2.4
|
||||
pkgrel=1
|
||||
pkgdesc='CMake modules for common build tasks needed for the ROCm software stack'
|
||||
arch=(x86_64 powerpc64le powerpc64 riscv64)
|
||||
@ -14,11 +13,12 @@ license=('MIT')
|
||||
depends=('rocm-core' 'cmake')
|
||||
checkdepends=('git' 'rocm-llvm')
|
||||
source=("${pkgname}-${pkgver}.tar.gz::$url/archive/rocm-$pkgver.tar.gz"
|
||||
"${pkgname}-old-policy-cmp0079.patch")
|
||||
sha256sums=('60458eb5a4a3c0d5df4571e891b11fdb462e71e862112987582bb50a4877496a'
|
||||
'7c8d8351a8e85a0d122421d02ad967c75d4dd8442192662c1a1a68bacdfad67d')
|
||||
"${pkgname}-old-policy-cmp0079.patch"
|
||||
"cmake-deprecation.patch")
|
||||
sha256sums=('76bfac6fba31a9c4ec196d9b9b2d5ec51b8b68840b3fba8686aa42323d76a425'
|
||||
'7c8d8351a8e85a0d122421d02ad967c75d4dd8442192662c1a1a68bacdfad67d'
|
||||
'dc95d690751af7c65c875c50f5d0cea594e50e618e24b33bafc77cced29fec1e')
|
||||
_dirname="$(basename "$url")-$(basename "${source[0]}" .tar.gz)"
|
||||
options=(!debug)
|
||||
|
||||
prepare() {
|
||||
cd "$_dirname"
|
||||
@ -28,6 +28,10 @@ prepare() {
|
||||
# https://github.com/RadeonOpenCompute/rocm-docs-core
|
||||
# As we don't package it, disable also this test
|
||||
rm test/pass/doc-sphinxdoxygen.cmake
|
||||
# Fix deprecation erros with pre-3.10 CMake,
|
||||
# https://github.com/ROCm/rocm-cmake/issues/238
|
||||
patch -Np1 -i "$srcdir/cmake-deprecation.patch"
|
||||
find -name "CMakeLists.txt" -exec sed -i 's/(VERSION 3.[[:digit:]])/(VERSION 3.10)/' {} +
|
||||
|
||||
cd share/rocmcmakebuildtools
|
||||
# With cmake 3.28.1+ setting cmp0079 to old results in a deprecation error
|
||||
|
11
rocm-cmake/cmake-deprecation.patch
Normal file
11
rocm-cmake/cmake-deprecation.patch
Normal file
@ -0,0 +1,11 @@
|
||||
--- rocm-cmake-rocm-6.2.4/test/test.cmake.bak 2024-11-23 09:36:53.749629000 +0100
|
||||
+++ rocm-cmake-rocm-6.2.4/test/test.cmake 2024-11-23 09:37:42.573123886 +0100
|
||||
@@ -111,7 +111,7 @@
|
||||
if(NOT EXISTS ${BUILD_DIR})
|
||||
file(MAKE_DIRECTORY ${BUILD_DIR})
|
||||
endif()
|
||||
- test_exec(COMMAND ${CMAKE_COMMAND} -Werror=dev ${ADDITIONAL_CONFIGURE_ARGS} -DCMAKE_PREFIX_PATH=${PREFIX}
|
||||
+ test_exec(COMMAND ${CMAKE_COMMAND} -Wno-deprecated -Wno-error=deprecated ${ADDITIONAL_CONFIGURE_ARGS} -DCMAKE_PREFIX_PATH=${PREFIX}
|
||||
-DCMAKE_INSTALL_PREFIX=${PREFIX} -DROCM_ERROR_TOOLCHAIN_VAR=On ${PARSE_CMAKE_ARGS} ${DIR}
|
||||
WORKING_DIRECTORY ${BUILD_DIR})
|
||||
foreach(TARGET ${PARSE_TARGETS})
|
Loading…
x
Reference in New Issue
Block a user