Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 159223 - postgresql threads USE flag required for ecpg
Summary: postgresql threads USE flag required for ecpg
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: PgSQL Bugs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-12-27 08:49 UTC by Chris Bainbridge (RETIRED)
Modified: 2008-06-07 20:29 UTC (History)
1 user (show)

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


Attachments
postgresql-8.2.4-r1.ebuild.patch (postgresql-8.2.4-r1.ebuild.patch,783 bytes, patch)
2007-07-02 17:03 UTC, Chris Bainbridge (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Chris Bainbridge (RETIRED) gentoo-dev 2006-12-27 08:49:22 UTC
It looks like the threads USE flag was removed a few months ago from the 8.1 ebuild:
http://overlays.gentoo.org/proj/postgresql/changeset/63
http://www.mail-archive.com/gentoo-server@lists.gentoo.org/msg02412.html

Whilst postgresql itself is not multi-threaded, last time I checked ecpg was and is not thread safe unless the thread-safety configure switch is used (eg. see http://archives.postgresql.org/pgsql-novice/2004-09/msg00158.php ). ecpg is still part of the postgresql package so unless the defaults have changed recently the configure flag is still necessary.
Comment 1 Tiziano Müller (RETIRED) gentoo-dev 2007-06-30 20:03:01 UTC
Hmm, has been fixed some time months ago.
Comment 2 Chris Bainbridge (RETIRED) gentoo-dev 2007-07-02 17:03:50 UTC
Created attachment 123701 [details, diff]
postgresql-8.2.4-r1.ebuild.patch

When? It appears not.. and I don't see any changes to the ebuild:

> checking allow thread-safe client libraries... no

Attached a patch for 8.2.4-r1. It just reverts the old commit that changed the enable threads behaviour.
Comment 3 Chris Bainbridge (RETIRED) gentoo-dev 2007-07-02 17:04:21 UTC
Re-opening. Feel free to close if I'm wrong.
Comment 4 Tiziano Müller (RETIRED) gentoo-dev 2008-06-07 20:29:44 UTC
dev-db/postgresql-base contains ecpg and has the threads USE-flag.