Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 111394 - request for adding truecrypt into portage tree
Summary: request for adding truecrypt into portage tree
Status: RESOLVED DUPLICATE of bug 112197
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: Default Assignee for New Packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-11-03 13:03 UTC by mAhdi
Modified: 2005-11-11 10:40 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
source tarball with fixed build.sh (truecrypt-4.0-source-code.tar.gz,1001.12 KB, application/octet-stream)
2005-11-05 12:03 UTC, Ryan
Details
truecrypt-4.0-source-code.tar.gz (truecrypt-4.0-source-code.tar.gz,1.34 MB, application/octet-stream)
2005-11-05 13:28 UTC, Ryan
Details
app-crypt/truecrypt/truecrypt-4.0.ebuild (truecrypt-4.0.ebuild,470 bytes, text/plain)
2005-11-05 13:29 UTC, Ryan
Details

Note You need to log in before you can comment on or make changes to this bug.
Description mAhdi 2005-11-03 13:03:15 UTC
Truecrypt - http://www.truecrypt.org/ - has been now released finally supporting
linux as well. This great tools is one of very few solutions for mixed win/linux
environment. Please consider creating ebuild of it.

Reproducible: Always
Steps to Reproduce:
1.
2.
3.
Comment 1 Ryan 2005-11-03 18:40:19 UTC
Could we atleast just get an ebuild for it if not in the official portage tree
please?
Comment 2 Ryan 2005-11-05 12:00:12 UTC
Ok, so I figured I give it a shot and try to do this myself. So far I had to
edit the build script that was included with the source tarball from truecrypt.
I have attached that. Then I tried giving it a shot with this ebuild:

# Distributed under the terms of the GNU General Public License v2
# $Header: $

DESCRIPTION="Free open-source disk encryption software for Windows XP/2000/2003
and Linux"
HOMEPAGE="http://www.trucrypt.org/"
SRC_URI="http://www.truecrypt.org/downloads/truecrypt-${PV}-source-code.tar.gz"

LICENSE="CUSTOM"
SLOT="0"
KEYWORDS="~x86 ~amd64"
IUSE=""

src_compile() {
	sh Linux/build.sh || die "build failed"
}

src_install() {
	sh Linux/install.sh || die "install failed"
}



Now when I try to emerge it, it fails with this:

>>> Source unpacked.
Checking build requirements...
Building kernel module... Linux/build.sh: line 66: cd: Kernel: No such file or
directory
Error: Failed to build kernel module

!!! ERROR: app-crypt/truecrypt-4.0 failed.
!!! Function src_compile, Line 14, Exitcode 1
!!! build failed
!!! If you need support, post the topmost build error, NOT this status message.

Not sure how to fix this in the build.sh script.
Comment 3 Ryan 2005-11-05 12:03:10 UTC
Created attachment 72232 [details]
source tarball with fixed build.sh

changed all instances of "-1" to "-n 1"
Comment 4 Ryan 2005-11-05 12:17:59 UTC
Ok, so changing line 66 of the build.sh from "cd Kernel" to 
"cd /var/tmp/portage/truecrypt-4.0/work/truecrypt-4.0/Linux/Kernel" got me a
little further, but now fails with:

>>> Source unpacked.
Checking build requirements...
Building kernel module... Makefile:530:
/usr/src/linux-2.6.14-acid2/arch/amd64/Makefile: No such file or directory
make[1]: *** No rule to make target
`/usr/src/linux-2.6.14-acid2/arch/amd64/Makefile'.  Stop.
make: *** [truecrypt] Error 2
Error: Failed to build kernel module
Comment 5 Ryan 2005-11-05 13:26:23 UTC
Ok, made some more progress and attached the ebuild and modified source tarball
for distfiles. Now I can get it to build the modules and go through the install,
but during the testing of truecrypt in the install.sh script it fails and I
can't tell why.
Comment 6 Ryan 2005-11-05 13:28:20 UTC
Created attachment 72238 [details]
truecrypt-4.0-source-code.tar.gz

includes fixed build.sh script and a semi-working install.sh. The install
script will go through, but fails on testing truecrypt.
Comment 7 Ryan 2005-11-05 13:29:47 UTC
Created attachment 72239 [details]
app-crypt/truecrypt/truecrypt-4.0.ebuild

Here's the ebuild I threw together.
Comment 8 Stefan Schweizer (RETIRED) gentoo-dev 2005-11-06 11:05:44 UTC
Please make a patch
diff -pur olddir newdir > patch

instead of modifying the source tarball
Comment 9 Ryan 2005-11-06 20:56:27 UTC
(In reply to comment #8)
> Please make a patch
> diff -pur olddir newdir > patch
> 
> instead of modifying the source tarball

Ok, well that would be starting to get a little too far beyond my skills. I
don't even really know how I got this as far as I have really. It's my first
ebuild and I'm learning as go. I would actually prefer if someone that knew what
they were doing would be kind enough to write an ebuild for us.
Comment 10 calvin 2005-11-08 10:10:36 UTC
Thanks for the work so far Ryan...  I too am anxious for this...
Comment 11 mAhdi 2005-11-11 10:38:43 UTC
Functional ebuild posted in thread http://bugs.gentoo.org/show_bug.cgi?id=112197 ...
Comment 12 Jakub Moc (RETIRED) gentoo-dev 2005-11-11 10:40:30 UTC
Bug 112197 seems to have a working patch, marking this one as a dupe. 

*** This bug has been marked as a duplicate of 112197 ***

*** This bug has been marked as a duplicate of 112197 ***