commit 86a4b6b93c9f4f7bd3df117d344258370a4ef97f
Author: Jan RÄ™korajski <[email protected]>
Date:   Wed Jun 7 00:54:23 2017 +0200

    - disable gdb in IDE, it hasn't bee updated for ages and is broken with gdb 
8.0

 fpc-gdb.patch | 14 +++++++++++++-
 fpc.spec      |  6 ++++--
 2 files changed, 17 insertions(+), 3 deletions(-)
---
diff --git a/fpc.spec b/fpc.spec
index 4413cf8..c4757b5 100644
--- a/fpc.spec
+++ b/fpc.spec
@@ -1,6 +1,7 @@
 #
 # Conditional build:
 %bcond_without ide     # FPC IDE
+%bcond_with    gdb     # GDB support in FPC IDE
 %bcond_without doc     # documentation
 
 Summary:       Free Pascal - 32-bit Pascal compiler
@@ -33,7 +34,7 @@ BuildRequires:        rpmbuild(macros) >= 1.213
 %if %{with ide}
 BuildRequires: babeltrace-devel
 BuildRequires: expat-devel
-BuildRequires: gdb-lib >= 7.2-7
+%{?with_gdb:BuildRequires:     gdb-lib >= 7.2-7}
 BuildRequires: guile-devel
 BuildRequires: python-devel
 BuildRequires: readline-devel
@@ -234,7 +235,8 @@ esac
        RELEASE="1" \
        BASEINSTALLDIR=%{_libdir}/%{name}/%{version} \
        BININSTALLDIR=%{_bindir} \
-       GDBLIBDIR=%{_libdir} \
+       %{?with_gdb:GDBLIBDIR=%{_libdir}} \
+       %{!?with_gdb:NOGDB=YES} \
        DATA2INC="$DATA2INC" \
        PP="$NEWPP" \
        FPC="$NEWPP" \
diff --git a/fpc-gdb.patch b/fpc-gdb.patch
index e2ce752..55f6d3a 100644
--- a/fpc-gdb.patch
+++ b/fpc-gdb.patch
@@ -1,9 +1,21 @@
 --- fpcbuild-2.6.4/fpcsrc/packages/gdbint/src/gdbint.pp~       2016-04-01 
17:53:51.000000000 +0900
 +++ fpcbuild-2.6.4/fpcsrc/packages/gdbint/src/gdbint.pp        2016-04-01 
23:08:14.978738263 +0900
-@@ -59,6 +59,28 @@
+@@ -59,6 +59,40 @@
  
  {$undef GDB_VERSION_RECOGNIZED}
  
++{ 8.0 }
++{$ifdef GDB_V800}
++  {$info using gdb 8.0.x}
++  {$define GDB_VERSION_RECOGNIZED}
++  {$define GDB_VER_GE_800}
++  {$LINKLIB stdc++}
++{$endif}
++
++{$ifdef GDB_VER_GE_800}
++  {$define GDB_VER_GE_711}
++{$endif}
++
 +{ 7.11.x }
 +{$ifdef GDB_V711}
 +  {$info using gdb 7.11.x}
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/fpc.git/commitdiff/86a4b6b93c9f4f7bd3df117d344258370a4ef97f

_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to