diff options
-rw-r--r-- | .SRCINFO | 5 | ||||
-rw-r--r-- | PKGBUILD | 8 | ||||
-rw-r--r-- | TargetRegistry.h-was-moved-to-MC-folder.patch | 27 |
3 files changed, 36 insertions, 4 deletions
@@ -1,6 +1,6 @@ pkgbase = mesa-minimal-git pkgdesc = an open-source implementation of the OpenGL specification, stripped down git version - pkgver = 21.3.0_devel.145800.d2543658ef6 + pkgver = 21.3.0_devel.146021.3e36a20a34d pkgrel = 1 url = https://www.mesa3d.org arch = x86_64 @@ -54,9 +54,12 @@ pkgbase = mesa-minimal-git conflicts = mesa-vdpau source = mesa::git+https://gitlab.freedesktop.org/mesa/mesa.git source = LICENSE + source = TargetRegistry.h-was-moved-to-MC-folder.patch md5sums = SKIP md5sums = 5c65a0fe315dd347e09b1f2826a1df5a + md5sums = a18664df6502a61490d305ab32c13365 sha512sums = SKIP sha512sums = 25da77914dded10c1f432ebcbf29941124138824ceecaf1367b3deedafaecabc082d463abcfa3d15abff59f177491472b505bcb5ba0c4a51bb6b93b4721a23c2 + sha512sums = 01e05fe2e08e2926ebb4c7e7f9f3095dbf31c706e8dab901a46300458f78df7de15d8ea5d2d11ac71d9175806194699d674e8cd1196f76e7f563eb7694f9e419 pkgname = mesa-minimal-git @@ -12,7 +12,7 @@ pkgname=mesa-minimal-git pkgdesc="an open-source implementation of the OpenGL specification, stripped down git version" -pkgver=21.3.0_devel.145800.d2543658ef6 +pkgver=21.3.0_devel.146021.3e36a20a34d pkgrel=1 arch=('x86_64') makedepends=('git' 'python-mako' 'xorgproto' @@ -29,13 +29,14 @@ url="https://www.mesa3d.org" license=('custom') source=('mesa::git+https://gitlab.freedesktop.org/mesa/mesa.git' 'LICENSE' + 'TargetRegistry.h-was-moved-to-MC-folder.patch' ) md5sums=('SKIP' '5c65a0fe315dd347e09b1f2826a1df5a' -) + 'a18664df6502a61490d305ab32c13365') sha512sums=('SKIP' '25da77914dded10c1f432ebcbf29941124138824ceecaf1367b3deedafaecabc082d463abcfa3d15abff59f177491472b505bcb5ba0c4a51bb6b93b4721a23c2' -) + '01e05fe2e08e2926ebb4c7e7f9f3095dbf31c706e8dab901a46300458f78df7de15d8ea5d2d11ac71d9175806194699d674e8cd1196f76e7f563eb7694f9e419') # ninja grabs all available cores and leaves almost nothing for other processes. # this package uses the environment variable NINJAFLAGS to allow the user to change this behaviour @@ -54,6 +55,7 @@ prepare() { if [ -d _build ]; then rm -rf _build fi + patch --directory="mesa" --forward --strip=1 --input="${srcdir}/TargetRegistry.h-was-moved-to-MC-folder.patch" } build () { diff --git a/TargetRegistry.h-was-moved-to-MC-folder.patch b/TargetRegistry.h-was-moved-to-MC-folder.patch new file mode 100644 index 000000000000..f903fff90944 --- /dev/null +++ b/TargetRegistry.h-was-moved-to-MC-folder.patch @@ -0,0 +1,27 @@ +diff --unified --recursive --text mesa.orig/src/gallium/frontends/clover/llvm/codegen/native.cpp mesa.new/src/gallium/frontends/clover/llvm/codegen/native.cpp +--- mesa.orig/src/gallium/frontends/clover/llvm/codegen/native.cpp 2021-10-09 12:43:48.935462036 +0200 ++++ mesa.new/src/gallium/frontends/clover/llvm/codegen/native.cpp 2021-10-09 13:25:54.763196300 +0200 +@@ -28,7 +28,6 @@ + /// + + #include <llvm/Target/TargetMachine.h> +-#include <llvm/Support/TargetRegistry.h> + #include <llvm/Transforms/Utils/Cloning.h> + + #include "llvm/codegen.hpp" +diff --unified --recursive --text mesa.orig/src/gallium/frontends/clover/llvm/compat.hpp mesa.new/src/gallium/frontends/clover/llvm/compat.hpp +--- mesa.orig/src/gallium/frontends/clover/llvm/compat.hpp 2021-10-09 12:43:48.935462036 +0200 ++++ mesa.new/src/gallium/frontends/clover/llvm/compat.hpp 2021-10-09 13:25:16.192571949 +0200 +@@ -56,6 +56,12 @@ + #include <llvm/Support/CodeGen.h> + #endif + ++#if LLVM_VERSION_MAJOR >= 13 ++#include <llvm/MC/TargetRegistry.h> ++#else ++#include <llvm/Support/TargetRegistry.h> ++#endif ++ + namespace clover { + namespace llvm { + namespace compat { |