Hi, I am trying to build PostgreSQL 8.4 in my Gentoo prefix, and so did a: emerge -va '<dev-db/postgresql-server-8.5' I got through everything until it tried to build postgresql 8.4, then failed with: * QA Notice: the following files are outside of the prefix: * /usr * /usr/lib * /usr/lib/postgresql-8.4 * /usr/lib/postgresql-8.4/lib * /usr/lib/postgresql-8.4/lib/pgxs * /usr/lib/postgresql-8.4/lib/pgxs/src * /usr/lib/postgresql-8.4/lib/pgxs/src/makefiles * /usr/lib/postgresql-8.4/lib/pgxs/src/makefiles/pgxs.mk * /usr/lib/postgresql-8.4/lib/pgxs/src/Makefile.global * /usr/lib/postgresql-8.4/lib/pgxs/src/Makefile.port * /usr/lib/postgresql-8.4/lib/pgxs/src/Makefile.shlib * /usr/lib/postgresql-8.4/lib/pgxs/src/nls-global.mk * /usr/lib/postgresql-8.4/lib/pgxs/config * /usr/lib/postgresql-8.4/lib/pgxs/config/install-sh * /usr/lib/postgresql-8.4/lib/pgxs/config/mkinstalldirs * /usr/lib/postgresql-8.4/lib/libpq.so.5 * /usr/lib/postgresql-8.4/lib/libpgport.a * /usr/lib/postgresql-8.4/lib/libpq.so.5.2 * /usr/lib/postgresql-8.4/lib/libpq.so * /usr/lib/postgresql-8.4/lib/libpgtypes.so.3 * /usr/lib/postgresql-8.4/lib/libpq.a * /usr/lib/postgresql-8.4/lib/libpgtypes.so.3.1 * /usr/lib/postgresql-8.4/lib/libpgtypes.so * /usr/lib/postgresql-8.4/lib/libecpg.so.6 * /usr/lib/postgresql-8.4/lib/libpgtypes.a * /usr/lib/postgresql-8.4/lib/libecpg.so.6.1 * /usr/lib/postgresql-8.4/lib/libecpg.so * /usr/lib/postgresql-8.4/lib/libecpg.a * /usr/lib/postgresql-8.4/lib/libecpg_compat.so.3.1 * /usr/lib/postgresql-8.4/lib/libecpg_compat.so.3 * /usr/lib/postgresql-8.4/lib/libecpg_compat.so * /usr/lib/postgresql-8.4/lib/libecpg_compat.a * /usr/lib/postgresql-8.4/share * /usr/lib/postgresql-8.4/share/locale * /usr/lib/postgresql-8.4/share/locale/cs * /usr/lib/postgresql-8.4/share/locale/cs/LC_MESSAGES * /usr/lib/postgresql-8.4/share/locale/cs/LC_MESSAGES/libpq5-8.4.mo * /usr/lib/postgresql-8.4/share/locale/cs/LC_MESSAGES/psql-8.4.mo * /usr/lib/postgresql-8.4/share/locale/cs/LC_MESSAGES/pgscripts-8.4.mo * /usr/lib/postgresql-8.4/share/locale/de * /usr/lib/postgresql-8.4/share/locale/de/LC_MESSAGES * /usr/lib/postgresql-8.4/share/locale/de/LC_MESSAGES/libpq5-8.4.mo * /usr/lib/postgresql-8.4/share/locale/de/LC_MESSAGES/ecpglib6-8.4.mo * /usr/lib/postgresql-8.4/share/locale/de/LC_MESSAGES/ecpg-8.4.mo * /usr/lib/postgresql-8.4/share/locale/de/LC_MESSAGES/pg_dump-8.4.mo * /usr/lib/postgresql-8.4/share/locale/de/LC_MESSAGES/psql-8.4.mo * /usr/lib/postgresql-8.4/share/locale/de/LC_MESSAGES/pgscripts-8.4.mo * /usr/lib/postgresql-8.4/share/locale/de/LC_MESSAGES/pg_config-8.4.mo * /usr/lib/postgresql-8.4/share/locale/es * /usr/lib/postgresql-8.4/share/locale/es/LC_MESSAGES * /usr/lib/postgresql-8.4/share/locale/es/LC_MESSAGES/libpq5-8.4.mo * /usr/lib/postgresql-8.4/share/locale/es/LC_MESSAGES/ecpglib6-8.4.mo * /usr/lib/postgresql-8.4/share/locale/es/LC_MESSAGES/ecpg-8.4.mo * /usr/lib/postgresql-8.4/share/locale/es/LC_MESSAGES/pg_dump-8.4.mo * /usr/lib/postgresql-8.4/share/locale/es/LC_MESSAGES/psql-8.4.mo * /usr/lib/postgresql-8.4/share/locale/es/LC_MESSAGES/pgscripts-8.4.mo * /usr/lib/postgresql-8.4/share/locale/es/LC_MESSAGES/pg_config-8.4.mo * /usr/lib/postgresql-8.4/share/locale/fr * /usr/lib/postgresql-8.4/share/locale/fr/LC_MESSAGES * /usr/lib/postgresql-8.4/share/locale/fr/LC_MESSAGES/libpq5-8.4.mo * /usr/lib/postgresql-8.4/share/locale/fr/LC_MESSAGES/ecpglib6-8.4.mo * /usr/lib/postgresql-8.4/share/locale/fr/LC_MESSAGES/ecpg-8.4.mo * /usr/lib/postgresql-8.4/share/locale/fr/LC_MESSAGES/pg_dump-8.4.mo * /usr/lib/postgresql-8.4/share/locale/fr/LC_MESSAGES/psql-8.4.mo * /usr/lib/postgresql-8.4/share/locale/fr/LC_MESSAGES/pgscripts-8.4.mo * /usr/lib/postgresql-8.4/share/locale/fr/LC_MESSAGES/pg_config-8.4.mo * /usr/lib/postgresql-8.4/share/locale/it * /usr/lib/postgresql-8.4/share/locale/it/LC_MESSAGES * /usr/lib/postgresql-8.4/share/locale/it/LC_MESSAGES/libpq5-8.4.mo * /usr/lib/postgresql-8.4/share/locale/it/LC_MESSAGES/ecpglib6-8.4.mo * /usr/lib/postgresql-8.4/share/locale/it/LC_MESSAGES/ecpg-8.4.mo * /usr/lib/postgresql-8.4/share/locale/it/LC_MESSAGES/pg_dump-8.4.mo * /usr/lib/postgresql-8.4/share/locale/it/LC_MESSAGES/psql-8.4.mo * /usr/lib/postgresql-8.4/share/locale/it/LC_MESSAGES/pgscripts-8.4.mo * /usr/lib/postgresql-8.4/share/locale/it/LC_MESSAGES/pg_config-8.4.mo * /usr/lib/postgresql-8.4/share/locale/ja * /usr/lib/postgresql-8.4/share/locale/ja/LC_MESSAGES * /usr/lib/postgresql-8.4/share/locale/ja/LC_MESSAGES/libpq5-8.4.mo * /usr/lib/postgresql-8.4/share/locale/ja/LC_MESSAGES/ecpglib6-8.4.mo * /usr/lib/postgresql-8.4/share/locale/ja/LC_MESSAGES/ecpg-8.4.mo * /usr/lib/postgresql-8.4/share/locale/ja/LC_MESSAGES/pg_dump-8.4.mo * /usr/lib/postgresql-8.4/share/locale/ja/LC_MESSAGES/psql-8.4.mo * /usr/lib/postgresql-8.4/share/locale/ja/LC_MESSAGES/pgscripts-8.4.mo * /usr/lib/postgresql-8.4/share/locale/ja/LC_MESSAGES/pg_config-8.4.mo * /usr/lib/postgresql-8.4/share/locale/ko * /usr/lib/postgresql-8.4/share/locale/ko/LC_MESSAGES * /usr/lib/postgresql-8.4/share/locale/ko/LC_MESSAGES/libpq5-8.4.mo * /usr/lib/postgresql-8.4/share/locale/ko/LC_MESSAGES/ecpg-8.4.mo * /usr/lib/postgresql-8.4/share/locale/ko/LC_MESSAGES/pg_dump-8.4.mo * /usr/lib/postgresql-8.4/share/locale/ko/LC_MESSAGES/psql-8.4.mo * /usr/lib/postgresql-8.4/share/locale/ko/LC_MESSAGES/pgscripts-8.4.mo * /usr/lib/postgresql-8.4/share/locale/ko/LC_MESSAGES/pg_config-8.4.mo * /usr/lib/postgresql-8.4/share/locale/pt_BR * /usr/lib/postgresql-8.4/share/locale/pt_BR/LC_MESSAGES * /usr/lib/postgresql-8.4/share/locale/pt_BR/LC_MESSAGES/libpq5-8.4.mo * /usr/lib/postgresql-8.4/share/locale/pt_BR/LC_MESSAGES/ecpglib6-8.4.mo * /usr/lib/postgresql-8.4/share/locale/pt_BR/LC_MESSAGES/ecpg-8.4.mo * /usr/lib/postgresql-8.4/share/locale/pt_BR/LC_MESSAGES/pg_dump-8.4.mo * /usr/lib/postgresql-8.4/share/locale/pt_BR/LC_MESSAGES/psql-8.4.mo * /usr/lib/postgresql-8.4/share/locale/pt_BR/LC_MESSAGES/pgscripts-8.4.mo * /usr/lib/postgresql-8.4/share/locale/pt_BR/LC_MESSAGES/pg_config-8.4.mo * /usr/lib/postgresql-8.4/share/locale/ru * /usr/lib/postgresql-8.4/share/locale/ru/LC_MESSAGES * /usr/lib/postgresql-8.4/share/locale/ru/LC_MESSAGES/libpq5-8.4.mo * /usr/lib/postgresql-8.4/share/locale/ru/LC_MESSAGES/pg_config-8.4.mo * /usr/lib/postgresql-8.4/share/locale/sv * /usr/lib/postgresql-8.4/share/locale/sv/LC_MESSAGES * /usr/lib/postgresql-8.4/share/locale/sv/LC_MESSAGES/libpq5-8.4.mo * /usr/lib/postgresql-8.4/share/locale/sv/LC_MESSAGES/pg_dump-8.4.mo * /usr/lib/postgresql-8.4/share/locale/sv/LC_MESSAGES/psql-8.4.mo * /usr/lib/postgresql-8.4/share/locale/sv/LC_MESSAGES/pgscripts-8.4.mo * /usr/lib/postgresql-8.4/share/locale/sv/LC_MESSAGES/pg_config-8.4.mo * /usr/lib/postgresql-8.4/share/locale/ta * /usr/lib/postgresql-8.4/share/locale/ta/LC_MESSAGES * /usr/lib/postgresql-8.4/share/locale/ta/LC_MESSAGES/libpq5-8.4.mo * /usr/lib/postgresql-8.4/share/locale/ta/LC_MESSAGES/pgscripts-8.4.mo * /usr/lib/postgresql-8.4/share/locale/ta/LC_MESSAGES/pg_config-8.4.mo * /usr/lib/postgresql-8.4/share/locale/tr * /usr/lib/postgresql-8.4/share/locale/tr/LC_MESSAGES * /usr/lib/postgresql-8.4/share/locale/tr/LC_MESSAGES/libpq5-8.4.mo * /usr/lib/postgresql-8.4/share/locale/tr/LC_MESSAGES/ecpglib6-8.4.mo * /usr/lib/postgresql-8.4/share/locale/tr/LC_MESSAGES/ecpg-8.4.mo * /usr/lib/postgresql-8.4/share/locale/tr/LC_MESSAGES/pg_dump-8.4.mo * /usr/lib/postgresql-8.4/share/locale/tr/LC_MESSAGES/psql-8.4.mo * /usr/lib/postgresql-8.4/share/locale/tr/LC_MESSAGES/pgscripts-8.4.mo * /usr/lib/postgresql-8.4/share/locale/tr/LC_MESSAGES/pg_config-8.4.mo * /usr/lib/postgresql-8.4/share/locale/zh_CN * /usr/lib/postgresql-8.4/share/locale/zh_CN/LC_MESSAGES * /usr/lib/postgresql-8.4/share/locale/zh_CN/LC_MESSAGES/libpq5-8.4.mo * /usr/lib/postgresql-8.4/share/locale/zh_CN/LC_MESSAGES/ecpglib6-8.4.mo * /usr/lib/postgresql-8.4/share/locale/zh_CN/LC_MESSAGES/ecpg-8.4.mo * /usr/lib/postgresql-8.4/share/locale/zh_CN/LC_MESSAGES/pg_dump-8.4.mo * /usr/lib/postgresql-8.4/share/locale/zh_CN/LC_MESSAGES/psql-8.4.mo * /usr/lib/postgresql-8.4/share/locale/zh_CN/LC_MESSAGES/pgscripts-8.4.mo * /usr/lib/postgresql-8.4/share/locale/zh_CN/LC_MESSAGES/pg_config-8.4.mo * /usr/lib/postgresql-8.4/share/locale/zh_TW * /usr/lib/postgresql-8.4/share/locale/zh_TW/LC_MESSAGES * /usr/lib/postgresql-8.4/share/locale/zh_TW/LC_MESSAGES/libpq5-8.4.mo * /usr/lib/postgresql-8.4/share/locale/zh_TW/LC_MESSAGES/ecpg-8.4.mo * /usr/lib/postgresql-8.4/share/locale/zh_TW/LC_MESSAGES/pg_dump-8.4.mo * /usr/lib/postgresql-8.4/share/locale/zh_TW/LC_MESSAGES/psql-8.4.mo * /usr/lib/postgresql-8.4/share/locale/zh_TW/LC_MESSAGES/pgscripts-8.4.mo * /usr/lib/postgresql-8.4/share/locale/zh_TW/LC_MESSAGES/pg_config-8.4.mo * /usr/lib/postgresql-8.4/share/locale/ro * /usr/lib/postgresql-8.4/share/locale/ro/LC_MESSAGES * /usr/lib/postgresql-8.4/share/locale/ro/LC_MESSAGES/pgscripts-8.4.mo * /usr/lib/postgresql-8.4/share/locale/ro/LC_MESSAGES/pg_config-8.4.mo * /usr/lib/postgresql-8.4/share/locale/nb * /usr/lib/postgresql-8.4/share/locale/nb/LC_MESSAGES * /usr/lib/postgresql-8.4/share/locale/nb/LC_MESSAGES/pg_config-8.4.mo * /usr/lib/postgresql-8.4/bin * /usr/lib/postgresql-8.4/bin/ecpg * /usr/lib/postgresql-8.4/bin/pg_dump * /usr/lib/postgresql-8.4/bin/pg_restore * /usr/lib/postgresql-8.4/bin/pg_dumpall * /usr/lib/postgresql-8.4/bin/psql * /usr/lib/postgresql-8.4/bin/createdb * /usr/lib/postgresql-8.4/bin/dropdb * /usr/lib/postgresql-8.4/bin/createlang * /usr/lib/postgresql-8.4/bin/droplang * /usr/lib/postgresql-8.4/bin/createuser * /usr/lib/postgresql-8.4/bin/dropuser * /usr/lib/postgresql-8.4/bin/clusterdb * /usr/lib/postgresql-8.4/bin/vacuumdb * /usr/lib/postgresql-8.4/bin/reindexdb * /usr/lib/postgresql-8.4/bin/pg_config * /usr/lib/postgresql-8.4/bin/oid2name * /usr/lib/postgresql-8.4/bin/pgbench * /usr/lib/postgresql-8.4/bin/vacuumlo Examining how it invokes ./configure, I can see it passing --prefix=/usr/lib/postgresql-8.4 to it.... obviously this is incorrect. However, looking through the ebuild, I cannot see how to change this. By the way, PostgreSQL 9.0 builds just fine. Thanks, regards, Asfand
Created attachment 266719 [details] ebuild configuring
Give 8.4.7-r1 from the main gentoo-x86 tree a shot.
hmmm, is that version supposed to be Prefix Proof(tm)?
Correction: this happens while building postgresql-base - it doesn't get as far as postgresql-server. 8.4.6 is the latest version in the 8 series that is in the prefix, hence the bug report. The next one up is 9.0.2, which I cannot use due to needing to stay close in terms of version numbers to what is used in my organization. What do I have to put in the ebuild file to make it pass a --prefix of ${EPREFIX}/usr/lib/postgresql-8.4 ? That should fix the problem.
I have to bring in the .7 for -base still. I hope this afternoon.
Fabian: I've moved the ebuilds to EAPI3 and have done all the ${D} to ${ED}, ${ROOT} to ${EROOT} conversions. Should require little more than a copy/paste. I do have to fix a typo in postgresql-base-9.0.3-r1.ebuild, but that's about it.
And I fixed the typo, so 9.0.3-r1 should be good now.
Well, having dug a bit further, I produced a patch which makes 8.4.6 compile. Attached.
Created attachment 266835 [details, diff] Let postgresql-base-8.4.6 compile
ebuilds are now from gx86, please reevaluate
Latest ebuilds work for me - postgresql-base and postgresql-server 8.4.7-r2 are both installed on my x86/debian prefix