diff options
author | David Spencer <idlemoor@slackbuilds.org> | 2018-02-11 16:57:38 +0000 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2018-02-17 07:42:53 +0700 |
commit | 743727e719717274c672a12f298fb660f6e83e7b (patch) | |
tree | e8bcf2f32ecffbed04266766480c155db50b58d4 /games/cyphesis | |
parent | 0023a1b9b9ba676fdc86f42f30f603a4be918b40 (diff) |
games/cyphesis: Patched to build with postgresql-10.2.
Signed-off-by: David Spencer <idlemoor@slackbuilds.org>
Diffstat (limited to 'games/cyphesis')
-rw-r--r-- | games/cyphesis/cyphesis-0.6.2-pg10.patch | 18 | ||||
-rw-r--r-- | games/cyphesis/cyphesis.SlackBuild | 4 |
2 files changed, 22 insertions, 0 deletions
diff --git a/games/cyphesis/cyphesis-0.6.2-pg10.patch b/games/cyphesis/cyphesis-0.6.2-pg10.patch new file mode 100644 index 0000000000000..6683921d528dc --- /dev/null +++ b/games/cyphesis/cyphesis-0.6.2-pg10.patch @@ -0,0 +1,18 @@ +diff -up ./m4/libpq.m4.pg10 ./m4/libpq.m4 +--- ./m4/libpq.m4.pg10 2017-12-18 11:33:49.378910317 -0500 ++++ ./m4/libpq.m4 2017-12-18 11:34:16.833013133 -0500 +@@ -47,11 +47,11 @@ AC_ARG_ENABLE(psqltest, [ --disable-psq + PG_LIBS="-L`$PG_CONFIG $psqlconf_args --libdir`" + + psql_major_version=`$PG_CONFIG $psql_args --version | \ +- sed 's/PostgreSQL \([[0-9]]*\).\([[0-9]]*\)\(.\([[0-9]]*\)\).*$/\1/'` ++ sed 's/PostgreSQL \([[0-9]]*\)\.\([[0-9]]*\)\(\.*\([[0-9]]*\)\).*$/\1/'` + psql_minor_version=`$PG_CONFIG $psql_args --version | \ +- sed 's/PostgreSQL \([[0-9]]*\).\([[0-9]]*\)\(.\([[0-9]]*\)\).*$/\2/'` ++ sed 's/PostgreSQL \([[0-9]]*\)\.\([[0-9]]*\)\(\.*\([[0-9]]*\)\).*$/\2/'` + psql_micro_version=`$PG_CONFIG $psql_config_args --version | \ +- sed 's/PostgreSQL \([[0-9]]*\).\([[0-9]]*\)\(.\([[0-9]]*\)\).*$/\4/'` ++ sed 's/PostgreSQL \([[0-9]]*\)\.\([[0-9]]*\)\(\.*\([[0-9]]*\)\).*$/\4/'` + if test "x$psql_micro_version" = "x" ; then + psql_micro_version=0 + fi diff --git a/games/cyphesis/cyphesis.SlackBuild b/games/cyphesis/cyphesis.SlackBuild index 2a46ed9736365..6513175c96981 100644 --- a/games/cyphesis/cyphesis.SlackBuild +++ b/games/cyphesis/cyphesis.SlackBuild @@ -69,6 +69,10 @@ find -L . \ \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \ -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; +# Fix build with postgresql 10 (patch from Fedora) +patch -p0 < $CWD/cyphesis-0.6.2-pg10.patch +autoreconf -vif + CFLAGS="$SLKCFLAGS" \ CXXFLAGS="$SLKCFLAGS" \ ./configure \ |