Initial commit based on Fedora

Resolves: RHEL-81633
This commit is contained in:
Ales Nezbeda 2025-07-31 16:53:19 +02:00
parent 47ed7cffab
commit 0660169d0c
6 changed files with 4391 additions and 0 deletions

51
.gitignore vendored
View File

@ -0,0 +1,51 @@
/postgis-2.5.3.tar.gz
/postgis-3.0.0.pdf
/postgis-3.0.0.tar.gz
/postgis-3.0.1.tar.gz
/postgis-3.0.1.pdf
/postgis-2.5.4.tar.gz
/postgis-3.0.2.pdf
/postgis-3.0.2.tar.gz
/postgis-2.5.5.tar.gz
/postgis-3.0.3.tar.gz
/postgis-3.0.3.pdf
/postgis-3.1.0.pdf
/postgis-3.1.0.tar.gz
/postgis-3.1.1.tar.gz
/postgis-3.1.1.pdf
/postgis-3.1.2.tar.gz
/postgis-3.1.2.pdf
/postgis-3.1.3.pdf
/postgis-3.1.3.tar.gz
/postgis-3.1.4.pdf
/postgis-3.1.4.tar.gz
/postgis-3.2.0.pdf
/postgis-3.2.0.tar.gz
/postgis-3.2.1.pdf
/postgis-3.2.1.tar.gz
/postgis-3.2.2.tar.gz
/postgis-3.2.2.pdf
/postgis-3.3.1.tar.gz
/postgis-3.3.1.pdf
/postgis-3.3.2.tar.gz
/postgis-3.3.2.pdf
/postgis-3.3.3.pdf
/postgis-3.3.3.tar.gz
/postgis-3.3.4.pdf
/postgis-3.3.4.tar.gz
/postgis-3.4.0-en.pdf
/postgis-3.4.0.tar.gz
/postgis-3.4.1.tar.gz
/postgis-3.4.1-en.pdf
/postgis-3.4.2-en.pdf
/postgis-3.4.2.tar.gz
/postgis-3.4.3-en.pdf
/postgis-3.4.3.tar.gz
/postgis-3.5.0-en.pdf
/postgis-3.5.0.tar.gz
/postgis-3.5.1-en.pdf
/postgis-3.5.1.tar.gz
/postgis-3.5.2-en.pdf
/postgis-3.5.2.tar.gz
/postgis-3.5.3-en.pdf
/postgis-3.5.3.tar.gz

17
postgis-c99-2.patch Normal file
View File

@ -0,0 +1,17 @@
Include <math.h> for isnan. This avoids an implicit function
declaration and a build failure with future compilers.
Submitted upstream: <https://github.com/postgis/postgis/pull/725>
diff -ur postgis-3.3.2.orig/loader/shp2pgsql-core.c postgis-3.3.2/loader/shp2pgsql-core.c
--- postgis-3.3.2.orig/loader/shp2pgsql-core.c 2022-11-13 08:09:23.000000000 +0100
+++ postgis-3.3.2/loader/shp2pgsql-core.c 2023-04-09 22:01:46.377934865 +0200
@@ -15,6 +15,8 @@
#include "../postgis_config.h"
+#include <math.h> /* for isnan */
+
#include "shp2pgsql-core.h"
#include "../liblwgeom/liblwgeom.h"
#include "../liblwgeom/lwgeom_log.h" /* for LWDEBUG macros */

54
postgis-c99.patch Normal file
View File

@ -0,0 +1,54 @@
commit ae53a53246ccb26a6e82fede1a4184b41bcf097d
Author: Regina Obe <lr@pcorp.us>
Date: Sat Feb 19 00:21:01 2022 -0500
Fix PG 15 building atoi removed. References #5100 for PostGIS 3.3.0
diff -ur postgis-3.3.2.orig/postgis-2.5.5/postgis/gserialized_typmod.c postgis-3.3.2/postgis-2.5.5/postgis/gserialized_typmod.c
--- postgis-3.3.2.orig/postgis-2.5.5/postgis/gserialized_typmod.c 2023-04-09 21:52:47.909294055 +0200
+++ postgis-3.3.2/postgis-2.5.5/postgis/gserialized_typmod.c 2023-04-09 21:55:24.744826310 +0200
@@ -35,7 +35,7 @@
#include "utils/elog.h"
#include "utils/array.h"
-#include "utils/builtins.h" /* for pg_atoi */
+#include "utils/builtins.h" /* for cstring_to_text */
#include "lib/stringinfo.h" /* For binary input */
#include "catalog/pg_type.h" /* for CSTRINGOID */
@@ -267,8 +267,33 @@
}
if ( i == 1 ) /* SRID */
{
- int srid = pg_atoi(DatumGetCString(elem_values[i]),
- sizeof(int32), '\0');
+ char *int_string = DatumGetCString(elem_values[i]);
+ char *endp;
+ long l;
+ int32_t srid;
+
+ errno = 0;
+ l = strtol(int_string, &endp, 10);
+
+ if (int_string == endp)
+ ereport(ERROR,
+ (errcode(ERRCODE_INVALID_TEXT_REPRESENTATION),
+ errmsg("invalid input syntax for type %s: \"%s\"",
+ "integer", int_string)));
+
+ if (errno == ERANGE || l < INT_MIN || l > INT_MAX)
+ ereport(ERROR,
+ (errcode(ERRCODE_NUMERIC_VALUE_OUT_OF_RANGE),
+ errmsg("value \"%s\" is out of range for type %s", int_string,
+ "integer")));
+
+ if (*endp != '\0')
+ ereport(ERROR,
+ (errcode(ERRCODE_INVALID_TEXT_REPRESENTATION),
+ errmsg("invalid input syntax for type %s: \"%s\"",
+ "integer", int_string)));
+
+ srid = clamp_srid(l);
srid = clamp_srid(srid);
POSTGIS_DEBUGF(3, "srid: %d", srid);
if ( srid != SRID_UNKNOWN )

3227
postgis2-proj8.patch Normal file

File diff suppressed because it is too large Load Diff

1040
postgresql16-postgis.spec Normal file

File diff suppressed because it is too large Load Diff

2
sources Normal file
View File

@ -0,0 +1,2 @@
SHA512 (postgis-3.5.3-en.pdf) = 69e162ea657a3bce2fb139ebeb9bd212ac646cb83027345eab9677609160a365d3ecdaa2995eb494054fc4667016a069afdbdbbd1cc56ff407fac05fd8306fa0
SHA512 (postgis-3.5.3.tar.gz) = c27f57f0dbf3938648fe16dcaaff28530de6a51c13c481cb78163a51a292f3d77620485cd31e79cd01be675b5dca97129c50c562f68d6d864c822ea7359d754f