[packages/cgdb] - updated to 0.7.1 - updated home_etc patch

qboosh qboosh at pld-linux.org
Fri Oct 1 06:31:35 CEST 2021


commit fd73d03a170b5960e056e64f68afa59651cc6d00
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Fri Oct 1 06:35:52 2021 +0200

    - updated to 0.7.1
    - updated home_etc patch

 cgdb-home_etc.patch | 15 ++++++---------
 cgdb-info.patch     |  6 +++---
 cgdb.spec           | 11 +++++------
 3 files changed, 14 insertions(+), 18 deletions(-)
---
diff --git a/cgdb.spec b/cgdb.spec
index 22f6d7a..c524ca4 100644
--- a/cgdb.spec
+++ b/cgdb.spec
@@ -1,12 +1,12 @@
 Summary:	A lightweight, but fully functional curses frontend to gdb
 Summary(pl.UTF-8):	Lekki, ale w pełni funkcjonalny frontend do gdb oparty na ncurses
 Name:		cgdb
-Version:	0.7.0
-Release:	2
+Version:	0.7.1
+Release:	1
 License:	GPL v2
 Group:		Development/Debuggers
 Source0:	http://cgdb.me/files/%{name}-%{version}.tar.gz
-# Source0-md5:	7bdb1b418db4bcdb16ba004aebd8f3d7
+# Source0-md5:	a104862ffd3145b076303992e9a3af26
 Patch0:		%{name}-home_etc.patch
 Patch1:		%{name}-info.patch
 URL:		http://cgdb.github.io/
@@ -42,13 +42,12 @@ powinni czuć się jak w domu.
 %patch1 -p1
 
 %build
-#CPPFLAGS='%{rpmcppflags} -I/usr/include/ncurses '
 %{__aclocal} -I config
 %{__autoconf}
 %{__autoheader}
 %{__automake}
-
 %configure
+
 %{__make}
 
 %install
@@ -70,7 +69,7 @@ rm -rf $RPM_BUILD_ROOT
 
 %files
 %defattr(644,root,root,755)
-%doc AUTHORS NEWS README
+%doc AUTHORS NEWS
 %attr(755,root,root) %{_bindir}/cgdb
 %{_infodir}/cgdb.info*
 %dir %{_datadir}/%{name}
diff --git a/cgdb-home_etc.patch b/cgdb-home_etc.patch
index d1f02df..e5860e0 100644
--- a/cgdb-home_etc.patch
+++ b/cgdb-home_etc.patch
@@ -1,15 +1,12 @@
---- cgdb-0.7.0/cgdb/cgdb.cpp.orig	2013-09-19 19:12:29.892082233 +0200
-+++ cgdb-0.7.0/cgdb/cgdb.cpp	2013-09-19 19:14:09.012082558 +0200
-@@ -750,10 +750,11 @@
+--- cgdb-0.7.1/cgdb/cgdb.cpp.orig	2021-09-30 21:53:42.298867456 +0200
++++ cgdb-0.7.1/cgdb/cgdb.cpp	2021-09-30 21:55:01.881769652 +0200
+@@ -805,7 +805,8 @@ static void parse_long_options(int *argc
  static int init_home_dir(void)
  {
      /* Get the home directory */
 -    char *home_dir = getenv("HOME");
 +    char *home_dir = getenv("HOME_ETC");
-     const char *cgdb_dir = ".cgdb";
- 
-     /* Create the config directory */
 +    if (!home_dir) home_dir = getenv("HOME");
-     if (!fs_util_create_dir_in_base(home_dir, cgdb_dir)) {
-         logger_write_pos(logger, __FILE__, __LINE__,
-                 "fs_util_create_dir_in_base error");
+ 
+     /* Make sure the toplevel .cgdb dir exists */
+     snprintf(cgdb_home_dir, FSUTIL_PATH_MAX, "%s/.cgdb", home_dir);
diff --git a/cgdb-info.patch b/cgdb-info.patch
index 0ef8a98..808aaa7 100644
--- a/cgdb-info.patch
+++ b/cgdb-info.patch
@@ -1,6 +1,6 @@
---- cgdb-0.6.7/doc/cgdb.texinfo.orig	2013-01-14 12:31:53.000000000 +0100
-+++ cgdb-0.6.7/doc/cgdb.texi	2013-09-19 19:28:12.598752005 +0200
-@@ -29,9 +29,9 @@
+--- cgdb-0.7.1/doc/cgdb.texi.orig	2019-08-05 00:19:21.000000000 +0200
++++ cgdb-0.7.1/doc/cgdb.texi	2021-09-30 21:55:24.104982592 +0200
+@@ -31,9 +31,9 @@
  @end quotation
  @end copying
  
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/cgdb.git/commitdiff/fd73d03a170b5960e056e64f68afa59651cc6d00



More information about the pld-cvs-commit mailing list