Summary: | app-crypt/truecrypt-4.3a fails to compile against 2.6.24-rc2 kernel | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | tla <tla> |
Component: | Current packages | Assignee: | Crypto team [DISABLED] <crypto+disabled> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | gentoobugzilla_reply, genzilla |
Priority: | High | ||
Version: | unspecified | ||
Hardware: | x86 | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: |
Patch for 2.6.24-rc5 (vanilla sources)
Patch for 2.6.24-rc5 (vanilla sources) Modified ebuild (for 2.6.23 and 2.6.24) Compiles and works with kernel 2.6.24-rc6 |
Description
tla
2007-11-07 20:41:40 UTC
# emerge --info Portage 2.1.3.16 (default-linux/x86/2006.1, gcc-4.2.2, glibc-2.6.1-r0, 2.6.24-rc2 i686) ================================================================= System uname: 2.6.24-rc2 i686 Pentium III (Coppermine) Timestamp of tree: Wed, 07 Nov 2007 18:00:01 +0000 app-shells/bash: 3.2_p17 dev-lang/python: 2.4.4-r6 dev-python/pycrypto: 2.0.1-r6 sys-apps/baselayout: 1.12.9-r2 sys-apps/sandbox: 1.2.18.1-r2 sys-devel/autoconf: 2.13, 2.61-r1 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10 sys-devel/binutils: 2.18-r1 sys-devel/gcc-config: 1.3.16 sys-devel/libtool: 1.5.24 virtual/os-headers: 2.6.22-r2 ACCEPT_KEYWORDS="x86" CBUILD="i686-pc-linux-gnu" CFLAGS="-O2 -march=pentium3 -pipe" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/share/X11/xkb /var/bind" CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/revdep-rebuild /etc/terminfo /etc/udev/rules.d" CXXFLAGS="-O2 -march=pentium3 -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="ccache collision-protect distlocks metadata-transfer parallel-fetch sandbox sfperms strict unmerge-orphans userfetch" GENTOO_MIRRORS="ftp://ftp.mirrorservice.org/sites/www.ibiblio.org/gentoo/ " LANG="en_GB" LC_ALL="en_GB" LINGUAS="en_GB en" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --filter=H_**/files/digest-*" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="X apache2 bash-completion berkdb bitmap-fonts cli cracklib crypt cups dri emacs fortran gdbm gpm gtk iconv ipv6 isdnlog midi mp3 mudflap ncurses nls nptl nptlonly opengl openmp pam pcre perl postgres ppds pppd python readline reflection session spl ssl tcpd truetype-fonts type1-fonts unicode x86 xorg zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" ELIBC="glibc" INPUT_DEVICES="keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en_GB en" USERLAND="GNU" VIDEO_CARDS="i810" Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LDFLAGS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS I don't understand... Why do you report here issues with pre-release kernel? You can report these issues directly to upstream, so they can fix this. However, if you got a fix, I will be happy if you attach it. I will look at this after 2.6.24 release. Thanks. *** Bug 202405 has been marked as a duplicate of this bug. *** Please *ATTACH* patches, pasting them does not help in applying them later. Created attachment 138558 [details, diff]
Patch for 2.6.24-rc5 (vanilla sources)
Patch attached.
Thanks! Fixed. Please notice that the 2.6.23 was already in tree... Next time, please submit only missing patches. Created attachment 138561 [details, diff]
Patch for 2.6.24-rc5 (vanilla sources)
Created attachment 138565 [details]
Modified ebuild (for 2.6.23 and 2.6.24)
This ebuild checks the kernel version and applies the necessary patch for 2.6.23 and/or 2.6.24.
Disclaimer: I am an absolute beginner on linux/gentoo :-)
Thanks! I already fixed this. In future, please have the portage snapshot as a baseline, and submit only diffs. If you modify ebuild, attach the diff between the baseline and the new one. Reviewing diffs is much simpler than find the difference on full attachment. Hi folks, your patch makes truecrypt compile against >kernel-2.6.23, but i still can't use/mount my truecrypt containers. It looks like this: truecrypt /home/stuff/boris64.tc /home/stuff/crypto Enter password for '/home/stuff/boris64.tc': After i entered the correct(!) passphrase, truecrypt hangs here forever, until i press [ctrl]+[c] (the next day :/). Additionally, a unkillable process remains in memory: root 867403 0.0 0.0 8060 600 pts/13 D 17:01 0:00 mount -tauto -orw /dev/mapper/truecrypt0 /home/stuff/crypto Anyone else experiencing this? There was already a thread about this issue in the truecrypt forums (down atm), where someone else had this problem under 2.6.24_rcx after using this(?) patch. Should i file a new bug? No problems here. Maybe you should check your kernel (crypto) settings and/or reemerge or update sys-fs/udev (here it is sys-fs/udev 117). Created attachment 139304 [details, diff]
Compiles and works with kernel 2.6.24-rc6
This patch was tested with kernel 2.6.24-rc6 and 2.6.23.11 (no hangs when mounting truecrypt-containers under 2.6.24-kernel).
Where is this patch taken from? Why did you remove the "if (bio->bi_size)"? Patch comes from german sidux-forum http://sidux.com/PNphpBB2-viewtopic-t-6367-start-15.html See also http://sidux.com/index.php?module=pnWikka&tag=TruecryptMounterEN I tested this patch (without the changes for kernel 2.6.23 which are already in the portage 2.6.23-patch) because I could reproduce the behavior described in comment #10 with kernel 2.6.24-rc6. > Why did you remove the "if (bio->bi_size)"? I could not find any information about this, so I just copied it from the origin patch. Unfortunately the Truecrypt forum at www.truecrypt.org is down. Of course this patch is for testing purposes only until there is an "official" patch from truecrypt-upstream. Thx, the new patch (see comment #12) seems to work as expected, no hanging mount-process(es) anymore ;) The problem is that truecrypt developers don't believe in updating their software... They claim that the kernel is not stable so they do not cooperate... OK... Applied. Well, that is why i'm using in-kernel crypt(luks!) stuff now, but that's just another story and belongs to some troll forum :/ I use loop-aes... http://wiki.tuxonice.net/EncryptedSwapAndRoot Much stronger encryption... :) This becomes the paranoid thread ;-) By the way I am using cryptsetup with luks in combination with LVM = encrypted root / swap / home / whatever... Indeed I have no actual needs for truecrypt, but it is nice to know that it COULD be used with kernel 2.6.24 :-) |