Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 520694 - dev-db/postgis-2.0.6 dev-db/postgis-2.1.4 version bump
Summary: dev-db/postgis-2.0.6 dev-db/postgis-2.1.4 version bump
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: PgSQL Bugs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-08-23 13:36 UTC by Thomas Beutin
Modified: 2014-11-05 16:09 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
postgis-2.1.4-pkgconfig-json.patch (postgis-2.1.4-pkgconfig-json.patch,4.33 KB, patch)
2014-09-16 08:36 UTC, eroen
Details | Diff
postgis-2.1.4.ebuild (postgis-2.1.4.ebuild,7.75 KB, text/plain)
2014-10-31 11:10 UTC, Benjamin Börngen-Schmidt
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Thomas Beutin 2014-08-23 13:36:46 UTC
according to http://postgis.net/2014/05/19/postgis-2.0.6_and_2.1.3:

It has come to our attention that the PostGIS Raster support may give more privileges to users than an administrator is willing to grant. These include reading files from the filesystem and opening connections to network hosts.

Both issues can be limited in existing installations by setting the GDAL_SKIP variable (in the PostgreSQL server environment) to the list of all gdal drivers, but some drivers would still be forceably loaded by some operations.

Releases 2.1.3 and 2.0.6 strengthen the code to load no drivers by default and allows for a fine-grained tuning of what’s allowed and what not through postgis-specific environment variables:

POSTGIS_GDAL_ENABLED_DRIVERS
Specifies a list of GDAL drivers to enable (rather than skip) By default all drivers are disabled. Example value: “GTiff PNG JPEG”

POSTGIS_ENABLE_OUTDB_RASTERS
Enables read support for out-db raster bands if set to 1. By default out-db raster bands reading is disabled.

Upgrade is highly recommended, especially for online services allowing users to run arbitrary SQL queries.
Comment 1 Andreas Sturmlechner gentoo-dev 2014-08-23 15:46:50 UTC
wrt 2.1.3, I did something here for my local overlay already to bump to 2.1.3 and fix the json-c build issue: bug 507708#c22

(no warranties)
Comment 2 Andreas Sturmlechner gentoo-dev 2014-09-13 17:17:57 UTC
postgis-2.1.4 including the patch was released:

http://postgis.net/docs/manual-2.1/release_notes.html#idp45674128

--- postgis-2.1.3.ebuild	2014-08-02 15:10:46.655553488 +0200
+++ postgis-2.1.4.ebuild	2014-09-13 19:02:15.590512782 +0200
@@ -97,7 +97,6 @@
 src_prepare() {
 	epatch "${FILESDIR}/${PN}-2.1-ldflags.patch" \
 		"${FILESDIR}/${PN}-2.0-arflags.patch" \
-		"${FILESDIR}/${PN}-2.1.3-fix-external-json-c-build.patch" \
 		"${FILESDIR}/${PN}-2.1.3-pkgconfig-json.patch"
 
 	local AT_M4DIR="macros"
Comment 3 eroen 2014-09-16 08:36:48 UTC
Created attachment 384824 [details, diff]
postgis-2.1.4-pkgconfig-json.patch

postgis-2.1.4 no longer requires json_tokener_errors() which was removed in json-c-0.12, which enables postgis and emul-linux-x86-baselibs[abi_x86_32] to coexist on a system. Afaict the change is backwards compatible.

--- /usr/portage/dev-db/postgis/postgis-2.1.1.ebuild
+++ postgis-2.1.4.ebuild
@@ -27,7 +27,7 @@
 			dev-db/postgresql-server:9.1
 			dev-db/postgresql-server:9.0
 		)
-		<dev-libs/json-c-0.11
+		dev-libs/json-c
 		dev-libs/libxml2:2
 		>=sci-libs/geos-3.3.8
 		>=sci-libs/proj-4.6.0
@@ -98,7 +98,7 @@
 src_prepare() {
 	epatch "${FILESDIR}/${PN}-2.1-ldflags.patch" \
 		"${FILESDIR}/${PN}-2.0-arflags.patch" \
-		"${FILESDIR}/${PN}-2.1-pkgconfig-json.patch"
+		"${FILESDIR}/${PN}-2.1.4-pkgconfig-json.patch"
 
 	local AT_M4DIR="macros"
 	eautoreconf
Comment 4 Thomas Beutin 2014-09-25 13:43:46 UTC
this works for me.
Comment 5 Benjamin Börngen-Schmidt 2014-10-24 00:25:29 UTC
ebuild form eroen compiled on amd64 and seems to be working fine
Comment 6 Benjamin Börngen-Schmidt 2014-10-31 11:10:27 UTC
Created attachment 387878 [details]
postgis-2.1.4.ebuild

ebuild uses patch by eroen for pkgconfig-json

Works on amd64
Comment 7 Aaron W. Swenson gentoo-dev 2014-11-05 16:09:51 UTC
*postgis-2.1.4 (05 Nov 2014)
*postgis-2.0.6 (05 Nov 2014)

  05 Nov 2014; Aaron W. Swenson <titanofold@gentoo.org> +postgis-2.0.6.ebuild,
  +postgis-2.1.4.ebuild, +files/postgis-2.1.4-pkgconfig-json.patch:
  Version bump. Fixes bugs 464392, 507708, and 520694.