-diff -Nru cgdb-0.4.0.orig/cgdb/src/cgdb.c cgdb-0.4.0/cgdb/src/cgdb.c
---- cgdb-0.4.0.orig/cgdb/src/cgdb.c 2003-10-24 18:08:16.000000000 +0200
-+++ cgdb-0.4.0/cgdb/src/cgdb.c 2003-11-19 11:29:11.000000000 +0100
-@@ -190,10 +190,11 @@
+--- cgdb-0.6.1/cgdb/src/cgdb.c~ 2006-03-08 00:08:42.000000000 +0100
++++ cgdb-0.6.1/cgdb/src/cgdb.c 2006-03-08 00:10:29.000000000 +0100
+@@ -683,10 +683,11 @@
+ init_home_dir (void)
+ {
+ /* Get the home directory */
+- char *home_dir = getenv ("HOME");
++ char *home_dir = getenv ("HOME_ETC");
+ const char *cgdb_dir = ".cgdb";
- 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");
-+ /* Create the config directory */
- if ( ! fs_util_create_dir_in_base ( home_dir, cgdb_dir ) ) {
- err_msg("%s:%d fs_util_create_dir_in_base error", __FILE__, __LINE__);
- return -1;
+ /* 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__,
Summary: A lightweight, but fully functional curses frontend to gdb
Summary(pl): Lekki, ale w peĀ³ni funkcjonalny frontend do gdb oparty na ncurses
Name: cgdb
-Version: 0.6.0
+Version: 0.6.1
Release: 1
License: GPL
Group: Development/Debuggers
Source0: http://dl.sourceforge.net/cgdb/%{name}-%{version}.tar.gz
-# Source0-md5: 61a5c5b6b76de70efd0bf2335b470f99
+# Source0-md5: 5ab80fad5534e04b1b2c8affe65e9eae
Patch0: %{name}-home_etc.patch
Patch1: %{name}-missing_includes.patch
Patch2: %{name}-info.patch
%defattr(644,root,root,755)
%doc AUTHORS ChangeLog NEWS README
%attr(755,root,root) %{_bindir}/*
+%{_mandir}/man1/*
%{_infodir}/*.info*