Bug 993071

Summary: nvidia-kmod.spec error
Product: [Fedora] Fedora Reporter: sean-clancy
Component: kmodAssignee: kmod development team <kmod-maint>
Status: CLOSED NOTABUG QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 19CC: jonathan, kmod-maint, msivak, vpavlin
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-08-05 14:58:16 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
patch to partially fix the problem none

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.