Summary: | dev-db/postgresql - pkg_config should allow passing options to initdb | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Matthias Foerste <matthias.foerste> |
Component: | New packages | Assignee: | PgSQL Bugs <pgsql-bugs> |
Status: | RESOLVED FIXED | ||
Severity: | enhancement | CC: | aiwa_azca, esigra, infoman1985, jakub, max.gentoo.bugzilla, n-roeser, seemant |
Priority: | High | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Bug Depends on: | |||
Bug Blocks: | 183764 | ||
Attachments: | suggested patch against postgresql-7.4.2-r1.ebuild |
Description
Matthias Foerste
2004-05-03 10:23:12 UTC
Created attachment 30621 [details, diff]
suggested patch against postgresql-7.4.2-r1.ebuild
This is still not possible with current ebuilds, someone please have a look. *** Bug 154638 has been marked as a duplicate of this bug. *** *** Bug 114988 has been marked as a duplicate of this bug. *** *** Bug 214438 has been marked as a duplicate of this bug. *** *** Bug 214438 has been marked as a duplicate of this bug. *** *** Bug 214438 has been marked as a duplicate of this bug. *** Done in dev-db/postgresql-server. Cheers Please reopen this bug Passing the PGDATA or/and PG_INITDB_OPTS to emerge --config doesn't work as expected. If you intsall the package and then set any or both variables and try to emerge --config postgres, the script will always tell you that PG_INITDB_OPTS is "" and PGDATA is /var/lib/.... (the default) We have tried to set the variables via export, env.d, direct on the command line, etc ... After taking a look into the package environment file we noticed that the variables are not there, whatever we do. Apparently both environment variables MUST be set BEFORE EMERGING the package (???), then the variables also appear in the package environment file. Don't know if this is an issue only with this package (8.3.3 ebuild) or with portage itself. Reproducible : Always. Steps to reproduce : 1. Make sure your environment DOESN'T have PGDATA or PG_INITDB_OPTS 2. EMERGE postgresql-server 8.3.3 (we only tested that one, but i think the other ebuilds will show the same behavior) 3. Set PGDATA and/or PG_INITDB_OPTS to the value you need (eg. -E UTF8 for opts) 4. try emerge --config 5. watch the results 6. set the environment for ALL & ANY user in the system 7. check the environment to make sure the variables are set 8. repeat 4 - 8 until you have no more ideas how to set the environment (9. optional .... jump out the window) Still applicable to dev-db/postgresql-server-8.3.7 (In reply to comment #9) > If you intsall the package and then set any or both variables and try to emerge > --config postgres, the script will always tell you that PG_INITDB_OPTS is "" > and PGDATA is /var/lib/.... (the default) This bug is not fixed. Still present in 8.4.1-r1. Please re-open as all these other bugs which are duplicates of it will erroneously indicate resolved. |