summaryrefslogtreecommitdiffstats
path: root/deps
diff options
context:
space:
mode:
author Eric Hameleers <alien@slackware.com>2015-02-25 20:34:32 +0100
committer Eric Hameleers <alien@slackware.com>2015-02-25 20:34:32 +0100
commitc48e3bc42f0b62953391dc8eacf47f719b6a5ab9 (patch)
tree394f00d6b8908be319183263dd82b6f7b5ac37c9 /deps
parent3c4a8c510a462f91164a699de617a6328f7b81b2 (diff)
downloadktown-c48e3bc42f0b62953391dc8eacf47f719b6a5ab9.tar.gz
ktown-c48e3bc42f0b62953391dc8eacf47f719b6a5ab9.tar.xz
libssh: re-added as a dependency for kde-rumtime.
The version of libssh in Slackware is too old, and the 'sftp' kioslave (kio_sftp.so) will refuse to compile.
Diffstat (limited to 'deps')
-rwxr-xr-xdeps/libssh/libssh.SlackBuild4
-rw-r--r--deps/libssh/libssh.no.example.build.diff11
-rw-r--r--deps/libssh/libssh_libgcrypt.patch51
-rwxr-xr-xdeps/updates.SlackBuild1
4 files changed, 54 insertions, 13 deletions
diff --git a/deps/libssh/libssh.SlackBuild b/deps/libssh/libssh.SlackBuild
index e131abb..ef701ca 100755
--- a/deps/libssh/libssh.SlackBuild
+++ b/deps/libssh/libssh.SlackBuild
@@ -67,8 +67,8 @@ rm -rf ${PKGNAM}-${VERSION}
tar xvf $CWD/${PKGNAM}-$VERSION.tar.xz || exit 1
cd ${PKGNAM}-$VERSION || exit 1
-# These fail to build and are not packaged anyway:
-zcat $CWD/libssh.no.example.build.diff | patch -p1 --verbose || exit 1
+# Fix a compilation issue (backport from libssh git):
+cat $CWD/libssh_libgcrypt.patch | patch -p1 --verbose || exit 1
# Make sure ownerships and permissions are sane:
chown -R root:root .
diff --git a/deps/libssh/libssh.no.example.build.diff b/deps/libssh/libssh.no.example.build.diff
deleted file mode 100644
index e7f5025..0000000
--- a/deps/libssh/libssh.no.example.build.diff
+++ /dev/null
@@ -1,11 +0,0 @@
---- ./CMakeLists.txt.orig 2013-01-22 04:51:59.000000000 -0600
-+++ ./CMakeLists.txt 2013-03-28 18:56:18.490047174 -0500
-@@ -89,8 +89,6 @@
- pkgconfig
- )
-
--add_subdirectory(examples)
--
- if (WITH_TESTING)
- find_package(CMockery REQUIRED)
- include(AddCMockeryTest)
diff --git a/deps/libssh/libssh_libgcrypt.patch b/deps/libssh/libssh_libgcrypt.patch
new file mode 100644
index 0000000..622c338
--- /dev/null
+++ b/deps/libssh/libssh_libgcrypt.patch
@@ -0,0 +1,51 @@
+From 3880a8ed80a4b1e2c052bd62f328bba2f869d5ae Mon Sep 17 00:00:00 2001
+From: Aris Adamantiadis <aris@0xbadc0de.be>
+Date: Mon, 29 Dec 2014 15:06:33 +0000
+Subject: Fix the dh.c build with libgcrypt
+
+Fixes bug reported by gentoo at https://bugs.gentoo.org/show_bug.cgi?id=533424
+The function was only used by EDCSA backend which are not supported by the libgcrypt code anyway.
+---
+diff --git a/include/libssh/dh.h b/include/libssh/dh.h
+index f28b916..89872e3 100644
+--- a/include/libssh/dh.h
++++ b/include/libssh/dh.h
+@@ -49,7 +49,9 @@ int hashbufin_add_cookie(ssh_session session, unsigned char *cookie);
+ int hashbufout_add_cookie(ssh_session session);
+ int generate_session_keys(ssh_session session);
+ bignum make_string_bn(ssh_string string);
++#ifdef HAVE_LIBCRYPTO
+ void make_string_bn_inplace(ssh_string string, bignum bnout);
++#endif /* HAVE_LIBCRYPTO */
+ ssh_string make_bignum_string(bignum num);
+
+ #endif /* DH_H_ */
+diff --git a/src/dh.c b/src/dh.c
+index 84355d4..010a1dd 100644
+--- a/src/dh.c
++++ b/src/dh.c
+@@ -407,14 +407,17 @@ bignum make_string_bn(ssh_string string){
+ return bn;
+ }
+
++#ifdef HAVE_LIBCRYPTO
++/** @internal
++ * @brief converts the content of a SSH string in an already allocated bignum
++ * @warning only available with OpenSSL builds
++ */
+ void make_string_bn_inplace(ssh_string string, bignum bnout) {
+ unsigned int len = ssh_string_len(string);
+-#ifdef HAVE_LIBGCRYPT
+- #error "unsupported"
+-#elif defined HAVE_LIBCRYPTO
+ bignum_bin2bn(string->data, len, bnout);
+-#endif
+ }
++#endif /* HAVE_LIBCRYPTO */
++
+
+ ssh_string dh_get_e(ssh_session session) {
+ return make_bignum_string(session->next_crypto->e);
+--
+cgit v0.9.1
+
diff --git a/deps/updates.SlackBuild b/deps/updates.SlackBuild
index 63e131e..90a6bc8 100755
--- a/deps/updates.SlackBuild
+++ b/deps/updates.SlackBuild
@@ -31,6 +31,7 @@ ALLDEPS=" \
harfbuzz \
poppler \
xapian-core \
+ libssh \
libfakekey \
gstreamer1 \
gst1-plugins-base \