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

Bug 427954

Summary: dev-db/postgresql-server-? ought to work with dev-lang/python:3.*
Product: Gentoo Linux Reporter: schmitt953
Component: [OLD] ServerAssignee: PgSQL Bugs <pgsql-bugs>
Status: RESOLVED FIXED    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: This is a patch to the ebuild. I tested it on my system and I will test it further.

Description schmitt953 2012-07-24 21:53:40 UTC
Postgresql supports python 3 and will build support for whichever version is selected with the python symlink. Our current postgresql-server ebuild requires python2. This should not be the case now that our default python version is 3. I have patched postgresql-server-9.1.4-r1.ebuild. The patch should work for 9.1.4 but I figured I should do this for the newest unmasked build.

If a user wants support for both they must build it again and there are instructions at (http://www.postgresql.org/docs/9.1/static/install-procedure.html) I would love for this to be a news item.

Reproducible: Always
Comment 1 schmitt953 2012-07-24 21:54:32 UTC
Created attachment 319142 [details, diff]
This is a patch to the ebuild. I tested it on my system and I will test it further.

This will make the ebuild use whatever python is default on the user's system.
Comment 2 Jeroen Roovers (RETIRED) gentoo-dev 2012-07-25 01:32:21 UTC
(In reply to comment #0)
> This should not be the case now that our default python
> version is 3.

It isn't the default as such. You merely end up with it installed (and very probably with python2 as well) if you don't do anything about it when you install Gentoo.

> If a user wants support for both they must build it again and there are
> instructions at
> (http://www.postgresql.org/docs/9.1/static/install-procedure.html) I would
> love for this to be a news item.

Building it twice is less then stellar. :)

(In reply to comment #1)
> Created attachment 319142 [details, diff] [details, diff]
> This is a patch to the ebuild. I tested it on my system and I will test it
> further.

Perhaps the patch should remove the entire line instead of leaving `use python' dangling.

> This will make the ebuild use whatever python is default on the user's
> system.

I don't think that's a good idea.
Comment 3 Aaron W. Swenson gentoo-dev 2012-08-15 14:17:27 UTC
The best solution is to add a python3 USE flag. I'm not keen and allowing something like that being left to chance. Especially considering the incompatibility issues between Python 2 and Python 3.

I'll look into implementing this shortly.
Comment 4 Aaron W. Swenson gentoo-dev 2013-02-02 10:57:29 UTC
*** Bug 424623 has been marked as a duplicate of this bug. ***
Comment 5 Aaron W. Swenson gentoo-dev 2013-02-08 18:54:57 UTC
*postgresql-server-9.2.3 (08 Feb 2013)
*postgresql-server-9.1.8 (08 Feb 2013)
*postgresql-server-9.0.12 (08 Feb 2013)
*postgresql-server-8.4.16 (08 Feb 2013)
*postgresql-server-8.3.23 (08 Feb 2013)

  08 Feb 2013; Aaron W. Swenson <titanofold@gentoo.org>
  +postgresql-server-8.3.23.ebuild, +postgresql-server-8.4.16.ebuild,
  +postgresql-server-9.0.12.ebuild, +postgresql-server-9.1.8.ebuild,
  +postgresql-server-9.2.3.ebuild, postgresql-server-9999.ebuild:
  Added kerberos USE flag. (Bug 427948) Use python-single-r1.eclass to build
  PL/Python against the Python of the users choosing. (Bug 427954) 'use'
  instead of 'need' logger in /etc/init.d/postgresql-${SLOT}. (Bug 435280)
  Default to sane character encoding default with --encoding=UTF-8 in
  /etc/conf.d/postgresql-${SLOT}. (Bug 440258) Append ${SLOT} to PAM service
  name; each slot now has its own PAM service file. (Bug 443113) Security
  bump. (Bug 456080)