I need recent versions of the tools for OpenStreetMap rendering. Unfortunately, the latest postgis fails to config because of two reasons: 1) /etc/conf.d/postgresql does not exist - there is only the versioned name /etc/conf.d/postgresql (can be fixed with symlink) 2) createdb does not accept the option -q (can be omitted) 3) spatial_ref_sys.sql is not in /usr/share/postgresql/contrib but rather /usr/share/postgresql-8.4/contrib (at this point, I gave up) Reproducible: Always
(In reply to comment #0) > ... because of two reasons: ~~~ ^ ahem :-)
Does 'eselect postgresql' help ?
(In reply to comment #2) > Does 'eselect postgresql' help ? does not seem so ... I've removed the symlink I created: # rm /etc/conf.d/postgresql let's see what postgresql version is selected and available: # eselect postgresql show 8.4 # eselect postgresql list Available postgresql installations 8.4 <-* <-S base-8.4.1 server-8.4.1-r1 hm, 8.4 is selected, let's set it again to see if anything changes: # eselect postgresql set 8.4 # ls /etc/conf.d/postgresql* /etc/conf.d/postgresql-8.4 ^ well, doesn't seem that the link would be recreated (or file renamed to the expected "postgresql" without version) and the "-q" option is hardcoded to --config, I don't see a chance that eselect would change it for postgis? and as for /usr/share/postgresql/contrib , it is not empty, so simple linking wouldn't work, so I'm not sure what eselect would be expected to do here?
How about 'eselect postgresql show-all' ? It's the service that you should be looking at, not utilities.
(In reply to comment #4) > How about 'eselect postgresql show-all' ? > It's the service that you should be looking at, > not utilities. um, sorry, I haven't noticed there are different options; here it goes: # eselect postgresql show-all Utilities: 8.4 Service: 8.4 and # eselect postgresql set-all 8.4 doesn't seem to change anything
confirmed. I'll try to get it to work.
Created attachment 216969 [details, diff] quick and dirty ebuild patch to make it work - and only - with postgresql-server-8.4 This ebuild enables postgis-1.4.0 to properly emerge --config and create the template_gis. Be aware though that this ONLY works with postgresql-server-8.4 for now, which is why I bumped the version requirement in this ebuild. TODO: detect installed postgresql version and thus set the install path.
01 May 2011; Aaron W. Swenson <titanofold@gentoo.org> +postgis-1.5.2-r1.ebuild, +files/postgis_dbs, metadata.xml: Fixes bug 273960, 285082, 296172, 314243, 325113 and 339312