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
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.
(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.
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.
*** Bug 424623 has been marked as a duplicate of this bug. ***
*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)