Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 250300 - app-misc/usbirboy: kernel sources accessed through /lib/modules/`uname -r`
Summary: app-misc/usbirboy: kernel sources accessed through /lib/modules/`uname -r`
Status: RESOLVED DUPLICATE of bug 250301
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High QA with 1 vote (vote)
Assignee: No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it
URL:
Whiteboard:
Keywords:
: 239612 (view as bug list)
Depends on:
Blocks: bundled-libs modules-uname
  Show dependency tree
 
Reported: 2008-12-08 16:31 UTC by Diego Elio Pettenò (RETIRED)
Modified: 2016-01-26 06:40 UTC (History)
5 users (show)

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


Attachments
Build log (usbirboy-0.3.1:20081204-103027.log,2.21 KB, text/plain)
2008-12-08 16:32 UTC, Diego Elio Pettenò (RETIRED)
Details
sed Makefile to not use `uname -r` (usbirboy-0.3.1.ebuild.diff,643 bytes, patch)
2009-06-04 17:49 UTC, David Davidson
Details | Diff

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-12-08 16:31:51 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-12-08 16:32:09 UTC
Created attachment 174645 [details]
Build log
Comment 2 David Davidson 2009-06-04 17:49:41 UTC
Created attachment 193560 [details, diff]
sed Makefile to not use `uname -r`

I modified the ebuild to EAPI=2 and added, to src_prepare:

sed -i "s:\$(UNAME):${KV_FULL}:g" ${S}/Makefile || die "sed failed"
Comment 3 Diego Elio Pettenò (RETIRED) gentoo-dev 2009-07-14 15:48:44 UTC
*** Bug 239612 has been marked as a duplicate of this bug. ***
Comment 4 Toralf Förster gentoo-dev 2015-02-26 13:07:07 UTC
I do get at a chroot tindeebox image :

--- Invalid atom in /etc/portage/package.mask/unstable: <=sci-misc/gt-itm
>>> Verifying ebuild manifests
>>> Emerging (1 of 1) app-misc/usbirboy-0.3.1-r1
>>> Failed to emerge app-misc/usbirboy-0.3.1-r1, Log file:
>>>  '/var/log/portage/app-misc:usbirboy-0.3.1-r1:20150226-100955.log'
 * Package:    app-misc/usbirboy-0.3.1-r1
 * Repository: gentoo
 * Maintainer: media-tv@gentoo.org
 * USE:        abi_x86_64 amd64 elibc_glibc kernel_linux userland_GNU
 * FEATURES:   preserve-libs sandbox userpriv usersandbox
 * Determining the location of the kernel source code
 * Found kernel source directory:
 *     /usr/src/linux
 * Found sources for kernel version:
 *     3.19.0-gentoo
ln: failed to create symbolic link ‘Module.symvers’: File exists
 * Preparing usbirboy module
Makefile:30: *** recipe commences before first target.  Stop.
emake failed

and wonder how to avoid such an error ?
Comment 5 SpanKY gentoo-dev 2016-01-26 06:40:15 UTC

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