rpms/gnucap/devel gnucap-0.35-gcc43.patch, NONE, 1.1 gnucap.spec, 1.4, 1.5
Hans de Goede (jwrdegoede)
fedora-extras-commits at redhat.com
Tue Jan 8 21:40:52 UTC 2008
Author: jwrdegoede
Update of /cvs/extras/rpms/gnucap/devel
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv17093
Modified Files:
gnucap.spec
Added Files:
gnucap-0.35-gcc43.patch
Log Message:
* Tue Jan 8 2008 Hans de Goede <j.w.r.degoede at hhs.nl> 0.35-3
- Fix building with gcc 4.3
gnucap-0.35-gcc43.patch:
--- NEW FILE gnucap-0.35-gcc43.patch ---
--- gnucap-0.35/modelgen/ap.h 2006-08-28 08:15:43.000000000 +0200
+++ gnucap-0.35.new/modelgen/ap.h 2008-01-08 22:28:50.000000000 +0100
@@ -24,6 +24,7 @@
//testing=script,sparse 2006.07.17
#ifndef AP_H
#define AP_H
+#include <string.h>
#include "md.h"
/*--------------------------------------------------------------------------*/
enum AP_MOD{
--- gnucap-0.35/src/ap.h 2006-08-28 08:15:43.000000000 +0200
+++ gnucap-0.35.new/src/ap.h 2008-01-08 22:29:01.000000000 +0100
@@ -24,6 +24,7 @@
//testing=script,sparse 2006.07.17
#ifndef AP_H
#define AP_H
+#include <string.h>
#include "md.h"
/*--------------------------------------------------------------------------*/
enum AP_MOD{
--- gnucap-0.35/src/e_base.h 2006-08-28 08:15:43.000000000 +0200
+++ gnucap-0.35.new/src/e_base.h 2008-01-08 22:29:59.000000000 +0100
@@ -24,6 +24,7 @@
//testing=script,complete 2006.07.12
#ifndef E_BASE_H
#define E_BASE_H
+#include <strings.h>
#include "l_compar.h"
#include "u_opt.h"
#include "u_status.h"
--- gnucap-0.35/src/io_findf.cc 2006-08-28 08:15:43.000000000 +0200
+++ gnucap-0.35.new/src/io_findf.cc 2008-01-08 22:33:15.000000000 +0100
@@ -32,6 +32,7 @@
* PATHSEP, ENDDIR are system dependent, defined in md.h
*/
//testing=script,sparse 2006.07.17
+#include <string.h>
#include "l_lib.h"
/*--------------------------------------------------------------------------*/
std::string findfile(const std::string& filename, const std::string& path,
--- gnucap-0.35/src/io_getln.cc 2006-08-28 08:15:43.000000000 +0200
+++ gnucap-0.35.new/src/io_getln.cc 2008-01-08 22:32:51.000000000 +0100
@@ -27,6 +27,7 @@
* start with + is extension line, spice compatibility.
*/
//testing=script 2006.07.17
+#include <string.h>
#include "l_lib.h"
/*--------------------------------------------------------------------------*/
std::string getlines(FILE *fileptr)
--- gnucap-0.35/src/io_out.cc 2006-08-28 08:15:43.000000000 +0200
+++ gnucap-0.35.new/src/io_out.cc 2008-01-08 22:33:34.000000000 +0100
@@ -31,6 +31,7 @@
* but I have yet to find a system that did not meet this form.
*/
//testing=script,sparse 2006.07.17
+#include <string.h>
#include "u_opt.h"
/*--------------------------------------------------------------------------*/
const char* octal(int x);
--- gnucap-0.35/src/l_ftos.cc 2006-08-28 08:15:43.000000000 +0200
+++ gnucap-0.35.new/src/l_ftos.cc 2008-01-08 22:33:53.000000000 +0100
@@ -37,6 +37,7 @@
* after that, the space is overwritten, every POOLSIZE calls
*/
//testing=script 2005.10.11
+#include <string.h>
#include "l_lib.h"
#include "constant.h"
/*--------------------------------------------------------------------------*/
--- gnucap-0.35/src/l_timer.cc 2006-08-28 08:15:43.000000000 +0200
+++ gnucap-0.35.new/src/l_timer.cc 2008-01-08 22:34:16.000000000 +0100
@@ -22,6 +22,7 @@
* Time a command, or whatever
*/
//testing=script,sparse 2006.07.13
+#include <string.h>
#include "l_timer.h"
/*--------------------------------------------------------------------------*/
// TIMER::TIMER();
--- gnucap-0.35/src/main.cc 2006-09-20 19:18:52.000000000 +0200
+++ gnucap-0.35.new/src/main.cc 2008-01-08 22:31:35.000000000 +0100
@@ -23,6 +23,7 @@
* it all starts here
*/
//testing=script 2006.07.14
+#include <strings.h>
#include "patchlev.h"
#include "c_comand.h"
#include "declare.h" /* lots */
--- gnucap-0.35/src/plot.cc 2006-08-28 08:15:43.000000000 +0200
+++ gnucap-0.35.new/src/plot.cc 2008-01-08 22:34:56.000000000 +0100
@@ -2,6 +2,7 @@
* (this file is a mess. it should be redone.)
*/
//testing=script 2006.07.17
+#include <string.h>
#include "declare.h" /* self */
#include "s__.h"
#include "u_prblst.h"
Index: gnucap.spec
===================================================================
RCS file: /cvs/extras/rpms/gnucap/devel/gnucap.spec,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -r1.4 -r1.5
--- gnucap.spec 7 Aug 2007 21:00:19 -0000 1.4
+++ gnucap.spec 8 Jan 2008 21:40:13 -0000 1.5
@@ -1,12 +1,13 @@
Name: gnucap
Version: 0.35
-Release: 2%{?dist}
+Release: 3%{?dist}
Summary: The Gnu Circuit Analysis Package
Group: Applications/Engineering
License: GPLv2+
URL: http://www.geda.seul.org/tools/gnucap
Source0: http://www.geda.seul.org/tools/gnucap/archive/%{name}-%{version}.tar.gz
Patch0: gnucap-0.34-debian.patch
+Patch1: gnucap-0.35-gcc43.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires: readline-devel
@@ -23,6 +24,7 @@
%prep
%setup -q
%patch0 -p1
+%patch1 -p1
# use ncurses instead of termcap (bz 226771)
sed -i 's/-ltermcap/-lncurses/g' configure
@@ -56,6 +58,9 @@
%changelog
+* Tue Jan 8 2008 Hans de Goede <j.w.r.degoede at hhs.nl> 0.35-3
+- Fix building with gcc 4.3
+
* Tue Aug 7 2007 Hans de Goede <j.w.r.degoede at hhs.nl> 0.35-2
- Update License tag for new Licensing Guidelines compliance
More information about the fedora-extras-commits
mailing list