2 Commits

3 changed files with 33 additions and 1 deletions

View File

@@ -0,0 +1,23 @@
https://bugs.gentoo.org/830222
https://github.com/cgdb/cgdb/pull/338
From 039dba0ec3ae2c4b2636418652a5c63f9ff86049 Mon Sep 17 00:00:00 2001
From: Florian Weimer <fweimer@redhat.com>
Date: Wed, 8 Mar 2023 11:29:06 +0100
Subject: [PATCH] configure: Avoid implicit int in readline check
Future compilers will not accept implicit ints by default, altering
the outcome of the check without this change.
Signed-off-by: Florian Weimer <fweimer@redhat.com>
--- a/config/readline_check_version.m4
+++ b/config/readline_check_version.m4
@@ -86,7 +86,7 @@ AC_CACHE_VAL(ac_cv_rl_version,
#include <stdlib.h>
#include <readline/readline.h>
-main()
+int main(void)
{
FILE *fp;
fp = fopen("conftest.rlv", "w");

View File

@@ -1,3 +1,9 @@
-------------------------------------------------------------------
Mon Dec 2 15:18:32 UTC 2024 - Friedrich Haubensak <hsk17@mail.de>
- to support gcc14, add patch cgdb-0.8.0-configure-c99.patch (from
gentoo) and run autoreconf in %prep stage
------------------------------------------------------------------- -------------------------------------------------------------------
Tue May 17 09:18:52 UTC 2022 - Ferdinand Thiessen <rpm@fthiessen.de> Tue May 17 09:18:52 UTC 2022 - Ferdinand Thiessen <rpm@fthiessen.de>

View File

@@ -24,6 +24,8 @@ License: GPL-2.0-or-later
Group: Development/Tools/Debuggers Group: Development/Tools/Debuggers
URL: https://cgdb.github.io/ URL: https://cgdb.github.io/
Source0: https://cgdb.me/files/%{name}-%{version}.tar.gz Source0: https://cgdb.me/files/%{name}-%{version}.tar.gz
Patch0: cgdb-0.8.0-configure-c99.patch
BuildRequires: automake
BuildRequires: bison BuildRequires: bison
BuildRequires: flex BuildRequires: flex
BuildRequires: gcc-c++ BuildRequires: gcc-c++
@@ -44,7 +46,8 @@ interface is inspired by the classic Unix text editor, vi. Those familiar with
vi (or vim) should feel right at home using CGDB. vi (or vim) should feel right at home using CGDB.
%prep %prep
%setup -q %autosetup -p1
autoreconf -Iconfig
%build %build
%configure %configure