Upgrading geos to 3.12.1 (#7820)
This commit is contained in:
Родитель
e4fcc11681
Коммит
c8120fc785
|
@ -1,5 +1,5 @@
|
|||
{
|
||||
"Signatures": {
|
||||
"geos-3.11.1.tar.bz2": "6d0eb3cfa9f92d947731cc75f1750356b3bdfc07ea020553daf6af1c768e0be2"
|
||||
"geos-3.12.1.tar.bz2": "d6ea7e492224b51193e8244fe3ec17c4d44d0777f3c32ca4fb171140549a0d03"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,16 +1,12 @@
|
|||
Summary: GEOS is a C++ port of the Java Topology Suite
|
||||
Name: geos
|
||||
Version: 3.11.1
|
||||
Release: 4%{?dist}
|
||||
Version: 3.12.1
|
||||
Release: 1%{?dist}
|
||||
License: LGPLv2
|
||||
Vendor: Microsoft Corporation
|
||||
Distribution: Azure Linux
|
||||
URL: https://trac.osgeo.org/geos/
|
||||
Source0: https://download.osgeo.org/%{name}/%{name}-%{version}.tar.bz2
|
||||
# Fix doxygen errors
|
||||
Patch0: geos_docs.patch
|
||||
# Fix GCC13 FTBFS
|
||||
Patch1: geos_gcc13.patch
|
||||
BuildRequires: cmake
|
||||
BuildRequires: doxygen
|
||||
BuildRequires: gcc-c++
|
||||
|
@ -37,7 +33,7 @@ This package contains the development files to build applications that
|
|||
use GEOS.
|
||||
|
||||
%prep
|
||||
%autosetup -p1
|
||||
%autosetup
|
||||
|
||||
%build
|
||||
# Native build
|
||||
|
@ -55,7 +51,7 @@ make docs -C %{__cmake_builddir}
|
|||
%doc AUTHORS NEWS.md README.md
|
||||
%license COPYING
|
||||
%{_bindir}/geosop
|
||||
%{_libdir}/libgeos.so.3.11.1
|
||||
%{_libdir}/libgeos.so.3.12.1
|
||||
%{_libdir}/libgeos_c.so.1*
|
||||
|
||||
%files devel
|
||||
|
@ -70,6 +66,9 @@ make docs -C %{__cmake_builddir}
|
|||
%{_libdir}/pkgconfig/%{name}.pc
|
||||
|
||||
%changelog
|
||||
* Fri Feb 09 2024 Aditya Dubey <adityadubey@microsoft.com> - 3.12.1
|
||||
- Upgrading to version 3.12.1 for mariner 3.0
|
||||
|
||||
* Tue Feb 14 2023 Sindhu Karri <lakarri@microsoft.com> - 3.11.1-4
|
||||
- Initial CBL-Mariner import from Fedora 38 (license: MIT)
|
||||
- Removed building for mingw environment
|
||||
|
|
|
@ -1,143 +0,0 @@
|
|||
diff -rupN geos-3.11.1/include/geos/algorithm/CGAlgorithmsDD.h geos-3.11.1-new/include/geos/algorithm/CGAlgorithmsDD.h
|
||||
--- geos-3.11.1/include/geos/algorithm/CGAlgorithmsDD.h 2022-11-13 20:24:40.000000000 +0100
|
||||
+++ geos-3.11.1-new/include/geos/algorithm/CGAlgorithmsDD.h 2022-11-15 08:03:18.909027043 +0100
|
||||
@@ -172,7 +172,7 @@ public:
|
||||
*
|
||||
* This method uses @ref geos::math::DD extended-precision arithmetic to provide more accurate
|
||||
* results than [circumcentre(Coordinate, Coordinate, Coordinate)]
|
||||
- * (@ref geos::geom::Triangle::circumcentre(const Coordinate& p0, const Coordinate& p1, const Coordinate& p2)).
|
||||
+ * (geos::geom::Triangle::circumcentre(const Coordinate& p0, const Coordinate& p1, const Coordinate& p2)).
|
||||
*
|
||||
* @param a
|
||||
* a vertex of the triangle
|
||||
diff -rupN geos-3.11.1/include/geos/index/SpatialIndex.h.rej geos-3.11.1-new/include/geos/index/SpatialIndex.h.rej
|
||||
--- geos-3.11.1/include/geos/index/SpatialIndex.h.rej 1970-01-01 01:00:00.000000000 +0100
|
||||
+++ geos-3.11.1-new/include/geos/index/SpatialIndex.h.rej 2022-11-14 19:32:59.422831322 +0100
|
||||
@@ -0,0 +1,10 @@
|
||||
+--- include/geos/index/SpatialIndex.h 2022-07-01 18:42:19.000000000 +0200
|
||||
++++ include/geos/index/SpatialIndex.h 2022-07-02 11:07:09.740083703 +0200
|
||||
+@@ -70,7 +70,6 @@ public:
|
||||
+ * intersect the query envelope.
|
||||
+ *
|
||||
+ * @param searchEnv the envelope to query for
|
||||
+- * @return a list of the items found by the query in a newly allocated vector
|
||||
+ */
|
||||
+ //virtual std::vector<void*>* query(const geom::Envelope *searchEnv)=0;
|
||||
+ virtual void query(const geom::Envelope* searchEnv, std::vector<void*>&) = 0;
|
||||
diff -rupN geos-3.11.1/include/geos/index/VertexSequencePackedRtree.h.rej geos-3.11.1-new/include/geos/index/VertexSequencePackedRtree.h.rej
|
||||
--- geos-3.11.1/include/geos/index/VertexSequencePackedRtree.h.rej 1970-01-01 01:00:00.000000000 +0100
|
||||
+++ geos-3.11.1-new/include/geos/index/VertexSequencePackedRtree.h.rej 2022-11-14 19:33:00.510831347 +0100
|
||||
@@ -0,0 +1,10 @@
|
||||
+--- include/geos/index/VertexSequencePackedRtree.h 2022-07-01 18:42:19.000000000 +0200
|
||||
++++ include/geos/index/VertexSequencePackedRtree.h 2022-07-02 11:07:44.759084486 +0200
|
||||
+@@ -136,7 +136,6 @@ public:
|
||||
+ *
|
||||
+ * @param queryEnv the query extent
|
||||
+ * @param result vector to fill with results
|
||||
+- * @return
|
||||
+ */
|
||||
+ void query(const Envelope& queryEnv, std::vector<std::size_t>& result) const;
|
||||
+
|
||||
diff -rupN geos-3.11.1/include/geos/noding/SegmentNodeList.h.rej geos-3.11.1-new/include/geos/noding/SegmentNodeList.h.rej
|
||||
--- geos-3.11.1/include/geos/noding/SegmentNodeList.h.rej 1970-01-01 01:00:00.000000000 +0100
|
||||
+++ geos-3.11.1-new/include/geos/noding/SegmentNodeList.h.rej 2022-11-14 19:33:01.494831369 +0100
|
||||
@@ -0,0 +1,12 @@
|
||||
+--- include/geos/noding/SegmentNodeList.h 2022-07-02 11:06:21.869082632 +0200
|
||||
++++ include/geos/noding/SegmentNodeList.h 2022-07-02 00:22:57.506176063 +0200
|
||||
+@@ -155,9 +155,6 @@ public:
|
||||
+ * Adds an intersection into the list, if it isn't already there.
|
||||
+ * The input segmentIndex is expected to be normalized.
|
||||
+ *
|
||||
+- * @return the SegmentIntersection found or added. It will be
|
||||
+- * destroyed at SegmentNodeList destruction time.
|
||||
+- *
|
||||
+ * @param intPt the intersection Coordinate, will be copied
|
||||
+ * @param segmentIndex
|
||||
+ */
|
||||
diff -rupN geos-3.11.1/include/geos/operation/buffer/OffsetCurve.h.rej geos-3.11.1-new/include/geos/operation/buffer/OffsetCurve.h.rej
|
||||
--- geos-3.11.1/include/geos/operation/buffer/OffsetCurve.h.rej 1970-01-01 01:00:00.000000000 +0100
|
||||
+++ geos-3.11.1-new/include/geos/operation/buffer/OffsetCurve.h.rej 2022-11-14 19:33:02.197831384 +0100
|
||||
@@ -0,0 +1,10 @@
|
||||
+--- include/geos/operation/buffer/OffsetCurve.h 2022-07-01 18:42:19.000000000 +0200
|
||||
++++ include/geos/operation/buffer/OffsetCurve.h 2022-07-02 11:09:25.767086746 +0200
|
||||
+@@ -252,7 +252,6 @@ public:
|
||||
+ * @param dist the offset distance
|
||||
+ * @param bufParams the buffer parameters to use
|
||||
+ * @param lineList the vector to populate with the return value
|
||||
+- * @return the raw offset line
|
||||
+ */
|
||||
+ static void rawOffset(const LineString& geom, double dist, BufferParameters& bufParams, std::vector<CoordinateSequence*>& lineList);
|
||||
+ static void rawOffset(const LineString& geom, double dist, std::vector<CoordinateSequence*>& lineList);
|
||||
diff -rupN geos-3.11.1/include/geos/operation/distance/IndexedFacetDistance.h geos-3.11.1-new/include/geos/operation/distance/IndexedFacetDistance.h
|
||||
--- geos-3.11.1/include/geos/operation/distance/IndexedFacetDistance.h 2022-11-13 20:24:40.000000000 +0100
|
||||
+++ geos-3.11.1-new/include/geos/operation/distance/IndexedFacetDistance.h 2022-11-15 08:03:12.656026903 +0100
|
||||
@@ -38,7 +38,7 @@ namespace distance {
|
||||
/// an repeated query situation.
|
||||
///
|
||||
/// Using this technique is usually much more performant than using the
|
||||
-/// brute-force \ref geom::Geometry::distance(const Geometry* g) const when one
|
||||
+/// brute-force geom::Geometry::distance(const Geometry* g) const when one
|
||||
/// or both input geometries are large, or when evaluating many distance
|
||||
/// computations against a single geometry.
|
||||
///
|
||||
diff -rupN geos-3.11.1/include/geos/operation/overlayng/OverlayNG.h geos-3.11.1-new/include/geos/operation/overlayng/OverlayNG.h
|
||||
--- geos-3.11.1/include/geos/operation/overlayng/OverlayNG.h 2022-11-13 20:24:40.000000000 +0100
|
||||
+++ geos-3.11.1-new/include/geos/operation/overlayng/OverlayNG.h 2022-11-15 08:05:23.491029830 +0100
|
||||
@@ -271,7 +271,7 @@ public:
|
||||
* the result of overlaying the geometries using
|
||||
* a given overlay operation.
|
||||
*
|
||||
- * The method handles arguments of {@link Location#NONE} correctly
|
||||
+ * The method handles arguments of {@link Location} correctly
|
||||
*/
|
||||
static bool isResultOfOpPoint(const OverlayLabel* label, int opCode);
|
||||
|
||||
@@ -284,7 +284,7 @@ public:
|
||||
* computed during the overlay process should be
|
||||
* included in the result geometry.
|
||||
*
|
||||
- * The method handles arguments of {@link Location#NONE} correctly.
|
||||
+ * The method handles arguments of {@link Location} correctly.
|
||||
*/
|
||||
static bool isResultOfOp(int overlayOpCode, Location loc0, Location loc1);
|
||||
|
||||
diff -rupN geos-3.11.1/include/geos/operation/union/UnaryUnionOp.h geos-3.11.1-new/include/geos/operation/union/UnaryUnionOp.h
|
||||
--- geos-3.11.1/include/geos/operation/union/UnaryUnionOp.h 2022-11-13 20:24:40.000000000 +0100
|
||||
+++ geos-3.11.1-new/include/geos/operation/union/UnaryUnionOp.h 2022-11-15 08:04:05.928028095 +0100
|
||||
@@ -71,7 +71,7 @@ namespace geounion { // geos::operation
|
||||
* or portions of line segments will be reduced to a single line segment
|
||||
* in the output.
|
||||
* This is consistent with the semantics of the
|
||||
- * [Geometry::Union(Geometry* )](@ref geom::Geometry::Union(const Geometry* other) const)
|
||||
+ * geom::Geometry::Union(const Geometry* other) const
|
||||
* operation. If **merged** linework is required, the
|
||||
* [LineMerger](@ref operation::linemerge::LineMerger) class
|
||||
* can be used.
|
||||
diff -rupN geos-3.11.1/include/geos/precision/CommonBitsRemover.h.rej geos-3.11.1-new/include/geos/precision/CommonBitsRemover.h.rej
|
||||
--- geos-3.11.1/include/geos/precision/CommonBitsRemover.h.rej 1970-01-01 01:00:00.000000000 +0100
|
||||
+++ geos-3.11.1-new/include/geos/precision/CommonBitsRemover.h.rej 2022-11-14 19:33:03.029831403 +0100
|
||||
@@ -0,0 +1,10 @@
|
||||
+--- include/geos/precision/CommonBitsRemover.h 2022-07-01 18:42:19.000000000 +0200
|
||||
++++ include/geos/precision/CommonBitsRemover.h 2022-07-02 11:59:35.455154073 +0200
|
||||
+@@ -74,7 +74,6 @@ public:
|
||||
+ *
|
||||
+ * @param geom the Geometry from which to remove the common
|
||||
+ * coordinate bits
|
||||
+- * @return the shifted Geometry
|
||||
+ */
|
||||
+ void removeCommonBits(geom::Geometry* geom);
|
||||
+
|
||||
diff -rupN geos-3.11.1/include/geos/triangulate/polygon/PolygonEarClipper.h.rej geos-3.11.1-new/include/geos/triangulate/polygon/PolygonEarClipper.h.rej
|
||||
--- geos-3.11.1/include/geos/triangulate/polygon/PolygonEarClipper.h.rej 1970-01-01 01:00:00.000000000 +0100
|
||||
+++ geos-3.11.1-new/include/geos/triangulate/polygon/PolygonEarClipper.h.rej 2022-11-14 19:33:04.069831426 +0100
|
||||
@@ -0,0 +1,10 @@
|
||||
+--- include/geos/triangulate/polygon/PolygonEarClipper.h 2022-07-02 11:06:21.870082632 +0200
|
||||
++++ include/geos/triangulate/polygon/PolygonEarClipper.h 2022-07-02 00:22:57.507176063 +0200
|
||||
+@@ -184,7 +184,6 @@ public:
|
||||
+ *
|
||||
+ * @param polyShell the vertices of the polygon
|
||||
+ * @param triListResult vector to fill in with the resultant Tri s
|
||||
+- * @return a list of the Tris
|
||||
+ */
|
||||
+ static void triangulate(std::vector<Coordinate>& polyShell, TriList<Tri>& triListResult);
|
||||
+
|
|
@ -1,99 +0,0 @@
|
|||
diff -rupN geos-3.11.1/include/geos/geomgraph/Depth.h geos-3.11.1-new/include/geos/geomgraph/Depth.h
|
||||
--- geos-3.11.1/include/geos/geomgraph/Depth.h 2022-11-13 20:24:40.000000000 +0100
|
||||
+++ geos-3.11.1-new/include/geos/geomgraph/Depth.h 2023-01-24 07:41:01.310455996 +0100
|
||||
@@ -24,6 +24,7 @@
|
||||
#include <geos/geom/Location.h>
|
||||
#include <geos/geom/Position.h>
|
||||
#include <string>
|
||||
+#include <cstdint>
|
||||
|
||||
// Forward declarations
|
||||
namespace geos {
|
||||
diff -rupN geos-3.11.1/include/geos/geomgraph/Label.h geos-3.11.1-new/include/geos/geomgraph/Label.h
|
||||
--- geos-3.11.1/include/geos/geomgraph/Label.h 2022-11-13 20:24:40.000000000 +0100
|
||||
+++ geos-3.11.1-new/include/geos/geomgraph/Label.h 2023-01-24 07:50:33.250454277 +0100
|
||||
@@ -26,6 +26,7 @@
|
||||
|
||||
#include <iosfwd> // for operator<<
|
||||
#include <cassert>
|
||||
+#include <cstdint>
|
||||
|
||||
namespace geos {
|
||||
namespace geomgraph { // geos.geomgraph
|
||||
diff -rupN geos-3.11.1/include/geos/geomgraph/TopologyLocation.h geos-3.11.1-new/include/geos/geomgraph/TopologyLocation.h
|
||||
--- geos-3.11.1/include/geos/geomgraph/TopologyLocation.h 2022-11-13 20:24:40.000000000 +0100
|
||||
+++ geos-3.11.1-new/include/geos/geomgraph/TopologyLocation.h 2023-01-24 07:58:49.033130619 +0100
|
||||
@@ -27,6 +27,7 @@
|
||||
#include <array>
|
||||
#include <string>
|
||||
#include <cassert>
|
||||
+#include <cstdint>
|
||||
|
||||
#ifdef _MSC_VER
|
||||
#pragma warning(push)
|
||||
diff -rupN geos-3.11.1/include/geos/io/WKTWriter.h geos-3.11.1-new/include/geos/io/WKTWriter.h
|
||||
--- geos-3.11.1/include/geos/io/WKTWriter.h 2022-11-13 20:24:40.000000000 +0100
|
||||
+++ geos-3.11.1-new/include/geos/io/WKTWriter.h 2023-01-24 08:09:32.946821997 +0100
|
||||
@@ -24,6 +24,7 @@
|
||||
|
||||
#include <string>
|
||||
#include <cctype>
|
||||
+#include <cstdint>
|
||||
|
||||
#ifdef _MSC_VER
|
||||
#pragma warning(push)
|
||||
diff -rupN geos-3.11.1/include/geos/operation/overlayng/OverlayLabel.h geos-3.11.1-new/include/geos/operation/overlayng/OverlayLabel.h
|
||||
--- geos-3.11.1/include/geos/operation/overlayng/OverlayLabel.h 2022-11-13 20:24:40.000000000 +0100
|
||||
+++ geos-3.11.1-new/include/geos/operation/overlayng/OverlayLabel.h 2023-01-24 08:24:50.236120617 +0100
|
||||
@@ -17,6 +17,7 @@
|
||||
#include <geos/geom/Location.h>
|
||||
#include <geos/geom/Position.h>
|
||||
#include <geos/export.h>
|
||||
+#include <cstdint>
|
||||
|
||||
using geos::geom::Location;
|
||||
using geos::geom::Position;
|
||||
diff -rupN geos-3.11.1/include/geos/shape/fractal/HilbertCode.h geos-3.11.1-new/include/geos/shape/fractal/HilbertCode.h
|
||||
--- geos-3.11.1/include/geos/shape/fractal/HilbertCode.h 2022-11-13 20:24:40.000000000 +0100
|
||||
+++ geos-3.11.1-new/include/geos/shape/fractal/HilbertCode.h 2023-01-24 08:34:19.200753980 +0100
|
||||
@@ -17,6 +17,7 @@
|
||||
|
||||
#include <geos/export.h>
|
||||
#include <string>
|
||||
+#include <cstdint>
|
||||
|
||||
// Forward declarations
|
||||
namespace geos {
|
||||
diff -rupN geos-3.11.1/include/geos/shape/fractal/HilbertEncoder.h geos-3.11.1-new/include/geos/shape/fractal/HilbertEncoder.h
|
||||
--- geos-3.11.1/include/geos/shape/fractal/HilbertEncoder.h 2022-11-13 20:24:40.000000000 +0100
|
||||
+++ geos-3.11.1-new/include/geos/shape/fractal/HilbertEncoder.h 2023-01-24 08:43:34.124625256 +0100
|
||||
@@ -18,6 +18,7 @@
|
||||
#include <geos/export.h>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
+#include <cstdint>
|
||||
|
||||
// Forward declarations
|
||||
namespace geos {
|
||||
diff -rupN geos-3.11.1/include/geos/shape/fractal/MortonCode.h geos-3.11.1-new/include/geos/shape/fractal/MortonCode.h
|
||||
--- geos-3.11.1/include/geos/shape/fractal/MortonCode.h 2022-11-13 20:24:40.000000000 +0100
|
||||
+++ geos-3.11.1-new/include/geos/shape/fractal/MortonCode.h 2023-01-24 09:40:32.202364547 +0100
|
||||
@@ -17,6 +17,7 @@
|
||||
|
||||
#include <geos/export.h>
|
||||
#include <string>
|
||||
+#include <cstdint>
|
||||
|
||||
// Forward declarations
|
||||
namespace geos {
|
||||
diff -rupN geos-3.11.1/tests/unit/capi/GEOSMakeValidTest.cpp geos-3.11.1-new/tests/unit/capi/GEOSMakeValidTest.cpp
|
||||
--- geos-3.11.1/tests/unit/capi/GEOSMakeValidTest.cpp 2022-11-13 20:24:41.000000000 +0100
|
||||
+++ geos-3.11.1-new/tests/unit/capi/GEOSMakeValidTest.cpp 2023-01-24 19:06:06.708755542 +0100
|
||||
@@ -9,6 +9,7 @@
|
||||
#include <cstdlib>
|
||||
#include <cmath>
|
||||
#include <cstring>
|
||||
+#include <cstdint>
|
||||
|
||||
#include "capi_test_utils.h"
|
||||
|
|
@ -4170,8 +4170,8 @@
|
|||
"type": "other",
|
||||
"other": {
|
||||
"name": "geos",
|
||||
"version": "3.11.1",
|
||||
"downloadUrl": "https://download.osgeo.org/geos/geos-3.11.1.tar.bz2"
|
||||
"version": "3.12.1",
|
||||
"downloadUrl": "https://download.osgeo.org/geos/geos-3.12.1.tar.bz2"
|
||||
}
|
||||
}
|
||||
},
|
||||
|
|
Загрузка…
Ссылка в новой задаче