Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 56091 - dev-db/postgresql pg_config inconsistency
Summary: dev-db/postgresql pg_config inconsistency
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All All
: High normal (vote)
Assignee: PgSQL Bugs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-07-04 14:50 UTC by Eldad Zack (RETIRED)
Modified: 2007-09-22 23:19 UTC (History)
1 user (show)

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


Attachments
postgresql-7.4.3-pg_config.patch (postgresql-7.4.3-pg_config.patch,372 bytes, patch)
2004-07-04 15:40 UTC, Eldad Zack (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Eldad Zack (RETIRED) gentoo-dev 2004-07-04 14:50:39 UTC
# pg_config --includedir
/usr/include

but all the include files are located under /usr/include/postgresql/

using dev-db/postgresql-7.4.3
compiled with: -doc -java +libg++ +nls +pam +perl -pg-hier -pg-intdatetime -pg-vacuumdelay +python +readline +ssl -tcltk +zlib
Comment 1 Eldad Zack (RETIRED) gentoo-dev 2004-07-04 15:36:31 UTC
notice that pg_config is non-standard : it outputs just the dir without the compiler flag.

second thing, the curlpit here is the "install-all-headers", if that is used pg_config's output MUST be changed accordingly (it installs more headers, with sub-directories)

I suggest using a gentoo-specific patch for it (trivial), and raising this upsteam. Do you have a contact within the pgsql people?
Comment 2 Eldad Zack (RETIRED) gentoo-dev 2004-07-04 15:40:54 UTC
Created attachment 34801 [details, diff]
postgresql-7.4.3-pg_config.patch
Comment 3 Masatomo Nakano (RETIRED) gentoo-dev 2004-07-21 12:12:40 UTC
pg_config is set configure flags when it's installed.
the problem is arguments for configure.
i've just fixed postgresql-7.3.6-r2/postgresql-7.4.3-r1.

thank you for reporting.
Comment 4 Seth Robertson 2004-11-22 10:51:57 UTC
Slightly different problem with postgresql-7.4.6

`pgconfig --includedir` works but `pgconfig --includedir-server` does not:

startide seth> pg_config --includedir
/usr/include/postgresql/pgsql
startide seth> pg_config --includedir-server
/usr/include/postgresql/pgsql/server

The actual retail server directory is /usr/include/postgresql/server

startide seth> pg_config --configure
'--prefix=/usr' '--mandir=/usr/share/man' '--host=i686-pc-linux-gnu' '--docdir=/usr/share/doc/postgresql-7.4.6' '--libdir=/usr/lib' '--includedir=/usr/include/postgresql/pgsql' '--enable-depend' '--with-gnu-ld' '--with-maxbackends=1024' '--with-tcl' '--with-python' '--with-perl' '--with-java' '--with-openssl' '--enable-nls' '--with-CXX' '--with-pam' 'CC=gcc' 'CFLAGS=-O2 -march=pentium3 -fomit-frame-pointer' 'host_alias=i686-pc-linux-gnu'
Comment 5 Eldad Zack (RETIRED) gentoo-dev 2006-10-07 09:08:08 UTC
closing this zombie. (no update in 2 years)