summaryrefslogtreecommitdiffstats
path: root/development
diff options
context:
space:
mode:
Diffstat (limited to 'development')
-rw-r--r--development/codelite/codelite.SlackBuild12
-rw-r--r--development/codelite/codelite.info2
-rw-r--r--development/codelite/libssh.patch25
3 files changed, 33 insertions, 6 deletions
diff --git a/development/codelite/codelite.SlackBuild b/development/codelite/codelite.SlackBuild
index 63732404ec..8f4e59f6f2 100644
--- a/development/codelite/codelite.SlackBuild
+++ b/development/codelite/codelite.SlackBuild
@@ -6,12 +6,12 @@
PRGNAM=codelite
VERSION=${VERSION:-14.0}
-BUILD=${BUILD:-1}
+BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
- i?86) ARCH=i486 ;;
+ i?86) ARCH=i586 ;;
arm*) ARCH=arm ;;
*) ARCH=$( uname -m ) ;;
esac
@@ -22,8 +22,8 @@ TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
-if [ "$ARCH" = "i486" ]; then
- SLKCFLAGS="-O2 -march=i486 -mtune=i686"
+if [ "$ARCH" = "i586" ]; then
+ SLKCFLAGS="-O2 -march=i586 -mtune=i686"
LIBDIRSUFFIX=""
elif [ "$ARCH" = "i686" ]; then
SLKCFLAGS="-O2 -march=i686 -mtune=i686"
@@ -42,7 +42,7 @@ rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
rm -rf $PRGNAM-${VERSION}
-tar xvf $CWD/$PRGNAM-${VERSION}.tar.gz || tar xvf $CWD/${VERSION}.tar.gz
+tar xvf $CWD/$PRGNAM-${VERSION}.tar.gz
cd $PRGNAM-${VERSION}
chown -R root:root .
find -L . \
@@ -51,6 +51,8 @@ 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 {} \;
+patch -p1 < $CWD/libssh.patch
+
mkdir build-release
cd build-release
CFLAGS="$SLKCFLAGS" \
diff --git a/development/codelite/codelite.info b/development/codelite/codelite.info
index 96abf0860b..dd2487959c 100644
--- a/development/codelite/codelite.info
+++ b/development/codelite/codelite.info
@@ -1,7 +1,7 @@
PRGNAM="codelite"
VERSION="14.0"
HOMEPAGE="http://www.codelite.org/"
-DOWNLOAD="https://github.com/eranif/codelite/archive/14.0.tar.gz"
+DOWNLOAD="https://github.com/eranif/codelite/archive/14.0/codelite-14.0.tar.gz"
MD5SUM="e9d2519fa8077ca9f86b6b8fa9adf332"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
diff --git a/development/codelite/libssh.patch b/development/codelite/libssh.patch
new file mode 100644
index 0000000000..c4f5b9aa85
--- /dev/null
+++ b/development/codelite/libssh.patch
@@ -0,0 +1,25 @@
+From d9663b376b66c5754298b21c3592f0a49c030f88 Mon Sep 17 00:00:00 2001
+From: dghart <dghart david@4Pane.co.uk>
+Date: Tue, 3 Mar 2020 13:39:02 +0000
+Subject: [PATCH] Compilation fix for ubuntu xenial (16.04) and similar
+
+The ssh version check was wrong (see https://github.com/eranif/codelite/issues/2443).
+Bump it from 0.6.1 to a (guestimated) 0.6.5.
+---
+ CodeLite/cl_ssh.cpp | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/CodeLite/cl_ssh.cpp b/CodeLite/cl_ssh.cpp
+index 824804e30..f5accfde9 100644
+--- a/CodeLite/cl_ssh.cpp
++++ b/CodeLite/cl_ssh.cpp
+@@ -106,7 +106,7 @@ bool clSSH::AuthenticateServer(wxString& message)
+
+ message.Clear();
+
+-#if LIBSSH_VERSION_INT < SSH_VERSION_INT(0, 6, 1)
++#if LIBSSH_VERSION_INT < SSH_VERSION_INT(0, 7, 7)
+ int hlen = 0;
+ hlen = ssh_get_pubkey_hash(m_session, &hash);
+ if(hlen < 0) {
+