[arch-commits] Commit in gmic/trunk (PKGBUILD)

Antonio Rojas arojas at archlinux.org
Tue Mar 24 23:06:04 UTC 2020


    Date: Tuesday, March 24, 2020 @ 23:06:03
  Author: arojas
Revision: 603941

Disable optimizations to fix segfault in zart (FS#65938)

Modified:
  gmic/trunk/PKGBUILD

----------+
 PKGBUILD |    6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2020-03-24 22:30:38 UTC (rev 603940)
+++ PKGBUILD	2020-03-24 23:06:03 UTC (rev 603941)
@@ -7,7 +7,7 @@
 pkgbase=gmic
 pkgname=(gmic zart gimp-plugin-gmic krita-plugin-gmic)
 pkgver=2.8.4
-pkgrel=1
+pkgrel=2
 arch=(x86_64)
 url="https://gmic.eu/"
 license=(custom:CeCILL)
@@ -24,6 +24,8 @@
   mv zart gmic-$pkgver
 
   sed -e 's|/etc/bash_completion.d|/usr/share/bash-completion/completions|g' -i gmic-$pkgver/src/Makefile
+# Fix segfault on zart due to optimization https://github.com/c-koi/zart/issues/14
+  sed -e 's|-Ofast||g' -e 's|-flto||g' -i gmic-$pkgver/src/Makefile -i gmic-$pkgver/gmic-qt/gmic_qt.pro
 # fix overlinking
   sed -e 's/pkg-config opencv --libs ||//' -e 's/-lopencv_highgui/-lopencv_videoio/' \
       -e 's/pkg-config opencv/pkg-config opencv4/' -i gmic-$pkgver/src/Makefile 
@@ -34,6 +36,8 @@
 }
 
 build() {
+  unset CFLAGS
+
   cd gmic-$pkgver
   make -C src cli lib libc WGET=/bin/true LIBS=${LDFLAGS} -j1
 



More information about the arch-commits mailing list