Here a little HowTo build and apply patch:
Code:
cd /home
rm -rf oscam-svn --> just in case you have another oscam-svn
svn co http://www.streamboard.tv/svn/oscam/trunk oscam-svn
cd oscam-svn
wget http://www.streamboard.tv/oscam/raw-attachment/ticket/2811/module-cacheex.c_mutex_tryfix_2.diff
patch -p1 < module-cacheex.c_mutex_tryfix_2.diff
./config.sh -g --> you can add/remove what you want (if it's not working...apt-get install dialog)
make USE_LIBUSB=1 USE_PCSC=1 LIB_USBLIB=/usr/local/lib/libusb-1.0.a DEBUG=1 ---> build with smartreader suport, PCSC and debug
cd Distribution
killall -9 oscam --> or whatever is named oscam instance
cp oscam-1.20-unstable_svnXXXX-i486-linux-gnu-ssl-libusb-debug /usr/local/bin/oscam
/usr/local/bin/oscam -a -b -r0 ---> start with debug support