Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 241956 - app-crypto/tpm-emulator: kernel sources accessed through /lib/modules/`uname -r`
Summary: app-crypto/tpm-emulator: kernel sources accessed through /lib/modules/`uname -r`
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal
Assignee: Crypto team [DISABLED]
URL:
Whiteboard:
Keywords: PMASKED
Depends on:
Blocks: modules-uname
  Show dependency tree
 
Reported: 2008-10-14 12:52 UTC by Diego Elio Pettenò (RETIRED)
Modified: 2009-09-21 10:41 UTC (History)
1 user (show)

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


Attachments
Build log (app-crypt:tpm-emulator-0.5:20081013-111717.log,9.63 KB, text/plain)
2008-10-14 12:52 UTC, Diego Elio Pettenò (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Diego Elio Pettenò (RETIRED) gentoo-dev 2008-10-14 12:52:40 UTC
This bug is being reported because this ebuild is currently trying to build against the kernel tree by accessing it through /lib/modules/`uname -r` instead than through /usr/src/linux like it should.

This is bad in many situations, like:

- livecd installs: the running kernel is the one from the livecd and is most
likely not the same the user is installing to;
- livecd chroot fixes: as above;
- generic chroot: running kernel comes from outside, as above;
- kernel updates: users most likely would want their system to have all the
modules ready _before_ restarting.

Please fix your ebuild to use /usr/src/linux.

Thanks,
Diego
Comment 1 Diego Elio Pettenò (RETIRED) gentoo-dev 2008-10-14 12:52:57 UTC
Created attachment 168408 [details]
Build log
Comment 2 Andreas Niederl 2009-08-31 10:57:24 UTC
(In reply to comment #0)
> Please fix your ebuild to use /usr/src/linux.

I'm guessing that it should rather use $KV_OUT_DIR from linux-info.eclass so it won't interfere with different object directories with the kernel.

Addition for src_unpack():
sed -i 's#/lib/modules/\$(KERNEL_RELEASE)/build#'"${KV_OUT_DIR}#" \
tpm{,d}_dev/Makefile
Comment 3 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2009-09-21 10:41:22 UTC
Resolved in 0.5.1 release.