From 688b2e029a7982dd85663e64538b9820baef7984 Mon Sep 17 00:00:00 2001 From: John Marino Date: Sun, 20 Jul 2014 20:42:23 +0000 Subject: [PATCH] databases/galera: change USE_PYTHON to USE_PYTHON_BUILD Also adjust RUN_DEPENDS and BUILD_DEPENDS and fix LD_LIBRARY_PATH PR: 190364 Submitted by: maintainer (Horia Racoviceanu) --- databases/galera/Makefile | 11 +++++------ databases/galera/files/garb.in | 2 +- 2 files changed, 6 insertions(+), 7 deletions(-) diff --git a/databases/galera/Makefile b/databases/galera/Makefile index b4b2483e8ed0..c62dd1bb82f5 100644 --- a/databases/galera/Makefile +++ b/databases/galera/Makefile @@ -4,6 +4,7 @@ PORTNAME= galera PORTVERSION= 25.3.5 DISTVERSIONSUFFIX= -src +PORTREVISION= 1 CATEGORIES= databases MASTER_SITES= https://launchpadlibrarian.net/170877450/ @@ -23,7 +24,7 @@ USES= scons shebangfix USE_CXXSTD= c++11 USE_LDCONFIG= yes USE_OPENSSL= yes -USE_PYTHON= yes +USE_PYTHON_BUILD= yes MAKE_CMD= ${SCONS} -j${MAKE_JOBS_NUMBER} --config=force @@ -70,9 +71,11 @@ GARB_USE= RC_SUBR=garb .if ${OSVERSION} > 1000000 BUILD_DEPENDS+= asio>=0:${PORTSDIR}/net/asio -RUN_DEPENDS:= ${BUILD_DEPENDS} +RUN_DEPENDS+= asio>=0:${PORTSDIR}/net/asio +SUB_LIST= LD_LIBRARY_PATH=$$LD_LIBRARY_PATH .else USE_GCC= yes +SUB_LIST= LD_LIBRARY_PATH=${LOCALBASE}/lib/${CC}:$$LD_LIBRARY_PATH .endif .if ${OSVERSION} < 900506 @@ -91,10 +94,6 @@ MAKE_CMD+= bpostatic=${PREFIX}/lib/libboost_program_options.so MAKE_CMD+= debug=3 .endif -.if ${PORT_OPTIONS:MGARB} -SUB_LIST= LD_LIBRARY_PATH=${LOCALBASE}/lib/${CC}:$$LD_LIBRARY_PATH -.endif - post-patch: @${REINPLACE_CMD} -e '/-Werror/d' ${WRKSRC}/SConstruct diff --git a/databases/galera/files/garb.in b/databases/galera/files/garb.in index af7fc634a0e9..11aa9ed031d6 100644 --- a/databases/galera/files/garb.in +++ b/databases/galera/files/garb.in @@ -45,7 +45,7 @@ command_args="-c -f -u nobody -p $garb_pid_file $procname" start_precmd="${name}_prestart" start_postcmd="${name}_poststart" stop_precmd="${name}_prestop" -export %%LD_LIBRARY_PATH%% +export LD_LIBRARY_PATH=%%LD_LIBRARY_PATH%% garb_prestart() {