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

Bug 325113

Summary: dev-db/postgis-1.5.2 version bump
Product: Gentoo Linux Reporter: Johan Bergström <bugs>
Component: New packagesAssignee: PgSQL Bugs <pgsql-bugs>
Status: RESOLVED FIXED    
Severity: enhancement CC: maxposedon, titanofold
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: postgis-1.5.1.ebuild
postgis-1.5.1 build log
postgis-1.5.1 build log
postgis-1.5.1-r1.ebuild
postgis-1.5.1.ebuild.patch

Description Johan Bergström 2010-06-22 21:27:17 UTC
This version has postgresql 9 compatibility, which also should "fix" bug 325077.
Comment 1 Johan Bergström 2010-06-22 21:29:45 UTC
Created attachment 236285 [details]
postgis-1.5.1.ebuild

Ebuild for postgis. Basically 1.5.0 with some changes:
  - added test suite, yay! (at least the tests based on cunit)
  - revised dependency against imagemagick for docs
  - added dependency against cunit for tests
Comment 2 Johan Bergström 2010-06-22 21:32:06 UTC
The nowadays unused use-flags in metadata.xml can also be removed.
Comment 3 Maksim 'max_posedon' Melnikau 2010-07-14 00:50:20 UTC
more fixes required:
dropdb -q
createdb -q
-q not available for this tools in portgresql-9
Comment 4 Maksim 'max_posedon' Melnikau 2010-07-14 01:07:36 UTC
Created attachment 238669 [details]
postgis-1.5.1 build log

proposed ebuild and portage's, just renamed - both emerge fails for me with such build.log
Comment 5 Aaron W. Swenson gentoo-dev 2010-07-14 01:26:00 UTC
From what I can tell, only 'psql' has the --quiet option.

The line:
    source "${ROOT}"etc/conf.d/postgresql

Won't actually work. You need a slot version after it. You'll also need to know which slot is active. Here's what I would do:
    local SLOT=$(eselect postgresql show)
    source "${ROOT}"etc/conf.d/postgresql-${SLOT}
Comment 6 Maksim 'max_posedon' Melnikau 2010-07-14 07:22:28 UTC
Created attachment 238693 [details]
postgis-1.5.1 build log

(In reply to comment #5)
> The line:
>     source "${ROOT}"etc/conf.d/postgresql
> Won't actually work. You need a slot version after it. You'll also need to know
> which slot is active. Here's what I would do:
>     local SLOT=$(eselect postgresql show)
>     source "${ROOT}"etc/conf.d/postgresql-${SLOT}
better now, but some other issues still present, new build log attached
Comment 7 Aaron W. Swenson gentoo-dev 2010-07-14 15:20:11 UTC
Created attachment 238719 [details]
postgis-1.5.1-r1.ebuild

I've tweaked a few things. Made slotting a bit more pervasive. Also added a check to ensure the server is running before going on with the pkg_config. Also changed the commands to support ports as a machine may have multiple instances of PostgreSQL running. It assumes that what is set by eselect is the slot to shoot for. The ebuild should probably take that into account before it is released into the wild. But for now, here ya go.
Comment 8 Attila Berényi 2010-09-28 09:27:17 UTC
Created attachment 248887 [details, diff]
postgis-1.5.1.ebuild.patch
Comment 9 Attila Berényi 2010-09-28 09:28:32 UTC
Comment on attachment 248887 [details, diff]
postgis-1.5.1.ebuild.patch

A small patch to fix errors coused by wrong path settings.
Comment 10 Johan Bergström 2010-12-19 21:42:23 UTC
Lets take another stab at this, with 1.5.2?
Comment 11 Aaron W. Swenson gentoo-dev 2011-05-01 17:36:59 UTC
  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