[arch-commits] Commit in gambas3/trunk (PKGBUILD gambas3-gcc-fix.patch)
Evangelos Foutras
foutrelis at archlinux.org
Sun Apr 3 15:56:34 UTC 2016
Date: Sunday, April 3, 2016 @ 17:56:34
Author: foutrelis
Revision: 169395
Fix build with recent GCC
Added:
gambas3/trunk/gambas3-gcc-fix.patch
Modified:
gambas3/trunk/PKGBUILD
-----------------------+
PKGBUILD | 9 +++++++--
gambas3-gcc-fix.patch | 11 +++++++++++
2 files changed, 18 insertions(+), 2 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2016-04-03 14:42:40 UTC (rev 169394)
+++ PKGBUILD 2016-04-03 15:56:34 UTC (rev 169395)
@@ -30,8 +30,10 @@
'libxslt' 'libgnome-keyring' 'gsl' 'gst-plugins-base-libs' 'alure' 'gtkglext' 'ncurses'
'gmime' 'llvm35')
options=('!emptydirs' 'libtool')
-source=("http://downloads.sourceforge.net/gambas/${pkgbase}-${pkgver}.tar.bz2")
-md5sums=('1734e722a9f04db0f27b2e4d68a374b6')
+source=("http://downloads.sourceforge.net/gambas/${pkgbase}-${pkgver}.tar.bz2"
+ 'gambas3-gcc-fix.patch')
+md5sums=('1734e722a9f04db0f27b2e4d68a374b6'
+ '0f9192ebaab844e3a26080cb6f6162e2')
create_dirs() {
install -dm755 ${pkgdir}/usr/lib/gambas3
@@ -41,6 +43,9 @@
prepare() {
cd ${srcdir}/${pkgbase}-${pkgver}
+ # Fix build with recent GCC (patch by Tom Callaway of Fedora)
+ patch -Np1 -i ../gambas3-gcc-fix.patch
+
./reconf-all
}
Added: gambas3-gcc-fix.patch
===================================================================
--- gambas3-gcc-fix.patch (rev 0)
+++ gambas3-gcc-fix.patch 2016-04-03 15:56:34 UTC (rev 169395)
@@ -0,0 +1,11 @@
+--- gambas3-3.8.4/main/share/gambas.h.fix 2015-12-15 13:24:50.959501153 -0500
++++ gambas3-3.8.4/main/share/gambas.h 2015-12-15 13:25:07.023387570 -0500
+@@ -66,7 +66,7 @@
+ #endif
+
+ #if defined(__cplusplus) && !defined(__clang__)
+- #define __null ((intptr_t)0)
++/* #define __null ((intptr_t)0) */
+ #else
+ #ifdef bool
+ #undef bool
More information about the arch-commits
mailing list