From 56ae83d54fd78aa23d570fb86cfd50ddeb265b69 Mon Sep 17 00:00:00 2001 From: Guy Martin Date: Mon, 11 Oct 2004 21:15:51 +0000 Subject: Added a alignement fix for hppa. Stable on hppa. --- dev-db/sqlite/ChangeLog | 5 ++++- dev-db/sqlite/files/sqlite-2.8.15-alignement-fix.patch | 12 ++++++++++++ dev-db/sqlite/sqlite-2.8.15.ebuild | 14 ++++++++++++-- 3 files changed, 28 insertions(+), 3 deletions(-) create mode 100644 dev-db/sqlite/files/sqlite-2.8.15-alignement-fix.patch (limited to 'dev-db') diff --git a/dev-db/sqlite/ChangeLog b/dev-db/sqlite/ChangeLog index f6c5f4c2a865..c749ad1dfb6c 100644 --- a/dev-db/sqlite/ChangeLog +++ b/dev-db/sqlite/ChangeLog @@ -1,6 +1,9 @@ # ChangeLog for dev-db/sqlite # Copyright 2002-2004 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/dev-db/sqlite/ChangeLog,v 1.47 2004/10/09 18:14:39 weeve Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-db/sqlite/ChangeLog,v 1.48 2004/10/11 21:15:51 gmsoft Exp $ + + 11 Oct 2004; Guy Martin sqlite-2.8.15.ebuild: + Added a alignement fix for hppa. Stable on hppa. 09 Oct 2004; Jason Wever sqlite-3.0.7.ebuild: Added ~sparc keyword. diff --git a/dev-db/sqlite/files/sqlite-2.8.15-alignement-fix.patch b/dev-db/sqlite/files/sqlite-2.8.15-alignement-fix.patch new file mode 100644 index 000000000000..9420d1d277d1 --- /dev/null +++ b/dev-db/sqlite/files/sqlite-2.8.15-alignement-fix.patch @@ -0,0 +1,12 @@ +diff -uNr sqlite.orig/src/vdbeInt.h sqlite/src/vdbeInt.h +--- sqlite.orig/src/vdbeInt.h 2004-10-16 01:33:02.779442000 +0200 ++++ sqlite/src/vdbeInt.h 2004-10-16 01:35:01.139442000 +0200 +@@ -115,7 +115,7 @@ + int flags; /* Some combination of MEM_Null, MEM_Str, MEM_Dyn, etc. */ + double r; /* Real value */ + char *z; /* String value */ +- char zShort[NBFS]; /* Space for short strings */ ++ char zShort[NBFS]; __attribute__ ((__aligned__(16))); /* Space for short strings */ + }; + typedef struct Mem Mem; + diff --git a/dev-db/sqlite/sqlite-2.8.15.ebuild b/dev-db/sqlite/sqlite-2.8.15.ebuild index 947c7760e5ff..c35320860e68 100644 --- a/dev-db/sqlite/sqlite-2.8.15.ebuild +++ b/dev-db/sqlite/sqlite-2.8.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/dev-db/sqlite/sqlite-2.8.15.ebuild,v 1.4 2004/09/25 07:46:06 vapier Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-db/sqlite/sqlite-2.8.15.ebuild,v 1.5 2004/10/11 21:15:51 gmsoft Exp $ + +inherit eutils IUSE="nls" @@ -12,7 +14,15 @@ DEPEND="virtual/libc dev-lang/tcl" SLOT="0" LICENSE="as-is" -KEYWORDS="~x86 ~ppc ~sparc ~alpha ~arm ~mips ~hppa ~ppc64 ~amd64 macos ppc-macos" +KEYWORDS="~x86 ~ppc ~sparc ~alpha ~arm ~mips hppa ~ppc64 ~amd64 macos ppc-macos" + +src_unpack() { + + unpack ${A} + + use hppa && epatch ${FILESDIR}/${P}-alignement-fix.patch + +} src_compile() { local myconf -- cgit v1.2.3-65-gdbad