Update of /cvsroot/fink/dists/10.4/stable/main/finkinfo/database
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv21747
Added Files:
sqlite3.info sqlite3.patch
Log Message:
RR confirmed sqlite3 works => stable
--- NEW FILE: sqlite3.patch ---
--- sqlite-2.8.16.orig/Makefile.in 2005-02-14 01:22:04.000000000 +0100
+++ sqlite-2.8.16/Makefile.in 2005-12-16 07:04:22.000000000 +0100
@@ -228,7 +228,7 @@
# of the most recently modified source code file
#
last_change: $(SRC)
- cat $(SRC) | grep '$$Id: ' | sort +4 | tail -1 \
+ cat $(SRC) | grep '$$Id: ' | sort -k 5 | tail -n 1 \
| awk '{print $$5,$$6}' >last_change
libsqlite.la: $(LIBOBJ)
##
## Prevent link time warnings with multiply defined symbols when these
## two binaries linking against libsqlite3.dylib. Instead, force a
## link against libsqlite3.a.
##
diff -ru sqlite-3.2.7.orig/Makefile.in sqlite-3.2.7/Makefile.in
--- sqlite-3.2.7.orig/Makefile.in 2005-09-17 09:34:54.000000000 -0700
+++ sqlite-3.2.7/Makefile.in 2005-11-08 22:09:06.000000000 -0800
@@ -419,12 +419,12 @@
libsqlite3.la $(LIBTCL)
testfixture$(TEXE): $(TOP)/src/tclsqlite.c libsqlite3.la $(TESTSRC)
- $(LTLINK) -DTCLSH=1 -DSQLITE_TEST=1 $(TEMP_STORE) \
+ $(LTLINK) -static -DTCLSH=1 -DSQLITE_TEST=1 $(TEMP_STORE) \
-o testfixture $(TESTSRC) $(TOP)/src/tclsqlite.c \
libsqlite3.la $(LIBTCL)
crashtest$(TEXE): $(TOP)/src/tclsqlite.c libsqlite3.la $(TESTSRC)
$(TOP)/src/os_test.c
- $(LTLINK) -DOS_TEST=1 -DTCLSH=1 -DSQLITE_TEST=1 \
+ $(LTLINK) -static -DOS_TEST=1 -DTCLSH=1 -DSQLITE_TEST=1 \
-o crashtest \
$(TESTSRC) $(TOP)/src/os_test.c $(TOP)/src/tclsqlite.c \
libsqlite3.la $(LIBTCL)
##
## This patch was taken from Ubuntu's sqlite-2.8.16-1 package.
##
diff -ruN sqlite/tool/lemon.c sqlite-new/tool/lemon.c
--- sqlite-2.8.16.orig/tool/lemon.c 2004-04-24 14:59:13.000000000 +0200
+++ sqlite-2.8.16/tool/lemon.c 2004-07-27 15:31:40.000000000 +0200
@@ -1272,15 +1272,15 @@
va_start(ap, format);
/* Prepare a prefix to be prepended to every output line */
if( lineno>0 ){
- sprintf(prefix,"%.*s:%d: ",PREFIXLIMIT-10,filename,lineno);
+ snprintf(prefix,sizeof prefix,"%.*s:%d: ",PREFIXLIMIT-10,filename,lineno);
}else{
- sprintf(prefix,"%.*s: ",PREFIXLIMIT-10,filename);
+ snprintf(prefix,sizeof prefix,"%.*s: ",PREFIXLIMIT-10,filename);
}
prefixsize = strlen(prefix);
availablewidth = LINEWIDTH - prefixsize;
/* Generate the error message */
- vsprintf(errmsg,format,ap);
+ vsnprintf(errmsg,sizeof errmsg,format,ap);
va_end(ap);
errmsgsize = strlen(errmsg);
/* Remove trailing '\n's from the error message. */
@@ -2675,7 +2675,7 @@
while( cfp ){
char buf[20];
if( cfp->dot==cfp->rp->nrhs ){
- sprintf(buf,"(%d)",cfp->rp->index);
+ snprintf(buf,sizeof buf,"(%d)",cfp->rp->index);
fprintf(fp," %5s ",buf);
}else{
fprintf(fp," ");
@@ -2721,7 +2721,7 @@
c = *cp;
*cp = 0;
path = (char *)malloc( strlen(argv0) + strlen(name) + 2 );
- if( path ) sprintf(path,"%s/%s",argv0,name);
+ if( path ) snprintf(path,sizeof path,"%s/%s",argv0,name);
*cp = c;
}else{
extern char *getenv();
@@ -2734,7 +2734,7 @@
if( cp==0 ) cp = &pathlist[strlen(pathlist)];
c = *cp;
*cp = 0;
- sprintf(path,"%s/%s",pathlist,name);
+ snprintf(path,sizeof path,"%s/%s",pathlist,name);
*cp = c;
if( c==0 ) pathlist = "";
else pathlist = &cp[1];
@@ -2814,14 +2814,16 @@
cp = strrchr(lemp->filename,'.');
if( cp ){
- sprintf(buf,"%.*s.lt",(int)(cp-lemp->filename),lemp->filename);
+ snprintf(buf,sizeof buf,"%.*s.lt",(int)(cp-lemp->filename),lemp->filename);
}else{
- sprintf(buf,"%s.lt",lemp->filename);
+ snprintf(buf,sizeof buf,"%s.lt",lemp->filename);
}
if( access(buf,004)==0 ){
tpltname = buf;
}else if( access(templatename,004)==0 ){
tpltname = templatename;
+ }else if( access("/usr/share/lemon/lempar.c",004)==0 ){
+ tpltname = "/usr/share/lemon/lempar.c";
}else{
tpltname = pathsearch(lemp->argv0,templatename,0);
}
@@ -2833,7 +2835,7 @@
}
in = fopen(tpltname,"r");
if( in==0 ){
- fprintf(stderr,"Can't open the template file \"%s\".\n",templatename);
+ fprintf(stderr,"Can't open the template file \"%s\".\n",tpltname);
lemp->errorcnt++;
return 0;
}
@@ -3447,7 +3449,7 @@
/* Generate a table containing the symbolic name of every symbol
*/
for(i=0; i<lemp->nsymbol; i++){
- sprintf(line,"\"%s\",",lemp->symbols[i]->name);
+ snprintf(line,sizeof line,"\"%s\",",lemp->symbols[i]->name);
fprintf(out," %-15s",line);
if( (i&3)==3 ){ fprintf(out,"\n"); lineno++; }
}
@@ -3562,7 +3564,7 @@
in = file_open(lemp,".h","r");
if( in ){
for(i=1; i<lemp->nterminal && fgets(line,LINESIZE,in); i++){
- sprintf(pattern,"#define %s%-30s %2d\n",prefix,lemp->symbols[i]->name,i);
+ snprintf(pattern,sizeof pattern,"#define %s%-30s
%2d\n",prefix,lemp->symbols[i]->name,i);
if( strcmp(line,pattern) ) break;
}
fclose(in);
--- NEW FILE: sqlite3.info ---
Package: sqlite3
Version: 3.2.8
Revision: 1001
Description: Embedded SQL database, version 3
DescDetail: <<
SQLite is a C library that implements an embeddable SQL database engine.
Programs that link with the SQLite library can have SQL database access
without running a separate RDBMS process. The distribution comes with a
standalone command-line access program ( sqlite ) that can be used to
administer an SQLite database and which serves as an example of how to
use the SQLite library.
<<
License: Public Domain
Maintainer: Dave Vasilevsky <[EMAIL PROTECTED]>
Homepage: http://www.sqlite.org/
DocFiles: README VERSION www/copyright-release.html LICENSE
Depends: %N-shlibs (= %v-%r), readline5-shlibs (>= 5.0-1004)
BuildDepends: readline5 (>= 5.0-1004), libncurses5 (>= 5.4-20041023-1006),
tcltk (<< 8.5), tcltk-dev (<< 8.5)
# Does NOT conflict with package sqlite
# Patch so that 'make test' works and the lemon binary is buffer overflow
# safe if we ever decide to install at (Debian and Ubuntu installs it).
Patch: %n.patch
PatchScript: head -n 10 src/sqlite.h.in > LICENSE
ConfigureParams: --with-tcl=%p/lib --enable-threadsafe
CompileScript: <<
#!/bin/sh -ev
config_TARGET_READLINE_LIBS='-L%p/lib -lreadline -lncurses' \
./configure %c
make
make doc
# Don't actually run the test suite, it's LONG
# make fulltest
<<
InstallScript: <<
#!/bin/sh -ev
TCLLIBPATH=%p/lib/tcl8.4 make install DESTDIR=%d
perl -i -pe 's,%i,%p,g' %i/lib/tcl8.4/sqlite3/pkgIndex.tcl
<<
SetCPPFLAGS: -I%p/include/readline
SetCFLAGS: -Os
Source: http://sqlite.org/sqlite-%v.tar.gz
Source-MD5: 9f2c014aaa46565b8163e047166a5686
SplitOff: <<
Package: %N-shlibs
Description: Embedded SQL database (shared libraries)
DocFiles: README VERSION www/copyright-release.html LICENSE
Shlibs: %p/lib/libsqlite3.0.dylib 9.0.0 %n (>= 3.0.8-1)
Files: lib/libsqlite3.0.8.6.dylib lib/libsqlite3.0.dylib
<<
SplitOff2: <<
Package: %N-dev
Description: Embedded SQL database (include files and linkable libraries)
Depends: %N-shlibs (= %v-%r)
# Does NOT conflict with sqlite-dev, strangely enough
DocFiles: README VERSION www/copyright-release.html LICENSE
BuildDependsOnly: True
Files: <<
include
lib/libsqlite3.la
lib/libsqlite3.a
lib/libsqlite3.dylib
lib/pkgconfig
<<
<<
SplitOff3: <<
Package: %N-tcl
Description: Embedded SQL database (Tcl/Tk bindings)
Depends: %N-shlibs (= %v-%r), tcltk (<< 8.5)
Conflicts: %N-tcltk
Replaces: %N-tcltk
DocFiles: README VERSION www/copyright-release.html LICENSE
Shlibs: %p/lib/tcl8.4/sqlite3/libtclsqlite3.dylib 9.0.0 %n (>= 3.2.2-11)
Files: lib/tcl8.4
<<
SplitOff4: <<
Package: %N-doc
Description: Embedded SQL database (HTML documentation)
DocFiles: doc/* README VERSION www/copyright-release.html LICENSE
<<
-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
Fink-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/fink-commits