diff options
author | Michael Cummings <mcummings@gentoo.org> | 2004-10-05 21:26:52 +0000 |
---|---|---|
committer | Michael Cummings <mcummings@gentoo.org> | 2004-10-05 21:26:52 +0000 |
commit | aec2bfc24dda179148e09003476c709f487e1673 (patch) | |
tree | d0e3b2dc075bf7e7dd21824654c634953a890e69 /dev-perl | |
parent | Fixed bug 54242 (diff) | |
download | historical-aec2bfc24dda179148e09003476c709f487e1673.tar.gz historical-aec2bfc24dda179148e09003476c709f487e1673.tar.bz2 historical-aec2bfc24dda179148e09003476c709f487e1673.zip |
sparc fixes
Diffstat (limited to 'dev-perl')
-rw-r--r-- | dev-perl/DBD-SQLite/ChangeLog | 7 | ||||
-rw-r--r-- | dev-perl/DBD-SQLite/DBD-SQLite-1.06.ebuild | 20 | ||||
-rw-r--r-- | dev-perl/DBD-SQLite/Manifest | 15 | ||||
-rw-r--r-- | dev-perl/DBD-SQLite/files/sparc-DBD-SQLite-1.06.patch | 49 |
4 files changed, 84 insertions, 7 deletions
diff --git a/dev-perl/DBD-SQLite/ChangeLog b/dev-perl/DBD-SQLite/ChangeLog index d33dc7a2f706..9865cd79e009 100644 --- a/dev-perl/DBD-SQLite/ChangeLog +++ b/dev-perl/DBD-SQLite/ChangeLog @@ -1,6 +1,11 @@ # ChangeLog for dev-perl/DBD-SQLite # Copyright 2000-2004 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/dev-perl/DBD-SQLite/ChangeLog,v 1.6 2004/09/22 14:45:39 mcummings Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-perl/DBD-SQLite/ChangeLog,v 1.7 2004/10/05 21:26:52 mcummings Exp $ + + 05 Oct 2004; Michael Cummings <mcummings@gentoo.org> + +files/sparc-DBD-SQLite-1.06.patch, DBD-SQLite-1.06.ebuild: + Fixes for sparc for a clean test/compile. Read notes in ebuild - better + solutions welcome, but these work. *DBD-SQLite-1.06 (22 Sep 2004) diff --git a/dev-perl/DBD-SQLite/DBD-SQLite-1.06.ebuild b/dev-perl/DBD-SQLite/DBD-SQLite-1.06.ebuild index 40f7f1238eab..f10cc377d361 100644 --- a/dev-perl/DBD-SQLite/DBD-SQLite-1.06.ebuild +++ b/dev-perl/DBD-SQLite/DBD-SQLite-1.06.ebuild @@ -1,12 +1,12 @@ # Copyright 1999-2004 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/dev-perl/DBD-SQLite/DBD-SQLite-1.06.ebuild,v 1.1 2004/09/22 14:45:39 mcummings Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-perl/DBD-SQLite/DBD-SQLite-1.06.ebuild,v 1.2 2004/10/05 21:26:52 mcummings Exp $ -inherit perl-module +inherit perl-module eutils DESCRIPTION="Self Contained RDBMS in a DBI Driver" HOMEPAGE="http://search.cpan.org/~msergeant/${P}/" -SRC_URI="http://search.cpan.org/CPAN/authors/id/M/MS/MSERGEANT/${P}.tar.gz" +SRC_URI="mirror://cpan/authors/id/M/MS/MSERGEANT/${P}.tar.gz" LICENSE="Artistic | GPL-2" SLOT="0" @@ -14,5 +14,17 @@ KEYWORDS="~x86 ~sparc ~ppc" IUSE="" SRC_TEST="do" -DEPEND="dev-perl/DBI +DEPEND=">=dev-perl/DBI-1.42 !<dev-perl/DBD-SQLite-1*" + +src_unpack() { + unpack ${A} + cd ${S} + # This horrible patch was gleamed from: + # http://www.sqlite.org/cvstrac/chngview?cn=2002 + # http://www.sqlite.org/cvstrac/tktview?tn=700 + # Any eager C coders out there are welcome to submit a "real" fix + # 2004/Oct/05 mcummings + use sparc && epatch ${FILESDIR}/sparc-DBD-SQLite-1.06.patch + perl-module_src_prep +} diff --git a/dev-perl/DBD-SQLite/Manifest b/dev-perl/DBD-SQLite/Manifest index 942b5815780a..740595b84ed5 100644 --- a/dev-perl/DBD-SQLite/Manifest +++ b/dev-perl/DBD-SQLite/Manifest @@ -1,8 +1,19 @@ -MD5 a33af668eaa879bdee127b043db00878 ChangeLog 1064 +-----BEGIN PGP SIGNED MESSAGE----- +Hash: SHA1 + +MD5 c86681b6c0c22fa58e7709eef7a4373e ChangeLog 1293 MD5 205da88f707f790fe0305eb4c72f8308 DBD-SQLite-0.31.ebuild 535 MD5 f13d3371b0e764682bd68c6dba2e450e DBD-SQLite-1.00.ebuild 564 +MD5 9574554559c95397a832a514e1f7524e DBD-SQLite-1.06.ebuild 918 MD5 e2d8f1bf77722def1dd432e26455c818 metadata.xml 305 -MD5 e8d33a1c1876a202de6efa533b61cc26 DBD-SQLite-1.06.ebuild 564 MD5 e280c8758c69f8650036baf1151f83d3 files/digest-DBD-SQLite-0.31 67 MD5 e44b72f1717f4ca1c7d4e7c2cf8349b4 files/digest-DBD-SQLite-1.00 67 MD5 66df2b2f1a94465a81deccc3f03ba978 files/digest-DBD-SQLite-1.06 67 +MD5 68d2bbb77a78f9c45cba3c995be2c110 files/sparc-DBD-SQLite-1.06.patch 1923 +-----BEGIN PGP SIGNATURE----- +Version: GnuPG v1.2.4 (GNU/Linux) + +iD8DBQFBYxEZtG5z4I8BtQoRAiEbAJ9CoVjDGfsFgJsIAUcf+bLJ8i+Q+QCfbR5t +BJ0k7cWBaRFGYq5YMxvVQKY= +=h2Kz +-----END PGP SIGNATURE----- diff --git a/dev-perl/DBD-SQLite/files/sparc-DBD-SQLite-1.06.patch b/dev-perl/DBD-SQLite/files/sparc-DBD-SQLite-1.06.patch new file mode 100644 index 000000000000..3d4d2409c0cc --- /dev/null +++ b/dev-perl/DBD-SQLite/files/sparc-DBD-SQLite-1.06.patch @@ -0,0 +1,49 @@ +diff -Naurp vdbeInt.h.old vdbeInt.h +--- vdbeInt.h.old 2004-10-05 16:52:42.000000000 -0400 ++++ vdbeInt.h 2004-10-05 16:52:54.000000000 -0400 +@@ -100,7 +100,7 @@ typedef struct Cursor Cursor; + ** layer without having to malloc. NBFS is short for Number of Bytes + ** For Strings. + */ +-#define NBFS 32 ++#define NBFS 15 + + /* + ** Internally, the vdbe manipulates nearly all SQL values as Mem +--- vdbeaux.c.old 2004-10-05 16:32:03.000000000 -0400 ++++ vdbeaux.c 2004-10-05 16:17:40.000000000 -0400 +@@ -574,21 +574,22 @@ void sqlite3VdbeMakeReady( + assert( nVar>=0 ); + n = isExplain ? 10 : p->nOp; + p->aStack = sqliteMalloc( +- n*(sizeof(p->aStack[0])+sizeof(Mem*)) /* aStack, apArg */ +- + nVar*sizeof(Mem) /* aVar */ +- + nVar*sizeof(char*) /* azVar */ +- + nMem*sizeof(Mem) /* aMem */ +- + nCursor*sizeof(Cursor*) /* apCsr */ ++ n*sizeof(p->aStack[0]) /* aStack */ ++ + n*sizeof(Mem*) /* apArg */ ++ + nVar*sizeof(Mem) /* aVar */ ++ + nVar*sizeof(char*) /* azVar */ ++ + nMem*sizeof(Mem) /* aMem */ ++ + nCursor*sizeof(Cursor*) /* apCsr */ + ); + if( !sqlite3_malloc_failed ){ +- p->apArg = (Mem **)&p->aStack[n]; +- p->aVar = (Mem *)&p->apArg[n]; +- p->azVar = (char**)&p->aVar[nVar]; +- p->okVar = 0; +- p->nVar = nVar; +- p->aMem = (Mem*)&p->azVar[nVar]; ++ p->aMem = &p->aStack[n]; + p->nMem = nMem; +- p->apCsr = (Cursor**)&p->aMem[nMem]; ++ p->aVar = &p->aMem[nMem]; ++ p->nVar = nVar; ++ p->okVar = 0; ++ p->apArg = (Mem**)&p->aVar[nVar]; ++ p->azVar = (char**)&p->apArg[n]; ++ p->apCsr = (Cursor**)&p->azVar[nVar]; + p->nCursor = nCursor; + for(n=0; n<nVar; n++){ + p->aVar[n].flags = MEM_Null; |