From 05772cca35a238d27be8ff2a8d86cb5b936a9ac4 Mon Sep 17 00:00:00 2001 From: Mario Fetka Date: Mon, 15 Apr 2024 20:09:08 +0200 Subject: [PATCH] add missing linux patch --- cryptlib/cl-linux-yield.patch | 12 ++++++++++++ install-next.sh | 2 +- install.sh | 4 +++- 3 files changed, 16 insertions(+), 2 deletions(-) create mode 100644 cryptlib/cl-linux-yield.patch diff --git a/cryptlib/cl-linux-yield.patch b/cryptlib/cl-linux-yield.patch new file mode 100644 index 0000000..5ad87ac --- /dev/null +++ b/cryptlib/cl-linux-yield.patch @@ -0,0 +1,12 @@ +--- kernel/thread.orig 2022-06-01 11:44:29.563747178 -0400 ++++ kernel/thread.h 2022-06-01 11:46:19.093752131 -0400 +@@ -3005,7 +3005,8 @@ + #endif /* Slowaris 5.7 / 7.x or newer */ + #elif defined( _AIX ) || defined( __Android__ ) || defined( __CYGWIN__ ) || \ + ( defined( __hpux ) && ( OSVERSION >= 11 ) ) || \ +- defined( __NetBSD__ ) || defined( __QNX__ ) || defined( __UCLIBC__ ) ++ defined( __NetBSD__ ) || defined( __QNX__ ) || \ ++ defined( __UCLIBC__ ) || defined(__linux__) + #define THREAD_YIELD() sched_yield() + #elif defined( __XMK__ ) + /* The XMK underlying scheduling object is the process context, for which diff --git a/install-next.sh b/install-next.sh index c1d77f8..af802fb 100644 --- a/install-next.sh +++ b/install-next.sh @@ -236,7 +236,7 @@ msg_ok "Finisched adding bullseye repository" fi msg_info "Starting ${APP} Installation !!!! Plz set Installation dir the same as bevor !!!" -apt install -y unrar-free python3 python2 &>/dev/null +apt install -y unrar-free python3 python2 libpython2.7 &>/dev/null wget -N http://www.mysticbbs.com/downloads/mys${MYSTIC_VER}_${MYSTIC_ARCH}.${MYSTIC_EXT} -O /usr/local/src/mystic/mys${MYSTIC_VER}_${MYSTIC_ARCH}.${MYSTIC_EXT} &>/dev/null rm -rf /usr/local/src/mystic/mystic-${MYSTIC_VER} &>/dev/null mkdir -p /usr/local/src/mystic/mystic-${MYSTIC_VER} &>/dev/null diff --git a/install.sh b/install.sh index a00e249..1b94571 100644 --- a/install.sh +++ b/install.sh @@ -236,7 +236,7 @@ msg_ok "Finisched adding bullseye repository" fi msg_info "Starting ${APP} Installation !!!! Plz set Installation dir the same as bevor !!!" -apt install -y unrar-free python3 python2 &>/dev/null +apt install -y unrar-free python3 python2 libpython2.7 &>/dev/null wget -N http://www.mysticbbs.com/downloads/mys${MYSTIC_VER}_${MYSTIC_ARCH}.${MYSTIC_EXT} -O /usr/local/src/mystic/mys${MYSTIC_VER}_${MYSTIC_ARCH}.${MYSTIC_EXT} &>/dev/null rm -rf /usr/local/src/mystic/mystic-${MYSTIC_VER} &>/dev/null mkdir -p /usr/local/src/mystic/mystic-${MYSTIC_VER} &>/dev/null @@ -349,7 +349,9 @@ mkdir -p /usr/local/src/mystic/cryptlib-3.4.5 &>/dev/null pushd /usr/local/src/mystic/cryptlib-3.4.5 &>/dev/null unzip ../cryptlib345.zip &>/dev/null dos2unix tools/* &>/dev/null +dos2unix kernel/* &>/dev/null patch -p1 -i /usr/local/src/mystic/mystic/cryptlib/gccversion-345.patch &>/dev/null +patch -p0 -i /usr/local/src/mystic/mystic/cryptlib/cl-linux-yield.patch &>/dev/null ln -sf gcc-9 /usr/bin/gcc &>/dev/null ln -sf g++-9 /usr/bin/g++ &>/dev/null ln -sf cpp-9 /usr/bin/cpp &>/dev/null