Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Baumann <mail@andreasbaumann.cc>2023-01-21 14:43:41 +0100
committerAndreas Baumann <mail@andreasbaumann.cc>2023-01-21 14:43:41 +0100
commit0f4d4d1078698f18102e1404ac886e8744a49fc8 (patch)
treee5842d661ba67d89b92449a20a275d25e8f0b231
parente82ff38314358ffefb3df6da85dce3aa31a6ec90 (diff)
extra/mesa: disable libclc
-rw-r--r--extra/mesa/PKGBUILD17
1 files changed, 17 insertions, 0 deletions
diff --git a/extra/mesa/PKGBUILD b/extra/mesa/PKGBUILD
index b99acf24..fee4b17d 100644
--- a/extra/mesa/PKGBUILD
+++ b/extra/mesa/PKGBUILD
@@ -23,9 +23,21 @@ if [ "$CARCH" == 'i486' ]; then
)"
fi
+# disable libclc
+makedepends=(${makedepends[@]//libclc/})
+eval "$(
+ declare -f package_opencl-mesa \
+ | sed '
+ /depends=/ {
+ s/'"'"'libclc'"'"'//
+ }
+ '
+)"
+
# See https://bugs.freedesktop.org/show_bug.cgi?id=93089
# do not build/package vulkan on i486
# do not build i915,i965 on i486
+# libclc doesn't build at all on 32-bit
if [ "$CARCH" = 'i486' ]; then
eval "$(
declare -f build | \
@@ -51,5 +63,10 @@ if [ "$CARCH" = 'i486' ]; then
3 i if false; then
$ i fi
'
+ declare -f package_opencl-mesa | \
+ sed '
+ 3 i if false; then
+ $ i fi
+ '
)"
fi