From e74cde76c104df82b120a7b13964cb786da8f565 Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Mon, 22 May 2023 20:18:50 +0200 Subject: community -> extra --- extra/ispc/PKGBUILD | 41 +++++++++++++++++++++++++++++++++ extra/ispc/ispc-1.16.1-host-amd64.patch | 16 +++++++++++++ 2 files changed, 57 insertions(+) create mode 100644 extra/ispc/PKGBUILD create mode 100644 extra/ispc/ispc-1.16.1-host-amd64.patch (limited to 'extra/ispc') diff --git a/extra/ispc/PKGBUILD b/extra/ispc/PKGBUILD new file mode 100644 index 00000000..ead7793e --- /dev/null +++ b/extra/ispc/PKGBUILD @@ -0,0 +1,41 @@ +# disable GENX +eval "$( + declare -f build | \ + sed ' + s/-DGENX_ENABLED=ON/-DGENX_ENABLED=OFF/ + ' +)" + +# don't assume to be on a 64-bit Intel host and draw in gnu64 headers everywhere +source+=('ispc-1.16.1-host-amd64.patch') +sha256sums+=('7a4a631ad178b13f9ab68e6aec94469e30a4b9dec48d40f732a701b4ed4d5c1f') +eval "$( + { + declare -f prepare || \ + printf 'prepare() {\n}\n' + } \ + | sed ' + $i cd "$srcdir/$pkgname-$pkgver" \ + patch -Np1 -i "$srcdir/ispc-1.16.1-host-amd64.patch" + ' +)" + +# ignore test results, GENX tests failing obviously +eval "$( + declare -f build | \ + sed ' + s/\(make.*check-all\)/\1 || true/ + ' +)" + +# packaging issue now as we are not building everything +eval "$( + declare -f package | \ + sed ' + /rm.*build/d + /rm.*libispcrt_static.a/d + ' +)" + +# tests don't build when disabling GENX +unset check diff --git a/extra/ispc/ispc-1.16.1-host-amd64.patch b/extra/ispc/ispc-1.16.1-host-amd64.patch new file mode 100644 index 00000000..78ef5f20 --- /dev/null +++ b/extra/ispc/ispc-1.16.1-host-amd64.patch @@ -0,0 +1,16 @@ +diff -rauN ispc-1.16.1/CMakeLists.txt ispc-1.16.1-host-amd64-patch/CMakeLists.txt +--- ispc-1.16.1/CMakeLists.txt 2021-07-16 01:04:31.000000000 +0200 ++++ ispc-1.16.1-host-amd64-patch/CMakeLists.txt 2022-04-07 08:57:32.100539305 +0200 +@@ -45,9 +45,9 @@ + project(${PROJECT_NAME}) + + set(X86_HOST FALSE) +-if (${CMAKE_HOST_SYSTEM_PROCESSOR} MATCHES "AMD64|86") +- set(X86_HOST TRUE) +-endif() ++#if (${CMAKE_HOST_SYSTEM_PROCESSOR} MATCHES "AMD64|86") ++# set(X86_HOST TRUE) ++#endif() + + option(X86_ENABLED "Enable x86 support" ${X86_HOST}) + option(ARM_ENABLED "Enable ARM support" ON) -- cgit v1.2.3-70-g09d2