aboutsummaryrefslogtreecommitdiffstats
path: root/databases/grass/files
diff options
context:
space:
mode:
authorfjoe <fjoe@FreeBSD.org>2004-07-11 19:20:40 +0800
committerfjoe <fjoe@FreeBSD.org>2004-07-11 19:20:40 +0800
commitdd846f1da98038f30b9a7073113c0d6845f8b2e6 (patch)
tree87a5283f72dee7a4c80a23efde4c6879125501d2 /databases/grass/files
parente8b3d78504f97ddbd394cb910c6154a3b23a3190 (diff)
downloadfreebsd-ports-gnome-dd846f1da98038f30b9a7073113c0d6845f8b2e6.tar.gz
freebsd-ports-gnome-dd846f1da98038f30b9a7073113c0d6845f8b2e6.tar.zst
freebsd-ports-gnome-dd846f1da98038f30b9a7073113c0d6845f8b2e6.zip
- Fix build on 5.x (fix compiling with gcc 3.x). This fixes pkg-plist on 5.x.
- Provide really working fix for odbc driver. - Remove locks/%%HOSTNAME%% from pkg-plist -- it is cleaned up in pkg-deinstall. - Bump PORTREVISION.
Diffstat (limited to 'databases/grass/files')
-rw-r--r--databases/grass/files/patch-configure.in15
-rw-r--r--databases/grass/files/patch-src-misc-m.kappa-cmd-prt_hdr.c11
-rw-r--r--databases/grass/files/patch-src-misc-m.kappa-cmd-readin_data.c11
-rw-r--r--databases/grass/files/patch-src-raster-r.in.doq-cmd-get_newhead.c20
-rw-r--r--databases/grass/files/patch-src-raster-wildfire-src-r.ros-spot_dist.c11
-rw-r--r--databases/grass/files/patch-src.garden-grass.postgresql-g.column.pg-main.c40
-rw-r--r--databases/grass/files/patch-src.garden-grass.postgresql-g.stats.pg-infxStats.c24
7 files changed, 130 insertions, 2 deletions
diff --git a/databases/grass/files/patch-configure.in b/databases/grass/files/patch-configure.in
index b67abb9dbe8e..ef3d4c4840c3 100644
--- a/databases/grass/files/patch-configure.in
+++ b/databases/grass/files/patch-configure.in
@@ -1,5 +1,5 @@
---- configure.in.orig Sun Mar 16 07:25:19 2003
-+++ configure.in Mon Mar 22 13:35:29 2004
+--- configure.in.orig Sun Mar 16 18:25:19 2003
++++ configure.in Sun Jul 11 17:55:03 2004
@@ -295,7 +295,7 @@
AC_MSG_ERROR([*** You must supply a directory list to --with-libs.])
;;
@@ -27,6 +27,17 @@
LOC_CHECK_LIBS(GLU,gluBeginCurve,GLU,$OPENGL_LIB_PATH,OPENGLULIB,$OPENGLLIB $X_LIBS $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $MATHLIB,,,-lstdc++)
+@@ -862,8 +862,8 @@
+
+ LOC_CHECK_USE(odbc,ODBC,USE_ODBC)
+
+-ODBCINC=
+-ODBCLIB=
++ODBCINC=%%PTHREAD_CFLAGS%%
++ODBCLIB=%%PTHREAD_LIBS%%
+
+ if test -n "$USE_ODBC"; then
+
@@ -1054,7 +1054,7 @@
LOC_CHECK_INC_PATH(freetype,FreeType,FTINC)
diff --git a/databases/grass/files/patch-src-misc-m.kappa-cmd-prt_hdr.c b/databases/grass/files/patch-src-misc-m.kappa-cmd-prt_hdr.c
new file mode 100644
index 000000000000..158ba7958edd
--- /dev/null
+++ b/databases/grass/files/patch-src-misc-m.kappa-cmd-prt_hdr.c
@@ -0,0 +1,11 @@
+--- src/misc/m.kappa/cmd/prt_hdr.c.orig Sun Jul 11 17:16:19 2004
++++ src/misc/m.kappa/cmd/prt_hdr.c Sun Jul 11 17:16:32 2004
+@@ -10,7 +10,7 @@
+ if ((fd = fopen(output, "w")) == NULL) {
+ fprintf (stderr,
+ "ERROR: can't open <%s> to write header information\n", output);
+- exit();
++ exit(1);
+ }
+
+ fprintf (fd, "\n\t\t%s\n", title);
diff --git a/databases/grass/files/patch-src-misc-m.kappa-cmd-readin_data.c b/databases/grass/files/patch-src-misc-m.kappa-cmd-readin_data.c
new file mode 100644
index 000000000000..8eccf89a0bec
--- /dev/null
+++ b/databases/grass/files/patch-src-misc-m.kappa-cmd-readin_data.c
@@ -0,0 +1,11 @@
+--- src/misc/m.kappa/cmd/readin_data.c.orig Sun Jul 11 17:29:10 2004
++++ src/misc/m.kappa/cmd/readin_data.c Sun Jul 11 17:29:20 2004
+@@ -10,7 +10,7 @@
+ else
+ if ((fd = fopen (input, "r")) == NULL) {
+ fprintf (stderr, "ERROR: can't open <%s> to read in data\n", input);
+- exit();
++ exit(1);
+ }
+
+ /* read in data from the input file or stdin */
diff --git a/databases/grass/files/patch-src-raster-r.in.doq-cmd-get_newhead.c b/databases/grass/files/patch-src-raster-r.in.doq-cmd-get_newhead.c
new file mode 100644
index 000000000000..44db98ad52c3
--- /dev/null
+++ b/databases/grass/files/patch-src-raster-r.in.doq-cmd-get_newhead.c
@@ -0,0 +1,20 @@
+--- src/raster/r.in.doq/cmd/get_newhead.c.orig Sun Jul 11 17:17:15 2004
++++ src/raster/r.in.doq/cmd/get_newhead.c Sun Jul 11 17:17:26 2004
+@@ -44,7 +44,7 @@
+ /*** Check data ordering ******/
+ if (strstr(buf,"LEFT_RIGHT/TOP_BOTTOM") == NULL) {
+ fprintf(stderr,"Unable to handle this data ordering: %s\n",buf);
+- exit();
++ exit(1);
+ }
+ }
+ else if (strstr(buf,"SAMPLES_AND_LINES") != NULL) {
+@@ -63,7 +63,7 @@
+ /*********** Get # bands now handlws one ***************/
+ if (strstr(buf,"BLACK&WHITE") == NULL) {
+ fprintf(stderr,"There are multiple bands in this image.\n This routine presently handles only one\n");
+- exit();
++ exit(1);
+ }
+ }
+ else if (strstr(buf,"HORIZONTAL_DATUM") != NULL) {
diff --git a/databases/grass/files/patch-src-raster-wildfire-src-r.ros-spot_dist.c b/databases/grass/files/patch-src-raster-wildfire-src-r.ros-spot_dist.c
new file mode 100644
index 000000000000..1ba8d7477e78
--- /dev/null
+++ b/databases/grass/files/patch-src-raster-wildfire-src-r.ros-spot_dist.c
@@ -0,0 +1,11 @@
+--- src/raster/wildfire/src/r.ros/spot_dist.c.orig Sun Jul 11 17:41:42 2004
++++ src/raster/wildfire/src/r.ros/spot_dist.c Sun Jul 11 17:42:04 2004
+@@ -119,7 +119,7 @@
+
+ if (DATA(map_elev,row,col) > z) {
+ #ifdef DEBUG
+-printf ("\nA return: m%d U=%d(m/h) h0=%d(m) e0(%d,%d)=%d z=%d(m) e(%d,%d)=%d
++printf ("\nA return: m%d U=%d(m/h) h0=%d(m) e0(%d,%d)=%d z=%d(m) e(%d,%d)=%d\
+ s=%d(m)", (int)fuel, (int)U, (int)h0, row0,col0,DATA(map_elev,row0,col0),
+ (int)z, row,col,DATA(map_elev,row,col), S);
+ #endif
diff --git a/databases/grass/files/patch-src.garden-grass.postgresql-g.column.pg-main.c b/databases/grass/files/patch-src.garden-grass.postgresql-g.column.pg-main.c
new file mode 100644
index 000000000000..928128353a26
--- /dev/null
+++ b/databases/grass/files/patch-src.garden-grass.postgresql-g.column.pg-main.c
@@ -0,0 +1,40 @@
+--- src.garden/grass.postgresql/g.column.pg/main.c.orig Sun Jul 11 17:18:12 2004
++++ src.garden/grass.postgresql/g.column.pg/main.c Sun Jul 11 17:19:04 2004
+@@ -80,24 +80,24 @@
+ /* Postgres 6.x style */
+
+ if (flag->answer) {
+- sprintf(SQL, "SELECT a.attname as ColumnName, t.typname as Type,
+- a.attlen as Length,
+- a.atttypmod as \"Mod_Length\"
+- FROM pg_class c, pg_attribute a, pg_type t
+- WHERE c.relname = '%s'
+- and a.attnum > 0
+- and a.attrelid = c.oid
+- and a.atttypid = t.oid
++ sprintf(SQL, "SELECT a.attname as ColumnName, t.typname as Type,\
++ a.attlen as Length,\
++ a.atttypmod as \"Mod_Length\"\
++ FROM pg_class c, pg_attribute a, pg_type t\
++ WHERE c.relname = '%s'\
++ and a.attnum > 0\
++ and a.attrelid = c.oid\
++ and a.atttypid = t.oid\
+ order by attnum", tbl->answer );
+
+ }
+ else {
+ /* no column descriptions */
+- sprintf(SQL, "SELECT a.attname as ColumnName
+- FROM pg_class c, pg_attribute a
+- WHERE c.relname = '%s'
+- and a.attnum > 0
+- and a.attrelid = c.oid
++ sprintf(SQL, "SELECT a.attname as ColumnName\
++ FROM pg_class c, pg_attribute a\
++ WHERE c.relname = '%s'\
++ and a.attnum > 0\
++ and a.attrelid = c.oid\
+ order by attnum", tbl->answer );
+ }
+
diff --git a/databases/grass/files/patch-src.garden-grass.postgresql-g.stats.pg-infxStats.c b/databases/grass/files/patch-src.garden-grass.postgresql-g.stats.pg-infxStats.c
new file mode 100644
index 000000000000..3043aa0d339a
--- /dev/null
+++ b/databases/grass/files/patch-src.garden-grass.postgresql-g.stats.pg-infxStats.c
@@ -0,0 +1,24 @@
+--- src.garden/grass.postgresql/g.stats.pg/infxStats.c.orig Sun Jul 11 17:20:22 2004
++++ src.garden/grass.postgresql/g.stats.pg/infxStats.c Sun Jul 11 17:20:41 2004
+@@ -37,7 +37,7 @@
+ }
+
+ if (freq ) {
+- sprintf (SQL_stmt,"SELECT count(*) as count, %s from %s %s
++ sprintf (SQL_stmt,"SELECT count(*) as count, %s from %s %s\
+ group by %s order by count(*)"
+ ,col,tab,wherecl,col); }
+ else
+@@ -48,10 +48,10 @@
+
+ PQclear (res);
+ if ( can_avg_col ) {
+- sprintf (SQL_stmt,"SELECT min(%s) as Min, max(%s) as Max, avg(%s) as Mean
++ sprintf (SQL_stmt,"SELECT min(%s) as Min, max(%s) as Max, avg(%s) as Mean\
+ FROM %s %s",col,col,col,tab,wherecl); }
+ else
+- {sprintf (SQL_stmt,"SELECT min(%s) as Min, max(%s) as Max
++ {sprintf (SQL_stmt,"SELECT min(%s) as Min, max(%s) as Max\
+ FROM %s %s",col,col,tab,wherecl); }
+ }
+