Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1a1rrS-0003KY-N1 for pgsql-pkg-yum@arkaria.postgresql.org; Thu, 26 Nov 2015 08:25:03 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84) (envelope-from ) id 1a1rrS-0008Ro-9e for pgsql-pkg-yum@arkaria.postgresql.org; Thu, 26 Nov 2015 08:25:02 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84) (envelope-from ) id 1a1rrR-0008Rf-P3 for pgsql-pkg-yum@postgresql.org; Thu, 26 Nov 2015 08:25:01 +0000 Received: from ohmu.fi ([213.157.68.249]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84) (envelope-from ) id 1a1rrO-0006be-03 for pgsql-pkg-yum@postgresql.org; Thu, 26 Nov 2015 08:25:01 +0000 Received: from [127.0.0.1] (localhost [IPv6:::1]) by ohmu.fi (Postfix) with ESMTP id AD867607AC for ; Thu, 26 Nov 2015 10:24:56 +0200 (EET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ohmu.fi; s=ohmu20151014; t=1448526296; bh=ioE0J83flZCVWAtmVIomGgT8BJY9vWDDSnDcofzD7D4=; h=From:Subject:To:Date:From; b=K6lp/Qb7i51swBIGf33MtfAbONbQimYBCLVP7emX+jYy6J0e2jq0OF1uj2DBA0UqI kNqp1/uZMNWZ/Q1/O/L44J6p1DvIkVTi71j7hyFJ0+jUn1qhzfXhHL52kLGdFCbNPM 9o/dlJ+/25J+ElpD8gH0BjOh3I1wcvHaI3Hh3024= From: Oskari Saarenmaa Subject: Packaging PostGIS for F23 / PG95 To: pgsql-pkg-yum@postgresql.org Message-ID: <5656C1D7.8000804@ohmu.fi> Date: Thu, 26 Nov 2015 10:24:55 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.3.0 MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="------------040007000203060004060503" X-Pg-Spam-Score: -3.0 (---) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-pkg-yum Precedence: bulk Sender: pgsql-pkg-yum-owner@postgresql.org This is a multi-part message in MIME format. --------------040007000203060004060503 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Hi, I noticed PostGIS wasn't available for F23 / PG95 in yum.postgresql.org and looked into the issues. Apparently SFCGAL 1.2.0 didn't build on F23 due to a change in CGAL, upstream fixed this in release 1.2.2 so I just downloaded the latest tag from github and updated the spec to match, attached. After fixing that I ran into issues building PostGIS on F23 wrt linking to GDAL. That required adding a -fPIC flag to configure when linking with GDAL as well as removing the LD_LIBRARY_PATH setting in .spec. Attached patches for .spec and for PostGIS's configure. Cheers, Oskari --------------040007000203060004060503 Content-Type: text/x-patch; name="postgis22-spec-gdal.patch" Content-Transfer-Encoding: 8bit Content-Disposition: attachment; filename="postgis22-spec-gdal.patch" --- postgis22.spec 2015-11-03 21:48:55.000000000 +0200 +++ postgis22.spec 2015-11-19 11:52:27.506554156 +0200 @@ -10,13 +10,14 @@ Summary: Geographic Information Systems Extensions to PostgreSQL Name: %{sname}2_%{pgmajorversion} Version: 2.2.0 -Release: 2%{?dist} +Release: 2.aiven1%{?dist} License: GPLv2+ Group: Applications/Databases Source0: http://download.osgeo.org/%{sname}/source/%{sname}-%{version}.tar.gz Source1: http://download.osgeo.org/%{sname}/source/%{sname}-%{postgisprevversion}.tar.gz Source2: http://download.osgeo.org/%{sname}/docs/%{sname}-%{version}.pdf Source4: filter-requires-perl-Pg.sh +Patch1: postgis-2.2.0-gdalfpic.patch URL: http://www.postgis.net/ BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) @@ -87,9 +88,9 @@ # Copy .pdf file to top directory before installing. cp -p %{SOURCE2} . +%patch1 -p0 + %build -# We need the below for GDAL: -export LD_LIBRARY_PATH=%{pginstdir}/lib %configure --with-pgconfig=%{pginstdir}/bin/pg_config \ %if !%raster @@ -146,7 +148,7 @@ %files %defattr(-,root,root) %doc COPYING CREDITS NEWS TODO README.%{sname} doc/html loader/README.* doc/%{sname}.xml doc/ZMSgeoms.txt -%{_docdir}/pgsql/extension/README.address_standardizer +%{pginstdir}/doc/extension/README.address_standardizer %{pginstdir}/share/contrib/%{sname}-%{postgismajorversion}/postgis.sql %{pginstdir}/share/contrib/%{sname}-%{postgismajorversion}/postgis_comments.sql %{pginstdir}/share/contrib/%{sname}-%{postgismajorversion}/postgis_upgrade*.sql @@ -202,6 +204,9 @@ %doc %{sname}-%{version}.pdf %changelog +* Thu Nov 19 2015 Oskari Saarenmaa 2.2.0-2.aiven1 +- use -fPIC with gdal + * Fri Oct 30 2015 Devrim GÜNDÜZ - 2.2.0-2 - Build with SFCGAL support. --------------040007000203060004060503 Content-Type: text/x-patch; name="postgis-2.2.0-gdalfpic.patch" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="postgis-2.2.0-gdalfpic.patch" --- configure 2015-10-07 21:39:56.000000000 +0300 +++ configure 2015-11-19 11:44:15.402542910 +0200 @@ -17119,7 +17119,7 @@ LIBGDAL_CFLAGS=`$GDAL_CONFIG --cflags` CPPFLAGS_SAVE="$CPPFLAGS" - CPPFLAGS="$LIBGDAL_CFLAGS" + CPPFLAGS="$LIBGDAL_CFLAGS -fPIC" CFLAGS_SAVE="$CFLAGS" CFLAGS="" LIBS_SAVE="$LIBS" --------------040007000203060004060503 Content-Type: text/x-patch; name="sfcgal-spec-122.patch" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="sfcgal-spec-122.patch" --- sfcgal.spec 2015-11-03 21:48:57.000000000 +0200 +++ sfcgal.spec 2015-11-19 11:26:41.600141480 +0200 @@ -1,10 +1,10 @@ Summary: C++ wrapper library around CGAL for PostGIS Name: SFCGAL -Version: 1.2.0 +Version: 1.2.2 Release: 1%{?dist} License: GLPLv2 Group: System Environment/Libraries -Source: https://github.com/Oslandia/%{name}/archive/v%{version}.tar.gz +Source: https://github.com/Oslandia/%{name}/archive/%{name}-%{version}.zip URL: http://sfcgal.org/ BuildRequires: cmake, CGAL-devel BuildRequires: boost-thread, boost-system, boost-date-time, boost-serialization @@ -67,5 +67,8 @@ /usr/lib/libSFCGAL.la %changelog +* Thu Nov 19 2015 Oskari Saarenmaa 1.2.2-1 +- Upgrade to 1.2.2 to support newer CGAL versions + * Fri Oct 30 2015 Devrim GUNDUZ 1.2.0-1 - Initial build for PostgreSQL YUM Repository. --------------040007000203060004060503 Content-Type: text/plain Content-Disposition: inline Content-Transfer-Encoding: 8bit MIME-Version: 1.0 -- Sent via pgsql-pkg-yum mailing list (pgsql-pkg-yum@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-pkg-yum --------------040007000203060004060503--