From 547306c911b08f1fe8659ef33fb26c979d0a5401 Mon Sep 17 00:00:00 2001 From: Andreas Baumann Date: Thu, 7 Apr 2022 09:48:17 +0200 Subject: community/ispc: disabled GENX and testing --- community/ispc/PKGBUILD | 41 ++++++++++++++++++++++++++++ community/ispc/ispc-1.16.1-host-amd64.patch | Bin 0 -> 582 bytes 2 files changed, 41 insertions(+) create mode 100644 community/ispc/PKGBUILD create mode 100644 community/ispc/ispc-1.16.1-host-amd64.patch (limited to 'community') diff --git a/community/ispc/PKGBUILD b/community/ispc/PKGBUILD new file mode 100644 index 00000000..826ac9a7 --- /dev/null +++ b/community/ispc/PKGBUILD @@ -0,0 +1,41 @@ +# disable GENX +eval "$( + declare -f build | \ + sed ' + s/-DGENX_ENABLED=OFF/-DGENX_ENABLED=ON/ + ' +)" + +# 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/community/ispc/ispc-1.16.1-host-amd64.patch b/community/ispc/ispc-1.16.1-host-amd64.patch new file mode 100644 index 00000000..78ef5f20 Binary files /dev/null and b/community/ispc/ispc-1.16.1-host-amd64.patch differ -- cgit v1.2.3-54-g00ecf