1
0
forked from ports/contrib

truecrypt: Added patch to fix building with kernel 2.6.29

This commit is contained in:
Alan Mizrahi 2009-04-05 21:14:27 +09:00
parent aa75456922
commit 206847dadc
3 changed files with 19 additions and 2 deletions

View File

@ -1,3 +1,4 @@
144cb38da950e8970c38df2d460543fd truecrypt-4.3a-2.6.23.patch
5fd25dfacea831a526f793c8d78cc24e truecrypt-4.3a-2.6.24.patch
1aaccb83503e0bbcf0f01b181b20fe7e truecrypt-4.3a-2.6.29.patch
a22a76f9b38b05ffe3e827bde2c953c5 truecrypt-4.3a.tar.bz2

View File

@ -6,13 +6,15 @@
name=truecrypt
version=4.3a
release=1
source=(http://www.mizrahi.com.ve/crux/dist/$name-$version.tar.bz2 truecrypt-4.3a-2.6.23.patch truecrypt-4.3a-2.6.24.patch)
release=2
source=(http://www.mizrahi.com.ve/crux/dist/$name-$version.tar.bz2 truecrypt-4.3a-2.6.23.patch truecrypt-4.3a-2.6.24.patch truecrypt-4.3a-2.6.29.patch)
build () {
cd $name-$version/Linux
patch -p2 -i $SRC/truecrypt-4.3a-2.6.23.patch
patch -p2 -i $SRC/truecrypt-4.3a-2.6.24.patch
patch -p2 -i $SRC/truecrypt-4.3a-2.6.29.patch
./build.sh
install -m 755 -D Cli/truecrypt $PKG/usr/bin/truecrypt
install -m 644 -D Cli/Man/truecrypt.1 $PKG/usr/man/man1/truecrypt.1

View File

@ -0,0 +1,14 @@
--- truecrypt-4.3a/Linux/Kernel/Dm-target.c.orig 2009-03-30 01:21:25.386081862 +0900
+++ truecrypt-4.3a/Linux/Kernel/Dm-target.c 2009-03-30 01:21:46.450270403 +0900
@@ -705,10 +705,7 @@
{
int r;
- r = dm_unregister_target (&truecrypt_target);
-
- if (r < 0)
- error ("unregister failed %d", r);
+ dm_unregister_target (&truecrypt_target);
destroy_workqueue (work_queue);
kmem_cache_destroy (bio_ctx_cache);