diff options
author | Tim Yamin <plasmaroo@gentoo.org> | 2004-12-29 15:57:02 +0000 |
---|---|---|
committer | Tim Yamin <plasmaroo@gentoo.org> | 2004-12-29 15:57:02 +0000 |
commit | e6b500a499f0a7f7ed5ebdf98457c98643db2934 (patch) | |
tree | d7525964c7ad469bcb66840554acbc41960ba7f4 /sci-electronics/ng-spice-rework | |
parent | Marked ~amd64, resolves #75728. (Manifest recommit) (diff) | |
download | gentoo-2-e6b500a499f0a7f7ed5ebdf98457c98643db2934.tar.gz gentoo-2-e6b500a499f0a7f7ed5ebdf98457c98643db2934.tar.bz2 gentoo-2-e6b500a499f0a7f7ed5ebdf98457c98643db2934.zip |
Fixing GCC 3.4 compile issues; bug #75901.
Diffstat (limited to 'sci-electronics/ng-spice-rework')
3 files changed, 52 insertions, 2 deletions
diff --git a/sci-electronics/ng-spice-rework/ChangeLog b/sci-electronics/ng-spice-rework/ChangeLog index dd6ff9f7ea60..dc6f1bbebd3a 100644 --- a/sci-electronics/ng-spice-rework/ChangeLog +++ b/sci-electronics/ng-spice-rework/ChangeLog @@ -1,6 +1,10 @@ # ChangeLog for sci-electronics/ng-spice-rework # Copyright 2000-2004 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/sci-electronics/ng-spice-rework/ChangeLog,v 1.2 2004/12/27 21:04:14 swegener Exp $ +# $Header: /var/cvsroot/gentoo-x86/sci-electronics/ng-spice-rework/ChangeLog,v 1.3 2004/12/29 15:57:02 plasmaroo Exp $ + + 29 Dec 2004; <plasmaroo@gentoo.org> ng-spice-rework-15.ebuild, + +files/ng-spice-rework-15.gcc-3.4.patch: + Fixing GCC 3.4 compile issues; bug #75901. *ng-spice-rework-15 (27 Dec 2004) diff --git a/sci-electronics/ng-spice-rework/files/ng-spice-rework-15.gcc-3.4.patch b/sci-electronics/ng-spice-rework/files/ng-spice-rework-15.gcc-3.4.patch new file mode 100644 index 000000000000..cd9f6ba49ad8 --- /dev/null +++ b/sci-electronics/ng-spice-rework/files/ng-spice-rework-15.gcc-3.4.patch @@ -0,0 +1,37 @@ +--- src/frontend/control.c.old 2004-12-29 13:53:16.012519944 +0000 ++++ src/frontend/control.c 2004-12-29 13:53:17.683265952 +0000 +@@ -818,6 +818,17 @@ + return (0); /* va: which value? */ + } + ++/* va: This totally frees the control structures */ ++void cp_free_control(void) ++{ ++ int i; ++ ++ for (i=stackp; i>=0; i--) ctl_free(control[i]); ++ ++ control[0] = cend[0] = NULL; ++ stackp = 0; ++} ++ + /* This blows away the control structures... */ + void + cp_resetcontrol(void) +@@ -878,16 +889,3 @@ + cend[stackp] = cend[stackp]->co_parent; + return; + } +- +- +-/* va: This totally frees the control structures */ +-void cp_free_control(void) +-{ +- int i; +- +- for (i=stackp; i>=0; i--) ctl_free(control[i]); +- +- control[0] = cend[0] = NULL; +- stackp = 0; +-} +- diff --git a/sci-electronics/ng-spice-rework/ng-spice-rework-15.ebuild b/sci-electronics/ng-spice-rework/ng-spice-rework-15.ebuild index 5520710177a6..b1aefe9d838b 100644 --- a/sci-electronics/ng-spice-rework/ng-spice-rework-15.ebuild +++ b/sci-electronics/ng-spice-rework/ng-spice-rework-15.ebuild @@ -1,6 +1,8 @@ # Copyright 1999-2004 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/sci-electronics/ng-spice-rework/ng-spice-rework-15.ebuild,v 1.1 2004/12/27 20:05:13 ribosome Exp $ +# $Header: /var/cvsroot/gentoo-x86/sci-electronics/ng-spice-rework/ng-spice-rework-15.ebuild,v 1.2 2004/12/29 15:57:02 plasmaroo Exp $ + +inherit eutils DESCRIPTION="NGSpice - The Next Generation Spice (Circuit Emulator)" SRC_URI="http://www.geda.seul.org/dist/ngspice-rework${PV}.tgz" @@ -13,6 +15,13 @@ KEYWORDS="~x86 ~ppc" DEPEND=">=sys-libs/glibc-2.1.3" +src_unpack() { + unpack ${A} + + cd ${S} + epatch ${FILESDIR}/${P}.gcc-3.4.patch +} + src_compile() { econf || die emake || die |