aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'postgresql.eselect')
-rw-r--r--postgresql.eselect5
1 files changed, 5 insertions, 0 deletions
diff --git a/postgresql.eselect b/postgresql.eselect
index 2de4f71..0631dbf 100644
--- a/postgresql.eselect
+++ b/postgresql.eselect
@@ -186,6 +186,7 @@ do_set() {
local sources=(
"${B_PATH}"/include/postgresql-${SLOT}
"${B_PATH}"/include/postgresql-${SLOT}/libpq-fe.h
+ "${B_PATH}"/include/postgresql-${SLOT}/pg_config_ext.h
"${B_PATH}"/include/postgresql-${SLOT}/pg_config_manual.h
"${B_PATH}"/include/postgresql-${SLOT}/libpq
"${B_PATH}"/include/postgresql-${SLOT}/postgres_ext.h
@@ -193,6 +194,7 @@ do_set() {
local targets=(
"${B_PATH}"/include/postgresql
"${B_PATH}"/include/libpq-fe.h
+ "${B_PATH}"/include/pg_config_ext.h
"${B_PATH}"/include/pg_config_manual.h
"${B_PATH}"/include/libpq
"${B_PATH}"/include/postgres_ext.h
@@ -209,6 +211,9 @@ do_set() {
[[ -e ${targets[$i]} ]] && \
die -q "The target '${targets[$i]}' exists and could not be removed!"
+ # Some headers are present only in specific versions of PostgreSQL
+ [[ -e ${sources[$i]} ]] || continue
+
# Create relative links so that they work both here and inside the new
# root if $ROOT is not "/"
rel_source=$(relative_name "${sources[$i]}" "$(dirname "${targets[$i]}")")