summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSamuli Suominen <ssuominen@gentoo.org>2010-06-01 11:59:38 +0000
committerSamuli Suominen <ssuominen@gentoo.org>2010-06-01 11:59:38 +0000
commitb4cad0b64535d0dc4b1ef3a020c9ad51e01113ea (patch)
tree7f762eabeec1272cc6dbe92d39c2cd1c5d39c127 /sci-electronics
parentDelete calls to deprecated python_version(). Properly call python_mod_optimiz... (diff)
downloadhistorical-b4cad0b64535d0dc4b1ef3a020c9ad51e01113ea.tar.gz
historical-b4cad0b64535d0dc4b1ef3a020c9ad51e01113ea.tar.bz2
historical-b4cad0b64535d0dc4b1ef3a020c9ad51e01113ea.zip
Fix building with GCC 4.5+ wrt #319361 by Kacper Kowalik.
Package-Manager: portage-2.2_rc67/cvs/Linux x86_64
Diffstat (limited to 'sci-electronics')
-rw-r--r--sci-electronics/iverilog/ChangeLog6
-rw-r--r--sci-electronics/iverilog/Manifest9
-rw-r--r--sci-electronics/iverilog/files/iverilog-0.8.2-gcc-4.10.patch11
-rw-r--r--sci-electronics/iverilog/files/iverilog-0.9.1-gcc45.patch37
-rw-r--r--sci-electronics/iverilog/files/iverilog-gcc43.patch177
-rw-r--r--sci-electronics/iverilog/iverilog-0.8.6.ebuild49
-rw-r--r--sci-electronics/iverilog/iverilog-0.9.1.ebuild4
7 files changed, 48 insertions, 245 deletions
diff --git a/sci-electronics/iverilog/ChangeLog b/sci-electronics/iverilog/ChangeLog
index 61a6b0de0958..6fa8783a5819 100644
--- a/sci-electronics/iverilog/ChangeLog
+++ b/sci-electronics/iverilog/ChangeLog
@@ -1,6 +1,10 @@
# ChangeLog for sci-electronics/iverilog
# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/sci-electronics/iverilog/ChangeLog,v 1.32 2010/05/09 17:37:34 armin76 Exp $
+# $Header: /var/cvsroot/gentoo-x86/sci-electronics/iverilog/ChangeLog,v 1.33 2010/06/01 11:59:38 ssuominen Exp $
+
+ 01 Jun 2010; Samuli Suominen <ssuominen@gentoo.org> iverilog-0.9.1.ebuild,
+ +files/iverilog-0.9.1-gcc45.patch:
+ Fix building with GCC 4.5+ wrt #319361 by Kacper Kowalik.
09 May 2010; Raúl Porcel <armin76@gentoo.org> iverilog-0.9.1.ebuild:
sparc stable wrt #302500
diff --git a/sci-electronics/iverilog/Manifest b/sci-electronics/iverilog/Manifest
index 9bc3e3541baa..d7d2d7bd9b3c 100644
--- a/sci-electronics/iverilog/Manifest
+++ b/sci-electronics/iverilog/Manifest
@@ -1,8 +1,5 @@
-AUX iverilog-0.8.2-gcc-4.10.patch 520 RMD160 0c5a5add0bce6e1d28ddd3bb08b62357dedd4258 SHA1 36856aa13041ed1d7d0e62a29b206eada1eedb2f SHA256 73765dbafbb7b0f46e2ce66424bb138569f47862279921e426edb75f16dd22fd
-AUX iverilog-gcc43.patch 5851 RMD160 7b62580712893d0997ee7f5170d9bd514a5182ea SHA1 4edcd74164c45f321ab74677a375034e06b03b45 SHA256 b64aa2030dc8b7cc9dffbe4d78bfb918e89164d95b221dba429acc6af2df38d8
-DIST verilog-0.8.6.tar.gz 1537422 RMD160 11ebb11ff99cb23aff481ddcd274eb50d117ee87 SHA1 9dae58fb8268d7f897b6d9f8056b5ec03dd666f7 SHA256 3cc18593291cd203a3fd50d218a1d293530dd4c20397217024d937e9976c16ef
+AUX iverilog-0.9.1-gcc45.patch 1132 RMD160 a1fe2772fa62126d9674e8b753c8ab8b398a4325 SHA1 c4b51c9d6f869e0e1f3aefd69a3a7d6c64c513c2 SHA256 217ef2b9c6d434c3dc5f79d27a185b12e291670007ef7f45a5cf3fc2000bb0cd
DIST verilog-0.9.1.tar.gz 1113403 RMD160 1eed8ff116ef81e0f1c6ab98eac58842e4325348 SHA1 dc68169c77ef036de6cf7798c665f1a82a4e4254 SHA256 3fdb95b921a07762ac14376ef802343b707566735b4d1eb2768bc08d955985ea
-EBUILD iverilog-0.8.6.ebuild 1190 RMD160 6cf5e3771fcdbf519491748de9428132b8dc4209 SHA1 24c6993cec938641f59841a8a329d960e51b551b SHA256 7539f44a413855153d129ed222deaeefc245902ee803fa89276774e3a08477c5
-EBUILD iverilog-0.9.1.ebuild 1269 RMD160 f15c41b10c254fb6b740938d42f444eb721cb731 SHA1 a64a6c46ab7501b26370f8a195d9b13d62fb48e1 SHA256 53775a37076736252fe3a719b7d88c152493652af49da8aee4d3e027d450bd37
-MISC ChangeLog 5856 RMD160 a188c7082f0ead281537e744acd6e948b0194ca7 SHA1 ee620b639f22c233402d0e7ae6211aab449f5f62 SHA256 b85f786788bd58f341322783c654bfefa5761d43675bed6a0c9df0e320c209dc
+EBUILD iverilog-0.9.1.ebuild 1311 RMD160 5d0d54ff3a37d91c89dbe6174082b3dadeda230d SHA1 e8c265b281c90aa2d02eaf8c130a8e843a1ca2f9 SHA256 1d4f60261d9c55fcaec1e8f9d7bf2445931601a0930de72ba8c99afc1f9cd148
+MISC ChangeLog 6033 RMD160 573ee79cf777089e78b82d1e5b27a5d5fc712456 SHA1 7d68d4c6853831347eb9a93d6a929ff0b2614724 SHA256 b17c85bea4354a925dc16b76a5f49965fd553f576c33264802e0a55ce135b188
MISC metadata.xml 506 RMD160 48a23b4bf81a7ab0c7e00ed9c3f4e264dc6e4b78 SHA1 bedb493b0943f337c3e2e4af267ee00b56fdf1de SHA256 d1f9a885eabf83550648f0a80a1302bcdd56b36d3d0572f0a91fb5bd9ade0b84
diff --git a/sci-electronics/iverilog/files/iverilog-0.8.2-gcc-4.10.patch b/sci-electronics/iverilog/files/iverilog-0.8.2-gcc-4.10.patch
deleted file mode 100644
index 7a89b40a3363..000000000000
--- a/sci-electronics/iverilog/files/iverilog-0.8.2-gcc-4.10.patch
+++ /dev/null
@@ -1,11 +0,0 @@
---- iverilog-0.8.2/PExpr.h~ 2004-10-04 02:10:51.000000000 +0100
-+++ iverilog-0.8.2/PExpr.h 2006-03-10 18:56:52.000000000 +0000
-@@ -324,7 +324,7 @@
- virtual NetEConst*elaborate_expr(Design*des, NetScope*,
- bool sys_task_arg =false) const;
- virtual NetEConst*elaborate_pexpr(Design*des, NetScope*sc) const;
-- verinum* PEString::eval_const(const Design*, const NetScope*) const;
-+ verinum* eval_const(const Design*, const NetScope*) const;
-
- virtual bool is_constant(Module*) const;
-
diff --git a/sci-electronics/iverilog/files/iverilog-0.9.1-gcc45.patch b/sci-electronics/iverilog/files/iverilog-0.9.1-gcc45.patch
new file mode 100644
index 000000000000..4a6914291a18
--- /dev/null
+++ b/sci-electronics/iverilog/files/iverilog-0.9.1-gcc45.patch
@@ -0,0 +1,37 @@
+Fixing build with gcc 4.5
+
+https://bugs.gentoo.org/show_bug.cgi?id=319361
+
+--- pform_disciplines.cc
++++ pform_disciplines.cc
+@@ -27,8 +27,8 @@
+ map<perm_string,ivl_discipline_t> disciplines;
+ map<perm_string,ivl_nature_t> access_function_nature;
+
+-static perm_string nature_name = perm_string::perm_string();
+-static perm_string nature_access = perm_string::perm_string();
++static perm_string nature_name = perm_string();
++static perm_string nature_access = perm_string();
+
+ void pform_start_nature(const char*name)
+ {
+@@ -82,8 +82,8 @@
+ // expressions that use the access function can find it.
+ access_function_nature[nature_access] = tmp;
+
+- nature_name = perm_string::perm_string();
+- nature_access = perm_string::perm_string();
++ nature_name = perm_string();
++ nature_access = perm_string();
+ }
+
+
+@@ -171,7 +171,7 @@
+ FILE_NAME(tmp, loc);
+
+ /* Clear the static variables for the next item. */
+- discipline_name = perm_string::perm_string();
++ discipline_name = perm_string();
+ discipline_domain = IVL_DIS_NONE;
+ discipline_potential = 0;
+ discipline_flow = 0;
diff --git a/sci-electronics/iverilog/files/iverilog-gcc43.patch b/sci-electronics/iverilog/files/iverilog-gcc43.patch
deleted file mode 100644
index 960ba01c8dc2..000000000000
--- a/sci-electronics/iverilog/files/iverilog-gcc43.patch
+++ /dev/null
@@ -1,177 +0,0 @@
-diff -rup verilog-0.8.6/elab_net.cc verilog-0.8.6-devel/elab_net.cc
---- verilog-0.8.6/elab_net.cc 2007-11-26 19:55:13.000000000 +0100
-+++ verilog-0.8.6-devel/elab_net.cc 2008-01-16 12:02:42.000000000 +0100
-@@ -28,6 +28,7 @@
- # include "compiler.h"
-
- # include <iostream>
-+# include <cstring>
-
- /*
- * This is a state flag that determines whether an elaborate_net must
-diff -rup verilog-0.8.6/elab_scope.cc verilog-0.8.6-devel/elab_scope.cc
---- verilog-0.8.6/elab_scope.cc 2007-11-26 19:55:13.000000000 +0100
-+++ verilog-0.8.6-devel/elab_scope.cc 2008-01-16 12:03:34.000000000 +0100
-@@ -24,6 +24,7 @@
- # include "compiler.h"
- # include <iostream>
- # include <stdio.h>
-+# include <cstring>
-
- /*
- * Elaboration happens in two passes, generally. The first scans the
-diff -rup verilog-0.8.6/elab_sig.cc verilog-0.8.6-devel/elab_sig.cc
---- verilog-0.8.6/elab_sig.cc 2007-11-26 19:55:13.000000000 +0100
-+++ verilog-0.8.6-devel/elab_sig.cc 2008-01-16 12:04:05.000000000 +0100
-@@ -23,6 +23,7 @@
- # include "config.h"
-
- # include <iostream>
-+# include <cstdlib>
-
- # include "Module.h"
- # include "PExpr.h"
-diff -rup verilog-0.8.6/emit.cc verilog-0.8.6-devel/emit.cc
---- verilog-0.8.6/emit.cc 2007-11-26 19:55:13.000000000 +0100
-+++ verilog-0.8.6-devel/emit.cc 2008-01-16 12:04:40.000000000 +0100
-@@ -32,6 +32,7 @@
- # include "netlist.h"
- # include <typeinfo>
- # include <cassert>
-+# include <cstring>
-
- bool NetNode::emit_node(struct target_t*tgt) const
- {
-diff -rup verilog-0.8.6/load_module.cc verilog-0.8.6-devel/load_module.cc
---- verilog-0.8.6/load_module.cc 2007-11-26 19:55:13.000000000 +0100
-+++ verilog-0.8.6-devel/load_module.cc 2008-01-16 12:05:21.000000000 +0100
-@@ -31,6 +31,8 @@
- # include <dirent.h>
- # include <ctype.h>
- # include <assert.h>
-+# include <cstdlib>
-+# include <cstring>
-
- /*
- * The module library items are maps of key names to file name within
-diff -rup verilog-0.8.6/net_design.cc verilog-0.8.6-devel/net_design.cc
---- verilog-0.8.6/net_design.cc 2007-11-26 19:55:13.000000000 +0100
-+++ verilog-0.8.6-devel/net_design.cc 2008-01-16 12:05:46.000000000 +0100
-@@ -33,6 +33,7 @@
- # include "util.h"
- # include "compiler.h"
- # include <sstream>
-+# include <cstring>
-
- Design:: Design()
- : errors(0), nodes_(0), procs_(0), lcounter_(0)
-diff -rup verilog-0.8.6/net_link.cc verilog-0.8.6-devel/net_link.cc
---- verilog-0.8.6/net_link.cc 2007-11-26 19:55:13.000000000 +0100
-+++ verilog-0.8.6-devel/net_link.cc 2008-01-16 12:06:28.000000000 +0100
-@@ -27,6 +27,7 @@
- # include "netlist.h"
- # include <sstream>
- # include <string>
-+# include <cstring>
- # include <typeinfo>
- #ifdef HAVE_MALLOC_H
- # include <malloc.h>
-diff -rup verilog-0.8.6/net_scope.cc verilog-0.8.6-devel/net_scope.cc
---- verilog-0.8.6/net_scope.cc 2007-11-26 19:55:13.000000000 +0100
-+++ verilog-0.8.6-devel/net_scope.cc 2008-01-16 12:06:56.000000000 +0100
-@@ -25,6 +25,7 @@
-
- # include "netlist.h"
- # include <sstream>
-+# include <cstring>
-
- /*
- * The NetScope class keeps a scope tree organized. Each node of the
-diff -rup verilog-0.8.6/pform.h verilog-0.8.6-devel/pform.h
---- verilog-0.8.6/pform.h 2007-11-26 19:55:13.000000000 +0100
-+++ verilog-0.8.6-devel/pform.h 2008-01-16 11:58:59.000000000 +0100
-@@ -37,6 +37,8 @@
- # include <string>
- # include <list>
- # include <stdio.h>
-+# include <cstring>
-+# include <cstdlib>
-
- /*
- * These classes implement the parsed form (P-form for short) of the
-diff -rup verilog-0.8.6/synth2.cc verilog-0.8.6-devel/synth2.cc
---- verilog-0.8.6/synth2.cc 2007-11-26 19:55:13.000000000 +0100
-+++ verilog-0.8.6-devel/synth2.cc 2008-01-16 12:11:00.000000000 +0100
-@@ -28,6 +28,7 @@
- #include <cassert>
- #include "NetLatch.h"
- #include <climits>
-+#include <cstdlib>
-
- #include <new> // standard operator new
- using std::bad_alloc;
-diff -rup verilog-0.8.6/sys_funcs.cc verilog-0.8.6-devel/sys_funcs.cc
---- verilog-0.8.6/sys_funcs.cc 2007-11-26 19:55:13.000000000 +0100
-+++ verilog-0.8.6-devel/sys_funcs.cc 2008-01-16 12:07:31.000000000 +0100
-@@ -23,6 +23,8 @@
- # include "config.h"
- # include "compiler.h"
- # include <stdio.h>
-+# include <cstdlib>
-+# include <cstring>
-
- /*
- * Manage the information about system functions. This information is
-diff -rup verilog-0.8.6/t-dll.cc verilog-0.8.6-devel/t-dll.cc
---- verilog-0.8.6/t-dll.cc 2007-11-26 19:55:13.000000000 +0100
-+++ verilog-0.8.6-devel/t-dll.cc 2008-01-16 12:11:25.000000000 +0100
-@@ -31,7 +31,8 @@
- #ifdef HAVE_MALLOC_H
- # include <malloc.h>
- #endif
--# include <stdlib.h>
-+# include <cstdlib>
-+# include <cstring>
-
- #include <new> // standard operator new
- using std::bad_alloc;
-diff -rup verilog-0.8.6/t-dll-expr.cc verilog-0.8.6-devel/t-dll-expr.cc
---- verilog-0.8.6/t-dll-expr.cc 2007-11-26 19:55:13.000000000 +0100
-+++ verilog-0.8.6-devel/t-dll-expr.cc 2008-01-16 12:11:54.000000000 +0100
-@@ -30,7 +30,8 @@
- #ifdef HAVE_MALLOC_H
- # include <malloc.h>
- #endif
--# include <stdlib.h>
-+# include <cstdlib>
-+# include <cstring>
-
- /*
- * This is a little convenience function for converting a NetExpr
-diff -rup verilog-0.8.6/t-dll-proc.cc verilog-0.8.6-devel/t-dll-proc.cc
---- verilog-0.8.6/t-dll-proc.cc 2007-11-26 19:55:13.000000000 +0100
-+++ verilog-0.8.6-devel/t-dll-proc.cc 2008-01-16 12:12:29.000000000 +0100
-@@ -32,7 +32,8 @@
- #ifdef HAVE_MALLOC_H
- # include <malloc.h>
- #endif
--# include <stdlib.h>
-+# include <cstdlib>
-+# include <cstring>
-
-
- bool dll_target::process(const NetProcTop*net)
-diff -rup verilog-0.8.6/verireal.cc verilog-0.8.6-devel/verireal.cc
---- verilog-0.8.6/verireal.cc 2007-11-26 19:55:13.000000000 +0100
-+++ verilog-0.8.6-devel/verireal.cc 2008-01-16 12:07:58.000000000 +0100
-@@ -24,7 +24,8 @@
-
- # include "verireal.h"
- # include "verinum.h"
--# include <stdlib.h>
-+# include <cstdlib>
-+# include <cstring>
- # include <ctype.h>
- # include <iostream>
- # include <math.h>
-
diff --git a/sci-electronics/iverilog/iverilog-0.8.6.ebuild b/sci-electronics/iverilog/iverilog-0.8.6.ebuild
deleted file mode 100644
index eabc95a63050..000000000000
--- a/sci-electronics/iverilog/iverilog-0.8.6.ebuild
+++ /dev/null
@@ -1,49 +0,0 @@
-# Copyright 1999-2009 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/sci-electronics/iverilog/iverilog-0.8.6.ebuild,v 1.7 2009/10/11 16:17:22 armin76 Exp $
-
-inherit eutils multilib
-
-S="${WORKDIR}/verilog-${PV}"
-
-DESCRIPTION="A Verilog simulation and synthesis tool"
-SRC_URI="ftp://icarus.com/pub/eda/verilog/v${PV:0:3}/verilog-${PV}.tar.gz"
-HOMEPAGE="http://www.icarus.com/eda/verilog/"
-
-DEPEND=""
-RDEPEND=""
-
-LICENSE="GPL-2"
-SLOT="0"
-KEYWORDS="amd64 ppc sparc x86"
-IUSE=""
-
-src_unpack() {
- unpack ${A}
- cd "${S}"
-
- epatch "${FILESDIR}"/iverilog-gcc43.patch
-
- # Fix for bug #172919
- sed -i -e '/# include <asm\/page.h>/d' vvp/main.cc || die "sed failed"
-
- # Fix tests
- mkdir -p lib/ivl
- touch lib/ivl/ivl
- sed -i -e 's/driver\/iverilog -B./IVERILOG_ROOT="." driver\/iverilog -B./' Makefile.in || die
-}
-
-src_install() {
- emake -j1 \
- prefix="${D}"/usr \
- mandir="${D}"/usr/share/man \
- infodir="${D}"/usr/share/info \
- libdir="${D}"/usr/$(get_libdir) \
- libdir64="${D}"/usr/$(get_libdir) \
- vpidir="${D}"/usr/$(get_libdir)/ivl \
- install || die
-
- dodoc *.txt
- insinto /usr/share/doc/${PF}
- doins -r examples
-}
diff --git a/sci-electronics/iverilog/iverilog-0.9.1.ebuild b/sci-electronics/iverilog/iverilog-0.9.1.ebuild
index c860b8c11050..f86678f10399 100644
--- a/sci-electronics/iverilog/iverilog-0.9.1.ebuild
+++ b/sci-electronics/iverilog/iverilog-0.9.1.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/sci-electronics/iverilog/iverilog-0.9.1.ebuild,v 1.5 2010/05/09 17:37:34 armin76 Exp $
+# $Header: /var/cvsroot/gentoo-x86/sci-electronics/iverilog/iverilog-0.9.1.ebuild,v 1.6 2010/06/01 11:59:38 ssuominen Exp $
EAPI="2"
@@ -31,6 +31,8 @@ src_prepare() {
# Fix LDFLAGS
sed -i -e 's/@shared@/@shared@ $(LDFLAGS)/' {cadpli,tgt-vhdl,tgt-null,tgt-stub,tgt-vvp}/Makefile.in || die "sed failed"
+
+ epatch "${FILESDIR}"/${P}-gcc45.patch
}
src_install() {