add missing linux patch

This commit is contained in:
Mario Fetka 2024-04-15 20:09:08 +02:00
parent 3bb4416666
commit 05772cca35
3 changed files with 16 additions and 2 deletions

View File

@ -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

View File

@ -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

View File

@ -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