1 |
commit: 01cdebd32204cefdc98f2aeca7c66f9b4a6464bf |
2 |
Author: Aaron W. Swenson <titanofold <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Nov 21 11:17:39 2013 +0000 |
4 |
Commit: Aaron Swenson <titanofold <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Nov 21 11:17:39 2013 +0000 |
6 |
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/pgsql-patches.git;a=commit;h=01cdebd3 |
7 |
|
8 |
pg_config_ext.h symlink |
9 |
|
10 |
Have a new header to create a symlink for. Fixes bug 486674. |
11 |
|
12 |
--- |
13 |
postgresql.eselect | 5 +++++ |
14 |
1 file changed, 5 insertions(+) |
15 |
|
16 |
diff --git a/postgresql.eselect b/postgresql.eselect |
17 |
index 2de4f71..0631dbf 100644 |
18 |
--- a/postgresql.eselect |
19 |
+++ b/postgresql.eselect |
20 |
@@ -186,6 +186,7 @@ do_set() { |
21 |
local sources=( |
22 |
"${B_PATH}"/include/postgresql-${SLOT} |
23 |
"${B_PATH}"/include/postgresql-${SLOT}/libpq-fe.h |
24 |
+ "${B_PATH}"/include/postgresql-${SLOT}/pg_config_ext.h |
25 |
"${B_PATH}"/include/postgresql-${SLOT}/pg_config_manual.h |
26 |
"${B_PATH}"/include/postgresql-${SLOT}/libpq |
27 |
"${B_PATH}"/include/postgresql-${SLOT}/postgres_ext.h |
28 |
@@ -193,6 +194,7 @@ do_set() { |
29 |
local targets=( |
30 |
"${B_PATH}"/include/postgresql |
31 |
"${B_PATH}"/include/libpq-fe.h |
32 |
+ "${B_PATH}"/include/pg_config_ext.h |
33 |
"${B_PATH}"/include/pg_config_manual.h |
34 |
"${B_PATH}"/include/libpq |
35 |
"${B_PATH}"/include/postgres_ext.h |
36 |
@@ -209,6 +211,9 @@ do_set() { |
37 |
[[ -e ${targets[$i]} ]] && \ |
38 |
die -q "The target '${targets[$i]}' exists and could not be removed!" |
39 |
|
40 |
+ # Some headers are present only in specific versions of PostgreSQL |
41 |
+ [[ -e ${sources[$i]} ]] || continue |
42 |
+ |
43 |
# Create relative links so that they work both here and inside the new |
44 |
# root if $ROOT is not "/" |
45 |
rel_source=$(relative_name "${sources[$i]}" "$(dirname "${targets[$i]}")") |