Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 486674 - app-admin/eselect-postgresql with >=dev-db/postgresql-base-9.3 should generate /usr/include/pg_config_ext.h symlink
Summary: app-admin/eselect-postgresql with >=dev-db/postgresql-base-9.3 should generat...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All All
: Normal normal (vote)
Assignee: Aaron W. Swenson
URL:
Whiteboard:
Keywords: PATCH
: 485654 488476 496242 (view as bug list)
Depends on:
Blocks:
 
Reported: 2013-10-01 14:47 UTC by Arfrever Frehtes Taifersar Arahesis
Modified: 2013-12-28 13:03 UTC (History)
4 users (show)

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


Attachments
postgresql.eselect.patch (postgresql.eselect.patch,1.05 KB, patch)
2013-10-01 14:55 UTC, Arfrever Frehtes Taifersar Arahesis
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Arfrever Frehtes Taifersar Arahesis 2013-10-01 14:47:28 UTC
eselect-postgresql-1.2.0/postgresql.eselect contains:

    # Sources and targets for header files
    local sources=(
        "${B_PATH}"/include/postgresql-${SLOT}
        "${B_PATH}"/include/postgresql-${SLOT}/libpq-fe.h
        "${B_PATH}"/include/postgresql-${SLOT}/pg_config_manual.h
        "${B_PATH}"/include/postgresql-${SLOT}/libpq
        "${B_PATH}"/include/postgresql-${SLOT}/postgres_ext.h
    )
    local targets=(
        "${B_PATH}"/include/postgresql
        "${B_PATH}"/include/libpq-fe.h
        "${B_PATH}"/include/pg_config_manual.h
        "${B_PATH}"/include/libpq
        "${B_PATH}"/include/postgres_ext.h
    )

Between postgresql-base-9.2.4 and postgresql-base-9.3.0 postgres_ext.h started to #include pg_config_ext.h.

$ cd /tmp
$ echo '#include <libpq-fe.h>' > test.c
$ gcc -c test.c
In file included from /usr/include/libpq-fe.h:29:0,
                 from test.c:1:
/usr/include/postgres_ext.h:26:27: fatal error: pg_config_ext.h: No such file or directory
compilation terminated.
Comment 1 Arfrever Frehtes Taifersar Arahesis 2013-10-01 14:55:44 UTC
Created attachment 359910 [details, diff]
postgresql.eselect.patch

This patch works for me.
Comment 2 Jeroen Roovers (RETIRED) gentoo-dev 2013-10-18 14:47:57 UTC
*** Bug 488476 has been marked as a duplicate of this bug. ***
Comment 3 Jeroen Roovers (RETIRED) gentoo-dev 2013-10-18 14:48:30 UTC
*** Bug 485654 has been marked as a duplicate of this bug. ***
Comment 4 Aaron W. Swenson gentoo-dev 2013-10-20 21:31:47 UTC
I'm considering removing the header symlinks from the eselect module. Build systems or command-line should be using pg_config to get the include directory, not guessing.

However, I'll include this for now as removing it will take some coordination.
Comment 5 Aaron W. Swenson gentoo-dev 2013-11-21 11:51:03 UTC
*eselect-postgresql-1.2.1 (21 Nov 2013)

  21 Nov 2013; Aaron W. Swenson <titanofold@gentoo.org>
  -eselect-postgresql-1.0.10.ebuild, +eselect-postgresql-1.2.1.ebuild:
  Add symlink handling for pg_config_ext.h. Fixes bug 486674.
Comment 6 Jeroen Roovers (RETIRED) gentoo-dev 2013-12-28 13:03:53 UTC
*** Bug 496242 has been marked as a duplicate of this bug. ***