Bug 993071 - nvidia-kmod.spec error
Summary: nvidia-kmod.spec error
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Fedora
Classification: Fedora
Component: kmod
Version: 19
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: kmod development team
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-08-05 14:56 UTC by sean-clancy
Modified: 2013-08-05 14:58 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-08-05 14:58:16 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
patch to partially fix the problem (496 bytes, patch)
2013-08-05 14:56 UTC, sean-clancy
no flags Details | Diff

Description sean-clancy 2013-08-05 14:56:45 UTC
Created attachment 782867 [details]
patch to partially fix the problem

akmod fails for a custom (vanialla) kernel if trying to build the nvidia module.

command to build: 
akmodsbuild -k $kernel_version /usr/src/akmods/nvidia-kmod.latest
version:
akmod-nvidia 319.32-2.fc19
kernel 3.10 vanilla (built with separat output directory O= )

problem: 
in the file nvidia-kmod.spec (from the rpm /usr/src/akmods/nvidia-kmod-319.32-2.fc19.src.rpm):
${kernel_version##*___} points to the kernel build directory instead of the source.

fix:
the supplied patch fixes it, if SYSSRC is manually exported:
export SYSSRC="$kernel_source_dir"
akmodsbuild -k $kernel_version /usr/src/akmods/nvidia-kmod.latest

so the patch is only a partial fix, SYSSRC= should also be added to the .spec file.

Comment 1 Josh Boyer 2013-08-05 14:58:16 UTC
You should file this against whomever you got your akmod from.  The kmod component in Fedora bugzilla is for the module-init-tools replacement packages.  Fedora does not provide or support external module packages.


Note You need to log in before you can comment on or make changes to this bug.