aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAaron W. Swenson <titanofold@gentoo.org>2013-11-21 11:17:39 +0000
committerAaron W. Swenson <titanofold@gentoo.org>2013-11-21 11:17:39 +0000
commit01cdebd32204cefdc98f2aeca7c66f9b4a6464bf (patch)
tree51f680229f1577756227e92ced0f7515f740d3d0
parentBump version number. (diff)
downloadeselect-01cdebd32204cefdc98f2aeca7c66f9b4a6464bf.tar.gz
eselect-01cdebd32204cefdc98f2aeca7c66f9b4a6464bf.tar.bz2
eselect-01cdebd32204cefdc98f2aeca7c66f9b4a6464bf.zip
pg_config_ext.h symlink
Have a new header to create a symlink for. Fixes bug 486674.
-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]}")")