Update of /cvsroot/monetdb/MonetDB5/src/tools
In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv17975/src/tools

Modified Files:
        monetdb.mx stethoscope.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: stethoscope.mx
===================================================================
RCS file: /cvsroot/monetdb/MonetDB5/src/tools/stethoscope.mx,v
retrieving revision 1.26
retrieving revision 1.27
diff -u -d -r1.26 -r1.27
--- stethoscope.mx      19 Aug 2007 09:49:51 -0000      1.26
+++ stethoscope.mx      5 Sep 2007 17:06:16 -0000       1.27
@@ -388,7 +388,8 @@
                                else 
                                        sprintf(cmd,"cp stet.dat stet_cur.dat");
                        /*      printf("%s \n",cmd);*/
-                               system(cmd); 
+                               if (system(cmd) != 0)
+                                       fprintf(stderr, "command `%s' 
failed\n", cmd);
                        }
                        response = e+1;
                }

Index: monetdb.mx
===================================================================
RCS file: /cvsroot/monetdb/MonetDB5/src/tools/monetdb.mx,v
retrieving revision 1.27
retrieving revision 1.28
diff -u -d -r1.27 -r1.28
--- monetdb.mx  4 Sep 2007 14:01:31 -0000       1.27
+++ monetdb.mx  5 Sep 2007 17:06:16 -0000       1.28
@@ -653,7 +653,8 @@
                        /* to all insanity, .gdk_lock is "valid" if it contains 
a
                         * ':', which it does by pure coincidence of a time 
having a
                         * ':' in there twice... */
-                       fwrite("bla:", 4, 1, f);
+                       if (fwrite("bla:", 1, 4, f) < 4)
+                               fprintf(stderr, "create: failure in writing 
lock file\n");
                        fclose(f);
                        printf("successfully created database '%s'%s\n", dbname,
                                        (maintenance == 1 ? " in maintenance 
mode" : ""));
@@ -789,8 +790,7 @@
                                printf("you are about to remove database 
'%s'\n", dbname);
                                printf("ALL data in this database will get 
lost, "
                                                "are you sure? [y/N] ");
-                               scanf("%c", &answ);
-                               if (answ == 'y' || answ == 'Y') {
+                               if (scanf("%c", &answ) >= 1 && (answ == 'y' || 
answ == 'Y')) {
                                        /* do it! */
                                } else {
                                        printf("battle control terminated\n");


-------------------------------------------------------------------------
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

Reply via email to