[arch-commits] Commit in librttopo/repos/community-x86_64 (3 files)

Bruno Pagani archange at gemini.archlinux.org
Mon Jun 27 16:12:47 UTC 2022


    Date: Monday, June 27, 2022 @ 16:12:47
  Author: archange
Revision: 1239714

archrelease: copy trunk to community-x86_64

Added:
  librttopo/repos/community-x86_64/PKGBUILD
    (from rev 1239713, librttopo/trunk/PKGBUILD)
  librttopo/repos/community-x86_64/postgis-15444-security-fix.patch
    (from rev 1239713, librttopo/trunk/postgis-15444-security-fix.patch)
Deleted:
  librttopo/repos/community-x86_64/PKGBUILD

----------------------------------+
 PKGBUILD                         |   65 ++++++++++++++++++-------------------
 postgis-15444-security-fix.patch |   23 +++++++++++++
 2 files changed, 56 insertions(+), 32 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2022-06-27 16:12:38 UTC (rev 1239713)
+++ PKGBUILD	2022-06-27 16:12:47 UTC (rev 1239714)
@@ -1,32 +0,0 @@
-# Maintainer: Jaroslav Lichtblau <svetlemodry at archlinux.org>
-# Contributor: Samuel Fernando Mesa <samuelmesa dot linuxmail.org>
-
-pkgname=librttopo
-pkgver=1.1.0
-pkgrel=4
-pkgdesc="RT Topology Library"
-arch=('x86_64')
-url="https://git.osgeo.org/gitea/rttopo/librttopo"
-license=('GPL2')
-depends=('geos')
-source=(https://git.osgeo.org/gitea/rttopo/$pkgname/archive/$pkgname-$pkgver.tar.gz)
-sha256sums=('2e2fcabb48193a712a6c76ac9a9be2a53f82e32f91a2bc834d9f1b4fa9cd879f')
-
-prepare() {
-  cd "${srcdir}"/$pkgname
-  
-  ./autogen.sh
-}
-
-build() {
-  cd "${srcdir}"/$pkgname
-  
-  ./configure --prefix=/usr
-  make
-}
-
-package() {
-  cd "${srcdir}"/$pkgname
-  
-  make DESTDIR="${pkgdir}" install
-}

Copied: librttopo/repos/community-x86_64/PKGBUILD (from rev 1239713, librttopo/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2022-06-27 16:12:47 UTC (rev 1239714)
@@ -0,0 +1,33 @@
+# Maintainer: Jaroslav Lichtblau <svetlemodry at archlinux.org>
+# Maintainer: Bruno Pagani <archange at archlinux.org>
+# Contributor: Samuel Fernando Mesa <samuelmesa dot linuxmail.org>
+
+pkgname=librttopo
+pkgver=1.1.0
+pkgrel=5
+pkgdesc="RT Topology Library"
+arch=(x86_64)
+url="https://git.osgeo.org/gitea/rttopo/librttopo"
+license=(GPL2)
+depends=(geos)
+source=(https://git.osgeo.org/gitea/rttopo/$pkgname/archive/$pkgname-$pkgver.tar.gz
+        postgis-15444-security-fix.patch)
+sha256sums=('2e2fcabb48193a712a6c76ac9a9be2a53f82e32f91a2bc834d9f1b4fa9cd879f'
+            '759e5137b49b01af7ccb4d40dcc673a004c6b1461b74d624be18787a960863fb')
+
+prepare() {
+  cd $pkgname
+  patch -p1 < ../postgis-15444-security-fix.patch
+  ./autogen.sh
+}
+
+build() {
+  cd $pkgname
+  ./configure --prefix=/usr
+  make
+}
+
+package() {
+  cd $pkgname
+  make DESTDIR="${pkgdir}" install
+}

Copied: librttopo/repos/community-x86_64/postgis-15444-security-fix.patch (from rev 1239713, librttopo/trunk/postgis-15444-security-fix.patch)
===================================================================
--- postgis-15444-security-fix.patch	                        (rev 0)
+++ postgis-15444-security-fix.patch	2022-06-27 16:12:47 UTC (rev 1239714)
@@ -0,0 +1,23 @@
+--- a/src/rtout_x3d.c
++++ b/src/rtout_x3d.c
+@@ -63,6 +63,20 @@ rtgeom_to_x3d3(const RTCTX *ctx, const RTGEOM *geom, char *srs, int precision, i
+ {
+   int type = geom->type;
+ 
++/* apply patch postgis: https://trac.osgeo.org/postgis/changeset/15444 */
++/* https://trac.osgeo.org/postgis/ticket/3704 */
++
++/* Empty string for empties */
++  if( rtgeom_is_empty(ctx, geom) )
++  {
++    char *ret = NULL;
++    ret = rtalloc(ctx, 1);
++    ret[0] = '\0';
++    return ret;
++  }
++
++/* end patch */
++
+   switch (type)
+   {
+   case RTPOINTTYPE:



More information about the arch-commits mailing list