Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] Truecrypt 4.3a patch for kernel 2.6.29
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Unsupported Software
View previous topic :: View next topic  
Author Message
manwe_
l33t
l33t


Joined: 01 Feb 2006
Posts: 621
Location: Kraków/Cracow, Poland

PostPosted: Sun Mar 29, 2009 7:10 pm    Post subject: [SOLVED] Truecrypt 4.3a patch for kernel 2.6.29 Reply with quote

Code:
 * Preparing truecrypt module
make -j3 HOSTCC=x86_64-pc-linux-gnu-gcc CROSS_COMPILE=x86_64-pc-linux-gnu- LDFLAGS= KERNEL_SRC=/usr/src/linux NO_WARNINGS=1 truecrypt
make[1]: Entering directory `/usr/src/linux-2.6.29-zen1'
  CC [M]  /tmp/portage/app-crypt/truecrypt-4.3a/work/truecrypt-4.3a-source-code/Linux/Kernel/../../Crypto/Aescrypt.o
  CC [M]  /tmp/portage/app-crypt/truecrypt-4.3a/work/truecrypt-4.3a-source-code/Linux/Kernel/../../Crypto/Aeskey.o
  CC [M]  /tmp/portage/app-crypt/truecrypt-4.3a/work/truecrypt-4.3a-source-code/Linux/Kernel/../../Crypto/Aestab.o
  CC [M]  /tmp/portage/app-crypt/truecrypt-4.3a/work/truecrypt-4.3a-source-code/Linux/Kernel/../../Crypto/Bf_ecb.o
  CC [M]  /tmp/portage/app-crypt/truecrypt-4.3a/work/truecrypt-4.3a-source-code/Linux/Kernel/../../Crypto/Bf_enc.o
  CC [M]  /tmp/portage/app-crypt/truecrypt-4.3a/work/truecrypt-4.3a-source-code/Linux/Kernel/../../Crypto/Bf_skey.o
  CC [M]  /tmp/portage/app-crypt/truecrypt-4.3a/work/truecrypt-4.3a-source-code/Linux/Kernel/../../Crypto/C_ecb.o
  CC [M]  /tmp/portage/app-crypt/truecrypt-4.3a/work/truecrypt-4.3a-source-code/Linux/Kernel/../../Crypto/C_enc.o
  CC [M]  /tmp/portage/app-crypt/truecrypt-4.3a/work/truecrypt-4.3a-source-code/Linux/Kernel/../../Crypto/C_skey.o
  CC [M]  /tmp/portage/app-crypt/truecrypt-4.3a/work/truecrypt-4.3a-source-code/Linux/Kernel/../../Crypto/Des.o
  CC [M]  /tmp/portage/app-crypt/truecrypt-4.3a/work/truecrypt-4.3a-source-code/Linux/Kernel/../../Crypto/Des_enc.o
  CC [M]  /tmp/portage/app-crypt/truecrypt-4.3a/work/truecrypt-4.3a-source-code/Linux/Kernel/../../Crypto/Ecb3_enc.o
  CC [M]  /tmp/portage/app-crypt/truecrypt-4.3a/work/truecrypt-4.3a-source-code/Linux/Kernel/../../Crypto/Serpent.o
  CC [M]  /tmp/portage/app-crypt/truecrypt-4.3a/work/truecrypt-4.3a-source-code/Linux/Kernel/../../Crypto/Set_key.o
  CC [M]  /tmp/portage/app-crypt/truecrypt-4.3a/work/truecrypt-4.3a-source-code/Linux/Kernel/../../Crypto/Twofish.o
  CC [M]  /tmp/portage/app-crypt/truecrypt-4.3a/work/truecrypt-4.3a-source-code/Linux/Kernel/../../Common/Crc.o
  CC [M]  /tmp/portage/app-crypt/truecrypt-4.3a/work/truecrypt-4.3a-source-code/Linux/Kernel/../../Common/Crypto.o
  CC [M]  /tmp/portage/app-crypt/truecrypt-4.3a/work/truecrypt-4.3a-source-code/Linux/Kernel/../../Common/Endian.o
  CC [M]  /tmp/portage/app-crypt/truecrypt-4.3a/work/truecrypt-4.3a-source-code/Linux/Kernel/../../Common/GfMul.o
  CC [M]  /tmp/portage/app-crypt/truecrypt-4.3a/work/truecrypt-4.3a-source-code/Linux/Kernel/../../Common/Tests.o
  CC [M]  /tmp/portage/app-crypt/truecrypt-4.3a/work/truecrypt-4.3a-source-code/Linux/Kernel/Dm-target.o
/tmp/portage/app-crypt/truecrypt-4.3a/work/truecrypt-4.3a-source-code/Linux/Kernel/Dm-target.c: In function 'dm_truecrypt_exit':
/tmp/portage/app-crypt/truecrypt-4.3a/work/truecrypt-4.3a-source-code/Linux/Kernel/Dm-target.c:708: error: void value not ignored as it ought to be
make[2]: *** [/tmp/portage/app-crypt/truecrypt-4.3a/work/truecrypt-4.3a-source-code/Linux/Kernel/Dm-target.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[1]: *** [_module_/tmp/portage/app-crypt/truecrypt-4.3a/work/truecrypt-4.3a-source-code/Linux/Kernel] Error 2
make[1]: Leaving directory `/usr/src/linux-2.6.29-zen1'
make: *** [truecrypt] Error 2


Is anyone able to fix this or have patch already? :) 4.3a is last usable version of truecrypt and I hate idea of being stuck with 2.6.28 because of this.


Last edited by manwe_ on Mon Mar 30, 2009 1:40 am; edited 1 time in total
Back to top
View user's profile Send private message
ronmon
Veteran
Veteran


Joined: 15 Apr 2002
Posts: 1043
Location: Key West, FL

PostPosted: Sun Mar 29, 2009 11:24 pm    Post subject: Reply with quote

I'm in the same boat. The newer versions don't work and now the old one won't build.
_________________
Ask Questions the Smart Way - by ESR
Back to top
View user's profile Send private message
manwe_
l33t
l33t


Joined: 01 Feb 2006
Posts: 621
Location: Kraków/Cracow, Poland

PostPosted: Mon Mar 30, 2009 1:34 am    Post subject: Reply with quote

Wanna have something done, do it yourself ;) After some googling I've found this commit http://kerneltrap.org/mailarchive/git-commits-head/2009/1/6/4607654 . So I've replaced
Code:
void __exit dm_truecrypt_exit(void)
{
       int r;

       r = dm_unregister_target (&truecrypt_target);

       if (r < 0)
               error ("unregister failed %d", r);

        destroy_workqueue (work_queue);
        kmem_cache_destroy (bio_ctx_cache);
}


with

Code:
void __exit dm_truecrypt_exit(void)
{
       dm_unregister_target (&truecrypt_target);
       destroy_workqueue (work_queue);
       kmem_cache_destroy (bio_ctx_cache);
}


made patch, added to ebuild and... it works :) As far as I understand comment to that commit, there also should be BUG() function placed somewhere. Unfortunately I have no idea where. So if someone can improve my .patch - please do. For now it compiles and works fine.

1. http://wklej.org/id/71526/txt -> files/truecrypt-4.3a-2.6.29.patch
2. add
Code:
kernel_is ge 2 6 29 && epatch "${FILESDIR}/${P}-2.6.29.patch"
after
Code:
epatch "${FILESDIR}/${P}-2.6.24.patch"

3. ebuild truecrypt-4.3a.ebuild manifest
4. emerge -1 truecrypt
Back to top
View user's profile Send private message
ronmon
Veteran
Veteran


Joined: 15 Apr 2002
Posts: 1043
Location: Key West, FL

PostPosted: Mon Mar 30, 2009 5:32 pm    Post subject: Reply with quote

Wow, nice job. It works like a charm.

Thanks.
_________________
Ask Questions the Smart Way - by ESR
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Unsupported Software All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum