Merge pull request #17541 from womfoo/bump/wraith-1.4.7

wraith: 1.4.6 -> 1.4.7, fixes build
This commit is contained in:
Robin Gloster 2016-08-05 19:04:02 +02:00 committed by GitHub
commit 19158a60cf
2 changed files with 65 additions and 6 deletions

View File

@ -0,0 +1,58 @@
--- a/configure
+++ b/configure
@@ -6029,53 +6029,8 @@
#AC_CHECK_HEADERS(zlib.h)
#EGG_CHECK_ZLIB
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for path to OpenSSL" >&5
-$as_echo_n "checking for path to OpenSSL... " >&6; }
-
-
-# Check whether --with-openssl was given.
-if test "${with_openssl+set}" = set; then :
- withval=$with_openssl; with_openssl_path=$withval
-else
- with_openssl_path=auto
-fi
-
-
-
-cf_openssl_basedir=""
-if test "$with_openssl_path" != "auto"; then
- cf_openssl_basedir="`echo ${with_openssl_path} | sed 's/\/$//'`"
-else
- for dirs in /usr/local/ssl /usr/pkg /usr/local /usr/local/openssl; do
- if test -f "${dirs}/include/openssl/opensslv.h" && test -f "${dirs}/lib/libssl.so"; then
- cf_openssl_basedir="${dirs}"
- break
- fi
- done
- unset dirs
-fi
-if test ! -z "$cf_openssl_basedir"; then
- if test -f "${cf_openssl_basedir}/include/openssl/opensslv.h" && test -f "${cf_openssl_basedir}/lib/libssl.so"; then
- SSL_INCLUDES="-I${cf_openssl_basedir}/include"
- SSL_LIBS="-L${cf_openssl_basedir}/lib"
- else
- cf_openssl_basedir=""
- fi
-else
- if test -f "/usr/include/openssl/opensslv.h" ; then
- cf_openssl_basedir="/usr"
- fi
-fi
-
-if test ! -z "$cf_openssl_basedir"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cf_openssl_basedir" >&5
-$as_echo "$cf_openssl_basedir" >&6; }
-else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
-$as_echo "not found" >&6; }
- as_fn_error 1 "OpenSSL is required." "$LINENO" 5
-fi
-unset cf_openssl_basedir
+SSL_INCLUDES="-I@openssl.dev@/include"
+SSL_LIBS="-L@openssl.out@/lib"
save_CXX="$CXX"
CXX="$CXX $SSL_INCLUDES"

View File

@ -5,18 +5,19 @@ with stdenv.lib;
mkDerivation rec { mkDerivation rec {
name = "wraith-${version}"; name = "wraith-${version}";
version = "1.4.6"; version = "1.4.7";
src = fetchurl { src = fetchurl {
url = "mirror://sourceforge/wraithbotpack/wraith-v${version}.tar.gz"; url = "mirror://sourceforge/wraithbotpack/wraith-v${version}.tar.gz";
sha256 = "0vb2hbjmwh040f5yhxvwcfxvgxa0q9zdy9vvddydn8zn782d7wl8"; sha256 = "0h6liac5y7im0jfm2sj18mibvib7d1l727fjs82irsjj1v9kif3j";
}; };
buildInputs = [ openssl ]; buildInputs = [ openssl ];
patches = [ ./dlopen.patch ]; patches = [ ./configure.patch ./dlopen.patch ];
postPatch = '' postPatch = ''
substituteInPlace src/libssl.cc --subst-var-by openssl ${openssl} substituteInPlace configure --subst-var-by openssl.dev ${openssl.dev} \
substituteInPlace src/libcrypto.cc --subst-var-by openssl ${openssl} --subst-var-by openssl.out ${openssl.out}
substituteInPlace src/libssl.cc --subst-var-by openssl ${openssl.out}
substituteInPlace src/libcrypto.cc --subst-var-by openssl ${openssl.out}
''; '';
configureFlags = "--with-openssl=${openssl.dev}";
installPhase = '' installPhase = ''
mkdir -p $out/bin mkdir -p $out/bin
cp -a wraith $out/bin/wraith cp -a wraith $out/bin/wraith