summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKeri Harris <keri@gentoo.org>2006-08-15 10:09:21 +0000
committerKeri Harris <keri@gentoo.org>2006-08-15 10:09:21 +0000
commitda3c33caf59d895e53502aa3dff4e40807dee00b (patch)
treedb6469036b3fc520b3de0fcb411e99656f157e7d /dev-lang
parentAssigned to Gentoo VDR Project. (diff)
downloadgentoo-2-da3c33caf59d895e53502aa3dff4e40807dee00b.tar.gz
gentoo-2-da3c33caf59d895e53502aa3dff4e40807dee00b.tar.bz2
gentoo-2-da3c33caf59d895e53502aa3dff4e40807dee00b.zip
Add sparc-alignment patch to resolve bus error in semweb package. Reported, debugged and fixed by Ferris McCormick <fmccor@gentoo.org>
(Portage version: 2.1.1_pre4-r4)
Diffstat (limited to 'dev-lang')
-rw-r--r--dev-lang/swi-prolog/ChangeLog8
-rw-r--r--dev-lang/swi-prolog/files/swi-prolog-packages-sparc-alignment.patch14
-rw-r--r--dev-lang/swi-prolog/swi-prolog-5.6.17.ebuild3
3 files changed, 23 insertions, 2 deletions
diff --git a/dev-lang/swi-prolog/ChangeLog b/dev-lang/swi-prolog/ChangeLog
index 860f0cb59b3f..b6fd16e99181 100644
--- a/dev-lang/swi-prolog/ChangeLog
+++ b/dev-lang/swi-prolog/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for dev-lang/swi-prolog
# Copyright 1999-2006 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-lang/swi-prolog/ChangeLog,v 1.23 2006/08/04 13:26:57 fmccor Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-lang/swi-prolog/ChangeLog,v 1.24 2006/08/15 10:09:21 keri Exp $
+
+ 15 Aug 2006; Keri Harris <keri@gentoo.org>
+ +files/swi-prolog-packages-sparc-alignment.patch,
+ swi-prolog-5.6.17.ebuild:
+ Add sparc-alignment patch to resolve bus error in semweb package. Reported,
+ debugged and fixed by Ferris McCormick <fmccor@gentoo.org>
04 Aug 2006; Ferris McCormick <fmccor@gentoo.org>
swi-prolog-5.6.17.ebuild:
diff --git a/dev-lang/swi-prolog/files/swi-prolog-packages-sparc-alignment.patch b/dev-lang/swi-prolog/files/swi-prolog-packages-sparc-alignment.patch
new file mode 100644
index 000000000000..b73480777523
--- /dev/null
+++ b/dev-lang/swi-prolog/files/swi-prolog-packages-sparc-alignment.patch
@@ -0,0 +1,14 @@
+--- pl-5.6.17.orig/packages/semweb/avl.h 2006-03-07 04:23:47.000000000 +1300
++++ pl-5.6.17/packages/semweb/avl.h 2006-08-15 21:59:09.000000000 +1200
+@@ -58,7 +58,11 @@
+ /* structure for a node in an AVL tree */
+ typedef struct avl_node
+ { struct avl_node *subtree[2]; /* LEFT and RIGHT subtrees */
++#ifndef __sparc__
+ short bal; /* balance factor */
++#else
++ long bal; /* balance factor */
++#endif
+ char data[1]; /* data on my back */
+ } AVLnode, *AVLtree;
+
diff --git a/dev-lang/swi-prolog/swi-prolog-5.6.17.ebuild b/dev-lang/swi-prolog/swi-prolog-5.6.17.ebuild
index d3cc7ba8ded0..54f024bde9b6 100644
--- a/dev-lang/swi-prolog/swi-prolog-5.6.17.ebuild
+++ b/dev-lang/swi-prolog/swi-prolog-5.6.17.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-lang/swi-prolog/swi-prolog-5.6.17.ebuild,v 1.2 2006/08/04 13:26:57 fmccor Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-lang/swi-prolog/swi-prolog-5.6.17.ebuild,v 1.3 2006/08/15 10:09:21 keri Exp $
inherit autotools eutils flag-o-matic
@@ -50,6 +50,7 @@ src_unpack() {
epatch "${FILESDIR}"/${PN}-packages-jpl-arch.patch
epatch "${FILESDIR}"/${PN}-packages-jpl-install.patch
epatch "${FILESDIR}"/${PN}-packages-ltx2htm.patch
+ epatch "${FILESDIR}"/${PN}-packages-sparc-alignment.patch
epatch "${FILESDIR}"/${PN}-packages-test.patch
fi
}