Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/extra/carla
diff options
context:
space:
mode:
Diffstat (limited to 'extra/carla')
-rw-r--r--extra/carla/PKGBUILD27
-rw-r--r--extra/carla/carla-git-no-sse.patch74
-rw-r--r--extra/carla/carla-git-no-sse2.patch74
3 files changed, 175 insertions, 0 deletions
diff --git a/extra/carla/PKGBUILD b/extra/carla/PKGBUILD
new file mode 100644
index 00000000..aa111698
--- /dev/null
+++ b/extra/carla/PKGBUILD
@@ -0,0 +1,27 @@
+# disable SSE, SSE2 according to platform
+
+if [ "${CARCH}" = "i686" ]; then
+ source+=('carla-git-no-sse2.patch')
+ sha512sums+=('b481a9f9b1e404536a42706a36255216f64e49022c1c0f012e40be2941eb4a74b8d2b2f30998e16678a3d46e57dbeffa6f63259afff5a94a1bc4c7d8ba35a67c')
+ b2sums+=('cb314334ffb6552f11a6d5b3a2de707a846d316956a565ab350afee450c224ab693beace1a0e52b50d9150beca592d5ec79b3e8014bca2c4c8e44450dfbe6ee3')
+ eval "$(
+ declare -f prepare | \
+ sed '
+ /git.*cherry.*/ i \
+ patch -Np1 -i "$srcdir/carla-git-no-sse2.patch"
+ '
+ )"
+fi
+
+if [ "${CARCH}" = "i486" ]; then
+ source+=('carla-git-no-sse.patch')
+ sha512sums+=('bdce143bf9001c970d4001f9a65842f5f7130a26cb6c2804062146f80f672132181af0630d379fae5c51690761983df4cf1b37413d094d0157699dd509f828e4')
+ b2sums+=('294e7b6a3a902992b860867088e21e96f66316e41db8ecd510bf3ef6912ba0432ceb0abfe2ca6f78072858ed6e805e4f24f7aca598688eac45f7b41b8d5e72cd')
+ eval "$(
+ declare -f prepare | \
+ sed '
+ /git.*cherry.*/ i \
+ patch -Np1 -i "$srcdir/carla-git-no-sse.patch"
+ '
+ )"
+fi
diff --git a/extra/carla/carla-git-no-sse.patch b/extra/carla/carla-git-no-sse.patch
new file mode 100644
index 00000000..ba302425
--- /dev/null
+++ b/extra/carla/carla-git-no-sse.patch
@@ -0,0 +1,74 @@
+diff -rauN carla-git/data/linux/build-deps.sh carla-git-no-sse/data/linux/build-deps.sh
+--- carla-git/data/linux/build-deps.sh 2021-09-23 08:50:25.065006050 +0200
++++ carla-git-no-sse/data/linux/build-deps.sh 2021-09-23 09:04:11.823846586 +0200
+@@ -52,7 +52,7 @@
+ export PATH=${PREFIX}/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin
+ export PKG_CONFIG_PATH=${PREFIX}/lib/pkgconfig
+
+-export CFLAGS="-O3 -mtune=generic -msse -msse2 -mfpmath=sse -fvisibility=hidden -fdata-sections -ffunction-sections"
++export CFLAGS="-O3 -mtune=generic -fvisibility=hidden -fdata-sections -ffunction-sections"
+ export CFLAGS="${CFLAGS} -fPIC -DPIC -DNDEBUG -I${PREFIX}/include -m${ARCH}"
+ export CXXFLAGS="${CFLAGS} -fvisibility-inlines-hidden"
+
+@@ -115,7 +115,7 @@
+ cd qtbase-opensource-src-${QT5_VERSION}
+ if [ ! -f configured ]; then
+ ./configure -release -strip -silent \
+- -sse2 \
++ -no-sse -no-sse2 \
+ -no-sse3 -no-ssse3 -no-sse4.1 -no-sse4.2 \
+ -no-avx -no-avx2 -no-avx512 \
+ -prefix ${PREFIX} \
+@@ -347,14 +347,14 @@
+ export CXXFLAGS="${CXXFLAGS} -ffast-math"
+ cd fftw-${FFTW3_VERSION}
+ ./configure --enable-static --disable-shared --prefix=${PREFIX} \
+- --enable-sse2 \
++ --disable=sse --disable-sse2 \
+ --disable-debug --disable-alloca --disable-fortran \
+ --with-our-malloc
+ make
+ make install
+ make clean
+ ./configure --enable-static --disable-shared --prefix=${PREFIX} \
+- --enable-sse2 --enable-sse --enable-single \
++ --disable-sse2 --disable-sse --enable-single \
+ --disable-debug --disable-alloca --disable-fortran \
+ --with-our-malloc
+ make
+diff -rauN carla-git/data/linux/build-pyqt.sh carla-git-no-sse/data/linux/build-pyqt.sh
+--- carla-git/data/linux/build-pyqt.sh 2021-09-23 08:50:25.065006050 +0200
++++ carla-git-no-sse/data/linux/build-pyqt.sh 2021-09-23 09:03:34.840418148 +0200
+@@ -45,7 +45,7 @@
+ export PATH=${PREFIX}/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin
+ export PKG_CONFIG_PATH=${PREFIX}/lib/pkgconfig
+
+-export CFLAGS="-O3 -mtune=generic -msse -msse2 -mfpmath=sse -fPIC -DPIC -DNDEBUG -m${ARCH}"
++export CFLAGS="-O3 -mtune=generic -fPIC -DPIC -DNDEBUG -m${ARCH}"
+ export CXXFLAGS="${CFLAGS}"
+ export LDFLAGS="-m${ARCH} -Wl,-O1"
+
+diff -rauN carla-git/source/Makefile.mk carla-git-no-sse/source/Makefile.mk
+--- carla-git/source/Makefile.mk 2021-09-23 08:50:25.088339419 +0200
++++ carla-git-no-sse/source/Makefile.mk 2021-09-23 14:25:58.412917731 +0200
+@@ -162,7 +162,7 @@
+ BASE_OPTS = -O3 -ffast-math -fdata-sections -ffunction-sections
+
+ ifeq ($(CPU_I386_OR_X86_64),true)
+-BASE_OPTS += -mtune=generic -msse -msse2 -mfpmath=sse
++BASE_OPTS += -mtune=generic
+ endif
+
+ ifeq ($(CPU_ARM),true)
+diff -rauN carla-git/source/tests.old/Makefile carla-git-no-sse/source/tests.old/Makefile
+--- carla-git/source/tests.old/Makefile 2021-09-23 08:50:25.275006380 +0200
++++ carla-git-no-sse/source/tests.old/Makefile 2021-09-23 09:03:18.023708117 +0200
+@@ -33,7 +33,7 @@
+ ifeq ($(DEBUG),true)
+ BASE_FLAGS += -DDEBUG -O0 -g
+ else
+-BASE_FLAGS += -O3 -ffast-math -mtune=generic -msse -msse2 -mfpmath=sse -fdata-sections -ffunction-sections
++BASE_FLAGS += -O3 -ffast-math -mtune=generic -fdata-sections -ffunction-sections
+ LINK_FLAGS += -fdata-sections -ffunction-sections -Wl,--gc-sections -Wl,-O1 -Wl,--as-needed -Wl,--strip-all
+ endif
+
diff --git a/extra/carla/carla-git-no-sse2.patch b/extra/carla/carla-git-no-sse2.patch
new file mode 100644
index 00000000..99d324ca
--- /dev/null
+++ b/extra/carla/carla-git-no-sse2.patch
@@ -0,0 +1,74 @@
+diff -rauN carla-git/data/linux/build-deps.sh carla-git-no-sse2/data/linux/build-deps.sh
+--- carla-git/data/linux/build-deps.sh 2021-09-23 08:50:25.065006050 +0200
++++ carla-git-no-sse2/data/linux/build-deps.sh 2021-09-23 08:52:22.391955977 +0200
+@@ -52,7 +52,7 @@
+ export PATH=${PREFIX}/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin
+ export PKG_CONFIG_PATH=${PREFIX}/lib/pkgconfig
+
+-export CFLAGS="-O3 -mtune=generic -msse -msse2 -mfpmath=sse -fvisibility=hidden -fdata-sections -ffunction-sections"
++export CFLAGS="-O3 -mtune=generic -msse -mfpmath=sse -fvisibility=hidden -fdata-sections -ffunction-sections"
+ export CFLAGS="${CFLAGS} -fPIC -DPIC -DNDEBUG -I${PREFIX}/include -m${ARCH}"
+ export CXXFLAGS="${CFLAGS} -fvisibility-inlines-hidden"
+
+@@ -115,7 +115,7 @@
+ cd qtbase-opensource-src-${QT5_VERSION}
+ if [ ! -f configured ]; then
+ ./configure -release -strip -silent \
+- -sse2 \
++ -no-sse2 \
+ -no-sse3 -no-ssse3 -no-sse4.1 -no-sse4.2 \
+ -no-avx -no-avx2 -no-avx512 \
+ -prefix ${PREFIX} \
+@@ -347,14 +347,14 @@
+ export CXXFLAGS="${CXXFLAGS} -ffast-math"
+ cd fftw-${FFTW3_VERSION}
+ ./configure --enable-static --disable-shared --prefix=${PREFIX} \
+- --enable-sse2 \
++ --disable-sse2 \
+ --disable-debug --disable-alloca --disable-fortran \
+ --with-our-malloc
+ make
+ make install
+ make clean
+ ./configure --enable-static --disable-shared --prefix=${PREFIX} \
+- --enable-sse2 --enable-sse --enable-single \
++ --disable-sse2 --enable-sse --enable-single \
+ --disable-debug --disable-alloca --disable-fortran \
+ --with-our-malloc
+ make
+diff -rauN carla-git/data/linux/build-pyqt.sh carla-git-no-sse2/data/linux/build-pyqt.sh
+--- carla-git/data/linux/build-pyqt.sh 2021-09-23 08:50:25.065006050 +0200
++++ carla-git-no-sse2/data/linux/build-pyqt.sh 2021-09-23 08:51:36.735162561 +0200
+@@ -45,7 +45,7 @@
+ export PATH=${PREFIX}/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin
+ export PKG_CONFIG_PATH=${PREFIX}/lib/pkgconfig
+
+-export CFLAGS="-O3 -mtune=generic -msse -msse2 -mfpmath=sse -fPIC -DPIC -DNDEBUG -m${ARCH}"
++export CFLAGS="-O3 -mtune=generic -msse -mfpmath=sse -fPIC -DPIC -DNDEBUG -m${ARCH}"
+ export CXXFLAGS="${CFLAGS}"
+ export LDFLAGS="-m${ARCH} -Wl,-O1"
+
+diff -rauN carla-git/source/Makefile.mk carla-git-no-sse2/source/Makefile.mk
+--- carla-git/source/Makefile.mk 2021-09-23 08:50:25.088339419 +0200
++++ carla-git-no-sse2/source/Makefile.mk 2021-09-23 14:25:10.466157641 +0200
+@@ -162,7 +162,7 @@
+ BASE_OPTS = -O3 -ffast-math -fdata-sections -ffunction-sections
+
+ ifeq ($(CPU_I386_OR_X86_64),true)
+-BASE_OPTS += -mtune=generic -msse -msse2 -mfpmath=sse
++BASE_OPTS += -mtune=generic -msse -mfpmath=sse
+ endif
+
+ ifeq ($(CPU_ARM),true)
+diff -rauN carla-git/source/tests.old/Makefile carla-git-no-sse2/source/tests.old/Makefile
+--- carla-git/source/tests.old/Makefile 2021-09-23 08:50:25.275006380 +0200
++++ carla-git-no-sse2/source/tests.old/Makefile 2021-09-23 08:51:13.868432167 +0200
+@@ -33,7 +33,7 @@
+ ifeq ($(DEBUG),true)
+ BASE_FLAGS += -DDEBUG -O0 -g
+ else
+-BASE_FLAGS += -O3 -ffast-math -mtune=generic -msse -msse2 -mfpmath=sse -fdata-sections -ffunction-sections
++BASE_FLAGS += -O3 -ffast-math -mtune=generic -msse -mfpmath=sse -fdata-sections -ffunction-sections
+ LINK_FLAGS += -fdata-sections -ffunction-sections -Wl,--gc-sections -Wl,-O1 -Wl,--as-needed -Wl,--strip-all
+ endif
+