Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 38062 - add postgis (GIS extensions for postgresql) as USE flag
Summary: add postgis (GIS extensions for postgresql) as USE flag
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All All
: High enhancement (vote)
Assignee: PgSQL Bugs
URL:
Whiteboard:
Keywords:
Depends on: 38060
Blocks:
  Show dependency tree
 
Reported: 2004-01-13 01:50 UTC by Nathaniel C. Domingo
Modified: 2007-09-22 23:15 UTC (History)
3 users (show)

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


Attachments
postgresql-7.4.1-r2.ebuild (postgresql-7.4.1-r2.ebuild,9.00 KB, text/plain)
2004-01-13 01:51 UTC, Nathaniel C. Domingo
Details
postgresql-7.4.3-r99.ebuild (postgresql-7.4.3-r99.ebuild,9.01 KB, text/plain)
2004-07-12 05:04 UTC, Andreas Hocevar
Details
Updated to postgres-7.4.5-r1, postgis-0.9.0. Builds OK, please test (postgresql-7.4.5-r1.ebuild,10.67 KB, text/plain)
2004-09-30 11:42 UTC, Jeff Kowalczyk
Details
diff against postgresql-7.4.6.ebuild to add USE postgis support (postgresql-7.4.6.ebuild.addusepostgis.diff,3.61 KB, patch)
2004-12-29 14:10 UTC, Jeff Kowalczyk
Details | Diff
postgresql-7.4.6.ebuild to add USE postgis support (postgresql-7.4.6.ebuild,10.67 KB, text/plain)
2004-12-29 14:12 UTC, Jeff Kowalczyk
Details
diff against postgresql-8.0.0_rc2.ebuild to add USE postgis support (postgresql-8.0.0_rc2.ebuild.addusepostgis.diff,2.87 KB, patch)
2004-12-29 14:13 UTC, Jeff Kowalczyk
Details | Diff
postgresql-8.0.0_rc2.ebuild to add USE postgis support (postgresql-8.0.0_rc2.ebuild,7.80 KB, text/plain)
2004-12-29 14:14 UTC, Jeff Kowalczyk
Details
diff against postgresql-8.0.0_rc3.ebuild to add USE postgis support (postgresql-8.0.0_rc3.ebuild.addusepostgis.diff,2.71 KB, patch)
2005-01-04 10:37 UTC, Jeff Kowalczyk
Details | Diff
postgresql-8.0.0_rc3.ebuild to add USE postgis support (postgresql-8.0.0_rc3.ebuild,7.80 KB, text/plain)
2005-01-04 10:38 UTC, Jeff Kowalczyk
Details
diff against postgresql-8.0.0_rc4.ebuild to add USE postgis support (postgresql-8.0.0_rc4.ebuild.addusepostgis.diff,2.69 KB, patch)
2005-01-07 11:40 UTC, Jeff Kowalczyk
Details | Diff
postgresql-8.0.0_rc4.ebuild to add USE postgis support (postgresql-8.0.0_rc4.ebuild,7.86 KB, text/plain)
2005-01-07 11:40 UTC, Jeff Kowalczyk
Details
ebuild for 8.0.1 (postgresql-8.0.1-r3.ebuild,8.19 KB, text/plain)
2005-04-03 15:16 UTC, Daniel Holth
Details
patch against postgresql 8.0.1-r4 to add postgis USE flag (postgis-1.0.0-postgresql-8.0.1-r4.patch,3.24 KB, patch)
2005-05-17 18:41 UTC, Daniel Holth
Details | Diff
postgresql 8.0.3 with postgis as a USE flag (postgresql-8.0.3.ebuild,8.10 KB, text/plain)
2005-05-24 13:56 UTC, Daniel Holth
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Nathaniel C. Domingo 2004-01-13 01:50:23 UTC
This is an update to the postgresql ebuild. The update aims to add postgis (GIS extensions http://postgis.refractions.net) support as a use flag in postgresql. This aims to replace the existence of the postgis ebuild which fetches the postgresql source tree and tries to recreate the postgresql installation. I think that this will be more convenient.
Comment 1 Nathaniel C. Domingo 2004-01-13 01:51:04 UTC
Created attachment 23725 [details]
postgresql-7.4.1-r2.ebuild
Comment 2 Nathaniel C. Domingo 2004-01-13 01:52:13 UTC
this ebuild is dependent on the geos library which I also just submitted an ebuild.
Comment 3 Andreas Hocevar 2004-07-12 05:04:37 UTC
Created attachment 35246 [details]
postgresql-7.4.3-r99.ebuild

This is a version upgrade to the previously posted ebuild. It now uses
postgis-0.8.1 and depends on geos, for which an ebuild is available on
bugs.gentoo.org
Comment 4 Jeff Kowalczyk 2004-09-30 11:42:14 UTC
Created attachment 40796 [details]
Updated to postgres-7.4.5-r1, postgis-0.9.0. Builds OK, please test

When integrating postgis-0.9.0, I removed as many diffs as I could to the
current postgres-7.4.5-r1 ebuild. I also updated the geos ebuild to 2.0.0
http://bugs.gentoo.org/show_bug.cgi?id=38060

This ebuild emerged correctly, but I know nothing about *using* postgis yet,
and don't have any ready data available, so more experienced users please test.


Postgis doesn't seem any more obtrusive to the ebuild than pgheir or other
postgres options. Lets get one of the maintainers to mainline this and geos as
soon as possible.

Anyone want to create a companion ebuild against postgresql-8.0.0-beta*, so
that postgis will be ready when 8.0.0 final is released?
Comment 5 Jim C. Nasby 2004-10-01 10:05:13 UTC
Wish I'd looked here before updating the PostGIS port.

Can someone get this into CVS please?
Comment 6 Jeff Kowalczyk 2004-12-29 14:10:58 UTC
Created attachment 47161 [details, diff]
diff against postgresql-7.4.6.ebuild to add USE postgis support 

This attachment is a diff to add USE postgis support to
postgresql-7.4.6.ebuild. I've tested the build/emerge process. Others please
test the actual functionality of postgis integration.

Note the dependency on sci-libs/geos. There is a new ebuild for that in bug
http://bugs.gentoo.org/show_bug.cgi?id=38060 The other dependency proj, is
already committed to sci-libs/proj.

Please add this change to CVS as soon as possible. I would like to have uniform
support for USE postgis in both 7.4.6 and 8.0.0 in time for the final 8.0
release.
Comment 7 Jeff Kowalczyk 2004-12-29 14:12:12 UTC
Created attachment 47162 [details]
postgresql-7.4.6.ebuild to add USE postgis support

This attachment is a complete ebuild to add USE postgis support to
postgresql-7.4.6.ebuild. I've tested the build/emerge process. Others please
test the actual functionality of postgis integration.

Note the dependency on sci-libs/geos. There is a new ebuild for that in bug
http://bugs.gentoo.org/show_bug.cgi?id=38060 The other dependency proj, is
already committed to sci-libs/proj.

Please add this change to CVS as soon as possible. I would like to have uniform
support for USE postgis in both 7.4.6 and 8.0.0 in time for the final 8.0
release.
Comment 8 Jeff Kowalczyk 2004-12-29 14:13:36 UTC
Created attachment 47163 [details, diff]
diff against postgresql-8.0.0_rc2.ebuild to add USE postgis support

This attachment is a diff to add USE postgis support to
postgresql-8.0.0_rc2.ebuild. I've tested the build/emerge process. Others
please test the actual functionality of postgis integration.

Note the dependency on sci-libs/geos. There is a new ebuild for that in bug
http://bugs.gentoo.org/show_bug.cgi?id=38060 The other dependency proj, is
already committed to sci-libs/proj.

Please add this change to CVS as soon as possible. I would like to have uniform
support for USE postgis in both 7.4.6 and 8.0.0 in time for the final 8.0
release.
Comment 9 Jeff Kowalczyk 2004-12-29 14:14:39 UTC
Created attachment 47164 [details]
postgresql-8.0.0_rc2.ebuild to add USE postgis support

This attachment is an ebuild to add USE postgis support to
postgresql-8.0.0_rc2.ebuild. I've tested the build/emerge process. Others
please test the actual functionality of postgis integration.

Note the dependency on sci-libs/geos. There is a new ebuild for that in bug
http://bugs.gentoo.org/show_bug.cgi?id=38060 The other dependency proj, is
already committed to sci-libs/proj.

Please add this change to CVS as soon as possible. I would like to have uniform
support for USE postgis in both 7.4.6 and 8.0.0 in time for the final 8.0
release.
Comment 10 Jeff Kowalczyk 2005-01-04 10:37:35 UTC
Created attachment 47620 [details, diff]
diff against postgresql-8.0.0_rc3.ebuild to add USE postgis support

This attachment is a diff to add USE postgis support to
postgresql-8.0.0_rc3.ebuild. I've tested the build/emerge process. Others
please test the actual functionality of postgis integration.

Note the dependency on sci-libs/geos. There is a new ebuild for that in bug
http://bugs.gentoo.org/show_bug.cgi?id=38060 The other dependency proj, is
already committed to sci-libs/proj.

Please add this change to CVS as soon as possible. I would like to have uniform

support for USE postgis in both 7.4.6 and 8.0.0 in time for the final 8.0
release.
Comment 11 Jeff Kowalczyk 2005-01-04 10:38:36 UTC
Created attachment 47621 [details]
postgresql-8.0.0_rc3.ebuild to add USE postgis support

This attachment is an ebuild to add USE postgis support to
postgresql-8.0.0_rc3.ebuild. I've tested the build/emerge process. Others
please test the actual functionality of postgis integration.

Note the dependency on sci-libs/geos. There is a new ebuild for that in bug
http://bugs.gentoo.org/show_bug.cgi?id=38060 The other dependency proj, is
already committed to sci-libs/proj.

Please add this change to CVS as soon as possible. I would like to have uniform

support for USE postgis in both 7.4.6 and 8.0.0 in time for the final 8.0
release.
Comment 12 Jeff Kowalczyk 2005-01-07 11:40:24 UTC
Created attachment 47883 [details, diff]
diff against postgresql-8.0.0_rc4.ebuild to add USE postgis support

This attachment is a diff to add USE postgis support to
postgresql-8.0.0_rc4.ebuild. I've tested the build/emerge process. Others
please test the actual functionality of postgis integration.

Note the dependency on sci-libs/geos. There is a new ebuild for that in bug
http://bugs.gentoo.org/show_bug.cgi?id=38060 The other dependency proj, is
already committed to sci-libs/proj.

Please add this change to CVS as soon as possible. I would like to have uniform
support for USE postgis in both 7.4.6 and 8.0.0 in time for the final 8.0
release.
Comment 13 Jeff Kowalczyk 2005-01-07 11:40:59 UTC
Created attachment 47884 [details]
postgresql-8.0.0_rc4.ebuild to add USE postgis support

This attachment is an ebuild to add USE postgis support to
postgresql-8.0.0_rc4.ebuild. I've tested the build/emerge process. Others
please test the actual functionality of postgis integration.

Note the dependency on sci-libs/geos. There is a new ebuild for that in bug
http://bugs.gentoo.org/show_bug.cgi?id=38060 The other dependency proj, is
already committed to sci-libs/proj.

Please add this change to CVS as soon as possible. I would like to have uniform
support for USE postgis in both 7.4.6 and 8.0.0 in time for the final 8.0
release.
Comment 14 Daniel Holth 2005-04-03 15:16:44 UTC
Created attachment 55233 [details]
ebuild for 8.0.1

I updated the ebuild for the newer postgresql. It's basically a manual
application of the older patch. Works fine! I just tested a geometry column.

I love postgis, it is wonderful, and I think it is really nice to have it as a
USE option. There are just a couple of steps to activate it on a particular
database once it's installed.
Comment 15 Masatomo Nakano (RETIRED) gentoo-dev 2005-04-04 04:15:17 UTC
hi,

i'm going to this ebuild to portage. (it would be 8.0.1-r3)
can i ask a question before that?

Is there a reason that you've added LDFLAGS=-lstdc++.
Does postgis requires it?
Comment 16 Daniel Holth 2005-05-17 15:35:20 UTC
(In reply to comment #15)
> hi,
> 
> i'm going to this ebuild to portage. (it would be 8.0.1-r3)
> can i ask a question before that?
> 
> Is there a reason that you've added LDFLAGS=-lstdc++.
> Does postgis requires it?

I'm fairly certain some of postgis's dependencies are written in C++.
Comment 17 Daniel Holth 2005-05-17 16:55:49 UTC
Stand by for a postgis patch against 8.0.1-r4

Here is an example of why postgis is excellent. zone contains US time zone
polygons. This query searches for all the time zones whose bounding boxes
overlap 81 W, 27 N (in Florida, where I live) and it gives the correct answer.

GEOS (the C++ dependency) allows more precise A inside B queries but it is
probably be faster to narrow it down with bounding boxes first.

gis=# select timezone, box2d(the_geom) from zone where the_geom &&
GeometryFromText('POINT(-81 27)');
 timezone |                                   box2d
----------+----------------------------------------------------------------------------
 Eastern  | BOX(-86.8262176513672 25.1177921295166,-66.9534225463867
47.4619216918945)
Comment 18 Daniel Holth 2005-05-17 17:23:29 UTC
Postgis 1.0.0 released 2005/04/19.
Comment 19 Daniel Holth 2005-05-17 18:41:12 UTC
Created attachment 59168 [details, diff]
patch against postgresql 8.0.1-r4 to add postgis USE flag

I've worked on this as much as I can for now and I'd appreciate other
interested eyes. I have it working with the geos functions now.

Bugs: had to comment out patches ; installs files in /usr/share/contrib ; does
not  install any postgis utility scripts.
Comment 20 Daniel Holth 2005-05-24 13:56:17 UTC
Created attachment 59738 [details]
postgresql 8.0.3 with postgis as a USE flag
Comment 21 Nathaniel C. Domingo 2005-05-24 23:21:41 UTC
i tried using the patch for 8.0.1-r4 and it worked for me.
i hope this gets into the portage tree.
Comment 22 Tiziano Müller (RETIRED) gentoo-dev 2006-09-30 14:00:48 UTC
We have a separat package for postgis now: dev-db/postgis and won't include postgis directly in the postgresql-ebuild therefore.