Created
January 27, 2019 00:37
-
-
Save ulyssesrr/ff3e5942db72be7c21481d801814a07b to your computer and use it in GitHub Desktop.
Patch for https://aur.archlinux.org/packages/roct-thunk-interface/ @ 2.0.0-2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/PKGBUILD b/PKGBUILD | |
index 9a4d5df..cf8cc27 100644 | |
--- a/PKGBUILD | |
+++ b/PKGBUILD | |
@@ -8,8 +8,13 @@ url="https://github.com/RadeonOpenCompute/ROCT-Thunk-Interface" | |
license=('unknown') | |
makedepends=(git cmake gcc ninja) | |
depends=(numactl) | |
-source=("git+https://github.com/RadeonOpenCompute/ROCT-Thunk-Interface.git#tag=roc-2.0.0") | |
-sha256sums=("SKIP") | |
+source=("git+https://github.com/RadeonOpenCompute/ROCT-Thunk-Interface.git#tag=roc-2.0.0" "fix_build-dev_command.patch") | |
+sha256sums=("SKIP" "bbbc02908fdde51b46eb87f1ee68d0d6172aa83f76f7eaed4bf4e2eb17633615") | |
+ | |
+prepare() { | |
+ cd ROCT-Thunk-Interface | |
+ patch -Np1 -i "${srcdir}/fix_build-dev_command.patch" | |
+} | |
build() { | |
mkdir -p $srcdir/build | |
diff --git a/fix_build-dev_command.patch b/fix_build-dev_command.patch | |
new file mode 100644 | |
index 0000000..8e411b5 | |
--- /dev/null | |
+++ b/fix_build-dev_command.patch | |
@@ -0,0 +1,12 @@ | |
+diff -ura ROCT-Thunk-Interface/CMakeLists.txt new/CMakeLists.txt | |
+--- ROCT-Thunk-Interface/CMakeLists.txt 2019-01-26 22:04:18.005881703 -0200 | |
++++ new/CMakeLists.txt 2019-01-26 22:05:14.637674335 -0200 | |
+@@ -128,7 +128,7 @@ | |
+ -DSOURCE_DIR="${SOURCE_DIR}" | |
+ -DCMAKE_INSTALL_PREFIX="${CMAKE_INSTALL_PREFIX}" | |
+ -DCPACK_RPM_PACKAGE_REQUIRES="hsakmt-roct" | |
+- -DCPACK_PACKAGING_INSTALL_PREFIX="${CPACK_PACKAGING_INSTALL_PREFIX}" | |
++ -DCPACK_PACKAGING_INSTALL_PREFIX="${CPACK_PACKAGING_INSTALL_PREFIX}" . | |
+ WORKING_DIRECTORY ${DEV_BUILD_DIR} ) | |
+ | |
+ ## Custom targets for the devel package |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment