Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 553806

Summary: dev-db/postgis-2.1.7 does not compile with postgresql-9999
Product: Gentoo Linux Reporter: Benjamin Börngen-Schmidt <benjamin>
Component: Current packagesAssignee: PgSQL Bugs <pgsql-bugs>
Status: RESOLVED FIXED    
Severity: normal CC: sci-geosciences
Priority: Normal    
Version: unspecified   
Hardware: AMD64   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: dev-db/postgis-9999.ebuild

Description Benjamin Börngen-Schmidt 2015-07-02 17:35:30 UTC
The new upcomming version of postgresql, 9.5, seems to have changed so drastically, that postgis is not emerging anymore.
The new upcomming version of Postgis (2.2) will be compatible with Postgresql 9.5. Since I'm in the need of using PG9.5 with Postgis, it would be nice to also have a postgis-9999.ebuild

Reproducible: Always

Steps to Reproduce:
1. install postgresql-9999
2. keyword the latest postgis (2.1.7)
3. emerge postgis
Actual Results:  
lwgeom_accum.c: In function ‘pgis_geometry_accum_transfn’:
lwgeom_accum.c:109:46: error: ‘AggState’ has no member named ‘aggcontext’
   aggcontext = ((AggState *) fcinfo->context)->aggcontext;
                                              ^
<builtin>: recipe for target 'lwgeom_accum.o' failed
make[1]: *** [lwgeom_accum.o] Error 1
make[1]: Leaving directory '/tmp/portage/dev-db/postgis-2.1.7/work/postgis-2.1.7/postgis'
GNUmakefile:14: recipe for target 'all' failed
make: *** [all] Error 1
 * ERROR: dev-db/postgis-2.1.7::gentoo failed (compile phase):
 *   emake failed
 * 
 * If you need support, post the output of `emerge --info '=dev-db/postgis-2.1.7::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=dev-db/postgis-2.1.7::gentoo'`.
 * The complete build log is located at '/tmp/portage/dev-db/postgis-2.1.7/temp/build.log'.
 * The ebuild environment file is located at '/tmp/portage/dev-db/postgis-2.1.7/temp/environment'.
 * Working directory: '/tmp/portage/dev-db/postgis-2.1.7/work/postgis-2.1.7'
 * S: '/tmp/portage/dev-db/postgis-2.1.7/work/postgis-2.1.7'
Comment 1 Benjamin Börngen-Schmidt 2015-07-02 17:38:33 UTC
Created attachment 406086 [details]
dev-db/postgis-9999.ebuild

I created an ebuild, that emerges the latest development version of Postgis.
I also added some comments in the ebuild with should be looked at:

 - Not all patches apply -> are they still needed
 - Read the current Postgis version from a file called Version.config -> I do not know how to do this
Comment 2 Patrick Lauer gentoo-dev 2015-07-08 06:07:15 UTC
+  08 Jul 2015; Patrick Lauer <patrick@gentoo.org> postgis-2.1.7.ebuild:
+  Remove postgres-9.5 from valid slots, recent changes upstream have broken
+  compatibility #553806
Comment 3 Patrick Lauer gentoo-dev 2015-07-08 06:28:16 UTC
+  08 Jul 2015; Patrick Lauer <patrick@gentoo.org> +postgis-9999.ebuild:
+  Add live ebuild #553806