Update of /cvsroot/monetdb/MonetDB4/src/modules/plain
In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv17870/src/modules/plain
Modified Files:
upgrade.mx
Log Message:
Updates to the .spec files to be ever so slightly more compatible with
the Fedora packaging guidelines.
Use %configure instead of ./configure. This implies removing the
--prefix, --bindir, etc. options. This also implies that the compiler
will be called with -D_FORTIFY_SOURCE=2 which makes that the compiler
is even stricter than before. So we do that now as well.
Some fixes to get things compiled with -D_FORTIFY_SOURCE=2. Mostly,
we need to do something with the result of functions such as fwrite,
fread, ftruncate, system.
Added descriptions to all packages.
Created a MonetDB-testing package.
Enabled the MonetDB-SQL-devel package.
When creating the tar balls, remove extraneous execute bits, and don't
include files that are generated by configure (i.e. files for which
there is a corresponding .in file).
Index: upgrade.mx
===================================================================
RCS file: /cvsroot/monetdb/MonetDB4/src/modules/plain/upgrade.mx,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -d -r1.4 -r1.5
--- upgrade.mx 19 Apr 2007 01:48:31 -0000 1.4
+++ upgrade.mx 5 Sep 2007 17:06:06 -0000 1.5
@@ -355,7 +355,10 @@
}
buf = GDKmalloc(64*BUFSIZ);
while( (res = fread(buf, 1, 64*BUFSIZ, srcfp)) > 0) {
- fwrite(buf, 1, res, dstfp);
+ if (fwrite(buf, 1, res, dstfp) < res) {
+ GDKerror("error writing %s\n", dstpath);
+ return -1;
+ }
if (res < (64*BUFSIZ))
break;
}
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Monetdb-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/monetdb-checkins