Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 171561 - app-crypt/tpm-emulator-0.5 version bump
Summary: app-crypt/tpm-emulator-0.5 version bump
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High enhancement
Assignee: Crypto team [DISABLED]
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-03-20 13:57 UTC by Oliver Welter
Modified: 2007-06-23 20:02 UTC (History)
1 user (show)

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


Attachments
ebuild and helper files (app-crypt-tpm-emulator-0.5.tgz,1.88 KB, application/octet-stream)
2007-03-20 14:49 UTC, Oliver Welter
Details
tpm-emulator-0.5.ebuild (tpm-emulator-0.5.ebuild,1.46 KB, text/plain)
2007-03-31 18:30 UTC, Alon Bar-Lev (RETIRED)
Details
files/tpm-emulator.initd (tpm-emulator.initd,1.07 KB, text/plain)
2007-03-31 18:30 UTC, Alon Bar-Lev (RETIRED)
Details
files/tpm-emulator.udev (tpm-emulator.udev,67 bytes, text/plain)
2007-03-31 18:31 UTC, Alon Bar-Lev (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Oliver Welter 2007-03-20 13:57:06 UTC
The version of app-crypt/tpm-emulator is very outdated. 
The new version has major improvements.
Ebuild for installing current version 0.5 attached, product is installed and tested on my machine without errors 

Reproducible: Always
Comment 1 Oliver Welter 2007-03-20 14:49:57 UTC
Created attachment 113873 [details]
ebuild and helper files
Comment 2 Alon Bar-Lev (RETIRED) gentoo-dev 2007-03-21 16:04:29 UTC
Thank you for your report.

Next time, please:
1. Attach individual files to bug, not archives.
2. If an existing file is modify please attach only diff.
3. Please explain any architecture changes.

Issues:
1. Why you removed the kernel modules from ebuild? Should we add a new ebuild for this?
2. The checkconfig device handling should be done using udev rule and not manually.
3. What is the /dev/tpm0 story?

Thanks!
Comment 3 Oliver Welter 2007-03-29 06:44:50 UTC
Hi Alon,

1. Why you removed the kernel modules from ebuild? Should we add a new ebuild
for this?
The Makefile of the original package takes care of the module, so I left the Makefile unchanged. 

2. The checkconfig device handling should be done using udev rule and not
manually.

I copied this over from the trousers script, I am not that familiar with udev, sorry...if you give me a pointer I will try.

3. What is the /dev/tpm0 story?
Several apps use /dev/tpm0 and do not allow this to be configured, while the emulator creates /dev/tpm. I use this workaround for a long time now and it does the job. 

Oliver
Comment 4 Alon Bar-Lev (RETIRED) gentoo-dev 2007-03-31 18:30:30 UTC
Created attachment 115069 [details]
tpm-emulator-0.5.ebuild
Comment 5 Alon Bar-Lev (RETIRED) gentoo-dev 2007-03-31 18:30:48 UTC
Created attachment 115070 [details]
files/tpm-emulator.initd
Comment 6 Alon Bar-Lev (RETIRED) gentoo-dev 2007-03-31 18:31:03 UTC
Created attachment 115071 [details]
files/tpm-emulator.udev
Comment 7 Alon Bar-Lev (RETIRED) gentoo-dev 2007-03-31 18:35:36 UTC
This was an effort...
Please check this.

Issues for upstram:

1. Allow specifying LDFLAGS, current fix is:
sed -i 's/LDFLAGS :=/override LDFLAGS +=/g' tpmd/Makefile

2. Put runtime state in /var/run/tpm and not /var/tpm, or allow specifying it externally. Current fix is:
sed -i 's#/var/tpm#/var/run/tpm#g' tpmd/tpmd.c tddl/tddl.c tpm_dev/linux_module.c

3. Ask upstream to separate kernel module build and userspace.

4. "make install" should allow to use DESTDIR to install into temperary location, current solution is to install manually.

5. "make install" does not use "install" command, so file attributes are not set correctly, current solution is to install manually.

6. Upstream should add udev rules to distribution.
Comment 9 Alon Bar-Lev (RETIRED) gentoo-dev 2007-06-23 20:02:08 UTC
Upstream does not seems to be responsive at all.